Failed to start PHP-FPM service: failed to open error_log

Created:

2017-07-28 00:29:10 UTC

Modified:

2017-08-16 16:53:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Failed to start PHP-FPM service: failed to open error_log

Applicable to:

  • Plesk for Linux

Symptoms

Unable to start PHP-FPM service. The following error can be found when checking the status of PHP-FPM service:

# systemctl status plesk-php55-fpm
plesk-php55-fpm.service - The PHP 5.5.38 FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/plesk-php55-fpm.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2017-07-27 17:06:38 UTC; 3min 34s ago
Process: 6169 ExecStart=/opt/plesk/php/5.5/sbin/php-fpm --nodaemonize (code=exited, status=78)
Main PID: 6169 (code=exited, status=78)
Jul 27 17:06:38 example.com systemd[1]: Starting The PHP 5.5.38 FastCGI Process Manager...
Jul 27 17:06:38 example.com php-fpm[6169]: [27-Jul-2017 17:06:38] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/plesk/ph... on line 0
Jul 27 17:06:38 example.com php-fpm[6169]: [27-Jul-2017 17:06:38] ERROR: failed to open error_log (/var/log/plesk-php55-fpm/error.log): No such file or directory (2)
Jul 27 17:06:38 example.com php-fpm[6169]: [27-Jul-2017 17:06:38] ERROR: failed to post process the configuration
Jul 27 17:06:38 example.com php-fpm[6169]: [27-Jul-2017 17:06:38] ERROR: FPM initialization failed
Jul 27 17:06:38 example.com systemd[1]: plesk-php55-fpm.service: main process exited, code=exited, status=78/n/a
Jul 27 17:06:38 example.com systemd[1]: Failed to start The PHP 5.5.38 FastCGI Process Manager.
Jul 27 17:06:38 example.com systemd[1]: Unit plesk-php55-fpm.service entered failed state
Jul 27 17:06:38 example.com systemd[1]: plesk-php55-fpm.service failed.

Cause

The error log directory for PHP-FPM does not exist.

Resolution

1. Log in to the server via SSH .

2. Create an empty directory with the command:

# mkdir /var/log/plesk-php55-fpm/

The directory path should correspond to the affected PHP-FPM version.

Have more questions? Submit a request
Please sign in to leave a comment.