Configure an nginx, PHP 7.1, PHP-FPM, Google PageSpeed nginx plugin and PHP-FPM caching on AWS Elastic Beanstalk.
We created and deployed an AWS Elastic Beanstalk Nginx PHP Custom Platform. The custom EBS platform allows us to customise the operating system, installed software, scripts and other system configurations. The AWS EBS PHP platform comes with apache only, therefore we had to configure our own custom platform. The custom platform’s scripts can be found on our Github account here.
Be careful when selecting the AMI you would like to use for this custom platform because they differ from region to region. For this configuration, we used the ami-5652ce39 AMI and deployed the configuration for the Frankfurt region.
This custom AWS Elastic Beanstalk Nginx PHP platform has the following setup:
Please consider the following aspects when using this AWS Elastic Beanstalk Nginx PHP custom platform:
We will continue to update this custom EBS platform and release our modifications via Github.
For more details please feel free to contact us. We will be happy to help.