PHP-FPM Not Found!


#1
sudo service php-fpm restart
Failed to restart php-fpm.service: Unit php-fpm.service not found.

Hello friends!

I did a wordpress install via Easy Engine. I do not know if I am correct, but from what I know the Easy Engine installation also installs php-fpm, but on my server it says the drive does not exist.

Could someone tell me how to solve this!

Thank you!


#2

Hello, Try to restart php5-fpm or php7.0-fpm.


#3

Thanks, @virtubox I’ve tried all these and using 5.6 it looks like it worked! Is there any way to test php-fpm to see if it’s working?

Digital Ocean support told me that it looks like my PHP-FPM is not working as it should.

Support Digital Ocean: It sounds like you haven’t configured a PHP process manager like PHP-FPM on the back-end.

root@ubuntu-512mb-nyc3-01:~# sudo service php-fpm restart Failed to restart php-fpm.service: Unit php-fpm.service not found. root@ubuntu-512mb-nyc3-01:~# sudo service php5-fpm restart Failed to restart php5-fpm.service: Unit php5-fpm.service not found. root@ubuntu-512mb-nyc3-01:~# sudo service php5.6-fpm restart root@ubuntu-512mb-nyc3-01:~#


#4

Yes, just use sudo service php5.6-fpm status


#5

From what I understand, everything is enabled! Thanks a lot for the help!

● php5.6-fpm.service - The PHP 5.6 FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5.6-fpm.service; enabled; vendor preset: enabled) Active: active (running) since Tue 2017-05-30 14:28:26 UTC; 9min ago Docs: man:php-fpm5.6(8) Main PID: 15114 (php-fpm5.6) Status: “Processes active: 0, idle: 0, Requests: 0, slow: 0, Traffic: 0req/sec” Tasks: 1 Memory: 13.8M CPU: 210ms CGroup: /system.slice/php5.6-fpm.service └─15114 php-fpm: master process (/etc/php/5.6/fpm/php-fpm.conf)

May 30 14:28:26 ubuntu-512mb-nyc3-01 systemd[1]: Starting The PHP 5.6 FastCGI Process Manager… May 30 14:28:26 ubuntu-512mb-nyc3-01 systemd[1]: Started The PHP 5.6 FastCGI Process Manager. root@ubuntu-512mb-nyc3-01:~#


#6