For the linux user,  I want to reload or restart my PHP-fpm service. How do I restart PHP-fpm? How do you restart php7.0-fpm on Ubuntu Linux 16.04 LTS server?

PHP-FPM is nothing but a straightforward and robust FastCGI Process Manager for PHP. You can use it with Apache, Nginx, and other web servers. It includes many advanced features. Let us see how to stop or restart or reload PHP-FPM after you update php.ini file.

How do I edit php.ini or www.conf file?

To edit php.ini type:

OR

To edit php-fpm config file:

Once edited, save and close the file. Now you need to run command as per your Linux/Unix distro version after editing the file.

Start php-fpm on CentOS/RHEL 7

Stop php-fpm CentOS/RHEL 7

Reload php-fpm CentOS/RHEL 7

Restart php-fpm CentOS/RHEL 7

Start/stop/restart/reload php-fpm on CentOS/RHEL 6.x or older

Type the following command:

How to start/stop/restart/reload php5-fpm (php version 5.x) on Ubuntu/Debian Linux

OR if you are using systemd based distro such as Ubuntu Linux 16.04+ LTS or Debian Linux 8.x+:

How to start/stop/restart/reload php7.0-fpm (php version 7.x) on Ubuntu/Debian Linux

OR if you are using systemd based distro such as Ubuntu Linux 16.04+ LTS or Debian Linux 8.x+:

How do you restart/reload php-fpm on FreeBSD unix?

The syntax is

OR use the service command:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.