Applicable to:
- Plesk for Linux
Symptoms
-
PHP-FPM services fail to start on server reboot:
# systemctl status plesk-php71-fpm
plesk-php71-fpm - The PHP 7.1 FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/plesk-php71-fpm.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2017-08-29 00:07:31 +0430; 12h ago -
The following records can be found in the systemctl logs for the same PHP-FPM version:
# less /var/log/plesk-php71-fpm/error.log
ERROR: No pool defined. at least one pool section must be specified in config file
ERROR: failed to post process the configuration
ERROR: FPM initialization failed -
PHP-FPM configuration files exist for a particular Plesk PHP version, for example:
# ls /opt/plesk/php/7.1/etc/php-fpm.d/*.conf | wc -l
5 -
systemd init system is used on a server:
# ps -p 1
PID TTY TIME CMD
1 ? 00:08:31 systemd
Cause
During the server reboot, web services started before network services were completely initiated.
Resolution
-
Connect to the server via SSH;
-
Edit the following file:
/etc/systemd/system.conf
; -
Increase the value of the
DefaultTimeoutStartSec
parameter. For example, to600s
# grep DefaultTimeoutStartSec/etc/systemd/system.conf
DefaultTimeoutStartSec=600s
Comments
0 comments
Please sign in to leave a comment.