Symptoms
PHP-ELS ALT-PHP[3,4,5] as well as CloudLinux ALT-PHP services fail to fully start with /opt/alt/php5[3,4,5]/etc/php-fpm.conf missing pid path setting.
When restarting Apache PHP-FPM with /scripts/restartsrv_apache_php_fpm errors like this are seen.
CONFIG_TEXT: [ERROR] PHP-FPM Version alt-53 failed to start
[ERROR] PHP-FPM Version alt-54 failed to start
[ERROR] PHP-FPM Version alt-55 failed to start Cpanel::Exception::Services::RestartError
Cause
The versions not starting are missing pid paths. We have created a case UPS-818 to review this issue.
Resolution
By setting each one manually with the proper path:
CONFIG_TEXT: /opt/alt/php53/etc/php-fpm.conf:pid = /var/run/alt-php53-fpm.pid
/opt/alt/php54/etc/php-fpm.conf:pid = /var/run/alt-php54-fpm.pid
/opt/alt/php55/etc/php-fpm.conf:pid = /var/run/alt-php55-fpm.pid
The service should start without errors. These commands should make the changes needed:
# sed -i 's/;pid.*/pid\ \=\ \/var\/run\/alt\-php53\-fpm\.pid/g' /opt/alt/php53/etc/php-fpm.conf
# sed -i 's/;pid.*/pid\ \=\ \/var\/run\/alt\-php54\-fpm\.pid/g' /opt/alt/php54/etc/php-fpm.conf
# sed -i 's/;pid.*/pid\ \=\ \/var\/run\/alt\-php55\-fpm\.pid/g' /opt/alt/php55/etc/php-fpm.conf
Comments
0 comments
Article is closed for comments.