Question

Errors installing PHP FPM

Trying to follow a guide on iRedMail’s installation, but I can’t get any further as I can’t install the FPM module for PHP. This is the error I get:

Aug 15 20:00:58 <my mail server> systemd[1]: Starting The PHP 7.0 FastCGI Process Manager...
Aug 15 20:00:58 <my mail server> php-fpm7.0[22519]: [15-Aug-2018 20:00:58] ERROR: [pool root] please specify user and group other than root
Aug 15 20:00:58 <my mail server> php-fpm7.0[22519]: [15-Aug-2018 20:00:58] ERROR: FPM initialization failed
Aug 15 20:00:58 <my mail server> systemd[1]: php7.0-fpm.service: Main process exited, code=exited, status=78/n/a
Aug 15 20:00:58 <my mail server> systemd[1]: Failed to start The PHP 7.0 FastCGI Process Manager.
Aug 15 20:00:58 <my mail server> systemd[1]: php7.0-fpm.service: Unit entered failed state.
Aug 15 20:00:58 <my mail server> systemd[1]: php7.0-fpm.service: Failed with result 'exit-code'.
dpkg: error processing package php7.0-fpm (--configure):
 subprocess installed post-installation script returned error exit status 1
Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

@jtittle Hello we need some help for our website on Digital Ocean. When we try to configure website via Wordpress/Flatsome Ux builder tool or when we try to import products via All Import plugin we are getting 504 errors. Digital Ocean Contol Panel is showing high PHP-FPM usage during proccesses. Now we can neither configure home page nor import products to our web site. Can you have a look to investigate the problem and suggest us a solution?

Hello friend!

Have you made a custom configuration for php-fpm on this system? This line seems to suggest that it is configured to run as root:

Aug 15 20:00:58 <my mail server> php-fpm7.0[22519]: [15-Aug-2018 20:00:58] ERROR: [pool root] please specify user and group other than root

Ideally it should run as a privileged user (www-data is a common example), and it may not start when configured to run as the root user.

Kind Regards, Jarland