I deploy php symfony to App Platform and i want change php-fpm settings. I create file ‘fpm.inc.conf’ in root. My Procfile:
web: heroku-php-nginx -C nginx.conf -F fpm.inc.conf public/
But i don’t see my settings php-fpm applied. My deploy log:
[2022-12-03 16:01:40] DOCUMENT_ROOT changed to 'public/'
[2022-12-03 16:01:40] Using Nginx server-level configuration include 'nginx.conf'
[2022-12-03 16:01:41] Assuming 512MB of RAM
[2022-12-03 16:01:41] $WEB_CONCURRENCY env var is set, skipping automatic calculation
[2022-12-03 16:01:41] Starting php-fpm with 16 workers...
[2022-12-03 16:01:42] Starting nginx...
[2022-12-03 16:01:42] Application ready for connections on port 8080.
But them should contain string like “Using PHP-FPM configuration include 'fpm.inc.conf” from https://github.com/heroku/heroku-buildpack-php/blob/main/bin/heroku-php-nginx#L328
On locally, then i build image pack build blablabla --builder heroku/buildpacks:2
and run them docker run --rm -e 'PORT=8080' -e 'APP_ENV=prod' -p 8080:8080 blablabla
i see, it’s right:
DOCUMENT_ROOT changed to 'public/'
Using PHP-FPM configuration include 'fpm.inc.conf'
Using Nginx server-level configuration include 'nginx.conf'
Assuming 512MB of RAM
$WEB_CONCURRENCY env var is set, skipping automatic calculation
Starting php-fpm with 1 workers...
Starting nginx...
Application ready for connections on port 8080.
And $HEROKU_PHP_FPM_CONFIG_INCLUDE
is empty in container.
What am i doing wrong?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Yes, i can set ENV $HEROKU_PHP_FPM_CONFIG_INCLUDE explicitly, but why param -F not working i don’t understand