Cannot start php5-fpm: cannot get uid for user

Created:

2016-11-16 12:49:03 UTC

Modified:

2017-08-08 13:31:29 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot start php5-fpm: cannot get uid for user

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Cannot start php5-fpm service:

root@server21:~# systemctl status php5-fpm.service
php5-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
Active: failed (Result: exit-code) since Mon 2016-04-25 23:10:50 CEST; 7s ago
Process: 11390 ExecReload=/bin/kill -USR2 $MAINPID (code=exited, status=0/SUCCESS)
Process: 25404 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=78)
Process: 25398 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
Main PID: 25404 (code=exited, status=78)

Apr 25 23:10:50 server21.example.com php5-fpm[25404]: [25-Apr-2016 23:10:50] ERROR: [pool example.com] cannot get uid for user 'pool-user'
Apr 25 23:10:50 server21.example.com php5-fpm[25404]: [25-Apr-2016 23:10:50] ERROR: FPM initialization failed
Apr 25 23:10:50 server21.example.com systemd[1]: php5-fpm.service: main process exited, code=exited, status=78/n/a
Apr 25 23:10:50 server21.example.com systemd[1]: Failed to start The PHP FastCGI Process Manager.
Apr 25 23:10:50 server21.example.com systemd[1]: Unit php5-fpm.service entered failed state.

Cause

The required system user is missing:

root@server21:/# cat /etc/passwd | grep pool-user
root@server21:/#

Resolution

Re-generate PHP settings for the domain mentioned in the error message to create a new system user:

Home > Domains > domain_name > PHP Settings > OK

Additional information

Plesk repair utility does not restore PHP settings

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