My app is running on AWS Elasticbeanstalk service with PHP 7.4/AMI Linux 2 platform.
And I want to modify php-fpm configuration, especially /etc/php-fpm.d/www.conf file, which manages by Beanstalk.
AWS Documentation https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/platforms-linux-extend.html says I can modify Nginx config, but I can't find anything about php-fpm config changing.
I've tried to put desired config in .platform/php-fpm.d/www.conf and tried to overwrite www.conf by using ebextensions, but unsuccessfully.
Did anybody do this?
Best Answer
Create a script inside
.platform/hooks/predeploy
. The script should create a new config file inside/etc/php-fpm.d/
.Our script for example looks like this.