Php fpm unrecognized service

«php5-fpm: unrecognized service» and other issues after reverting from PPA

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here https://askubuntu.com/a/109544 it seemed that the PPA didn’t handle the upgrade well enough or something was a bit off and things weren’t working even after making the necessary config changes post-upgrade. I removed the PPA and purged a few things and then reinstalled, however things seem even more off now and I can’t seem to get back to a proper working state. I backed up all of my configs and have only been trying to get things working as before to no avail. For example:

myusername ~ $ sudo service php5-fpm stop php5-fpm: unrecognized service myusername ~ $ sudo /etc/init.d/php5-fpm stop sudo: /etc/init.d/php5-fpm: command not found myusername ~ $ ls -al /etc/init.d/php5-fpm lrwxrwxrwx 1 root root 21 Dec 12 17:00 /etc/init.d/php5-fpm -> /lib/init/upstart-job 

I’m not sure how else to go about reverting things, and more than happy to fall back on defaults and drop my configs back but I don’t think I’ve been successful at undoing the upgrade. How can I repair things, or get things back to a sane working state?

Читайте также:  Html always on top div

1 Answer 1

My solution to get things back in working order:

  1. Backup config files in /etc/apache2 and /etc/php5 (sites-available, pools, inis, etc)
  2. Remove the old PPA:

And that took a broken, whiny system back into a clean state. Everything’s working beautifully again, hope this helps someone.

Источник

Ho do you stop and start php-fpm?

Ok I’m trying to install Ion Cube on an AWS instance created by Bitnami: https://aws.amazon.com/marketplace/pp/B007OUYR4Y/ref=srh_res_product_title?ie=UTF8&sr=0-4&qid=1413489962522 Instuctions on how to install Ion Cube for this environment can be found here: http://wiki.bitnami.com/Components/PHP#How_in_install_IonCube_extension.3f The problem I’m having is I have reached the restart PHP-fpm and the Apache server part but I’m receiving this error when I try to restart php-fpm. But first here is the version of php I’m running.

Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with the ionCube PHP Loader v4.6.2, Copyright (c) 2002-2014, by ionCube Ltd. The following are the commands with the corresponding errors when I try to stop and/ or restart php-fpmresta:

$service stop php-fpm stop: unrecognized service $sudo service php-fpm stop php-fpm: unrecognized service $sudo service php5-fpm stop php5-fpm: unrecognized service $sudo service php5-fpm status php5-fpm: unrecognized service $sudo service php-fpm status php-fpm: unrecognized service $php-fpm restart No command 'php-fpm' found, did you mean: $sudo php-fpm restart sudo: php-fpm: command not found $service php-fpm restart php-fpm: unrecognized service $sudo php-fpm restart sudo: php-fpm: command not found $sudo service PHP-fpm stop PHP-fpm: unrecognized service $sudo PHP-fpm restart sudo: PHP-fpm: command not found $kill php-fpm -bash: kill: php-fpm: arguments must be process or job IDs $sudo kill php-fpm kill: failed to parse argument: 'php-fpm' $sudo stop php-fpm stop: Unknown job: php-fpm $restart php5-fpm restart: Unknown job: php5-fpm $sudo restart php5-fpm restart: Unknown job: php5-fpm $restart php4-fpm restart: Unknown job: php4-fpm $sudo restart php4-fpm restart: Unknown job: php4-fpm 

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ivre/web Docker container: php7.0-fpm: unrecognized service #725

ivre/web Docker container: php7.0-fpm: unrecognized service #725

Comments

IVRE Version

# ivre version IVRE - Network recon framework Copyright 2011 - 2019 Pierre LALET Version 0.9.13.dev32 Python 2.7.16 (default, Apr 6 2019, 01:42:57) [GCC 8.3.0] Linux 10e6556c0999 4.19.0-kali5-amd64 #1 SMP Debian 4.19.37-5kali1 (2019-06-20) x86_64 Dependencies: Python module Crypto: 2.6.1 Python module pymongo: 3.7.1 Python module py2neo: 3 Python module sqlalchemy: missing Python module psycopg2: missing Python module krbV: missing Python module PIL: 5.4.1 Python module MySQLdb: missing Python module dbus: missing Python module matplotlib: missing Python module bottle: 0.12.15 

Summary

I am following the installation guide and using Vagrant and official Docker images.

Expected behavior

Web interface available on http://localhost

Actual behavior

Web interface is unavailable.

How to reproduce

More

I traced the problem to the fact that the container for the ivre/web image was not running. The error message is:

But currently we obtain php7.3-fpm :

# ls /etc/init.d fcgiwrap hwclock.sh nginx php7.3-fpm # service php7.3-fpm start 

I fixed it easily by replacing:
CMD service php7.0-fpm start && \
With:
CMD service php7.3-fpm start && \

But you will probably have a better and more permanent idea so I did not suggest a PR.

The text was updated successfully, but these errors were encountered:

Источник

«php5-fpm: unrecognized service» and other issues after reverting from PPA

  1. Backup config files in /etc/apache2 and /etc/php5 (sites-available, pools, inis, etc)
  2. Remove the old PPA:

And that took a broken, whiny system back into a clean state. Everything’s working beautifully again, hope this helps someone.

Unable to communicate back with site to check for fatal error, the PHP change |Subscribe Our Channel

Unable to communicate back with site to check for fatal errors

How to Configure PHP for Nginx with PHP-FPM on Ubuntu

Nginx and/or php5-fpm remembers symlinked root directory - PHP

PHP FPM returns HTTP 500 for all PHP errors - PHP

Michael Thompson

Updated on September 18, 2022

Comments

Added a repository so that I could move from PHP 5.3 to 5.5 easily in Ubuntu 12.04.3 LTS. After adding the PPA and following most of the suggestions here https://askubuntu.com/a/109544 it seemed that the PPA didn’t handle the upgrade well enough or something was a bit off and things weren’t working even after making the necessary config changes post-upgrade. I removed the PPA and purged a few things and then reinstalled, however things seem even more off now and I can’t seem to get back to a proper working state. I backed up all of my configs and have only been trying to get things working as before to no avail. For example:

myusername ~ $ sudo service php5-fpm stop php5-fpm: unrecognized service myusername ~ $ sudo /etc/init.d/php5-fpm stop sudo: /etc/init.d/php5-fpm: command not found myusername ~ $ ls -al /etc/init.d/php5-fpm lrwxrwxrwx 1 root root 21 Dec 12 17:00 /etc/init.d/php5-fpm -> /lib/init/upstart-job 

I’m not sure how else to go about reverting things, and more than happy to fall back on defaults and drop my configs back but I don’t think I’ve been successful at undoing the upgrade. How can I repair things, or get things back to a sane working state?

Источник

Оцените статью