php5-ubuntu
php5-ubuntu copied to clipboard
Init.d script fails to start/stop php-fpm after installation
Running the setup script on a barebones Ubuntu (both Focal and Jammy), close to the end there is a 30 secs wait while the script tries to start php-fpm, and fails.
The output is: Starting php-fpm ................................... failed
By the looks of it, it seems that the php-fpm service script which gets installed in init.d has a problem with the pid file not being found. I am not sure if this is due to the pid file being specified in the fpm config file which is generated during the setup, if the php-fpm binary simply disobeys the cli option with the name of the pid file to generate, or if it is a filesystem permissions issue.
This does not prevent using the installed php, nor php-fpm, as the php-fpm process will actually work.
It just makes the setup process slower than it could be.