How to reload or restart php-fpm 5/6/7/8 service

The process to reload or restart php-fpm depends on the operating system and the version of php-fpm you are using. Here are some common methods for reloading or restarting php-fpm:

For php-fpm 5 and 6:

  1. To reload the service:
sudo service php5-fpm reload

or

sudo service php6-fpm reload
  1. To restart the service:
sudo service php5-fpm restart

or

sudo service php6-fpm restart

For php-fpm 7 and 8:

  1. To reload the service:
sudo systemctl reload php7.0-fpm

or

sudo systemctl reload php8.0-fpm
  1. To restart the service:
sudo systemctl restart php7.0-fpm

or

sudo systemctl restart php8.0-fpm

Note: Replace php7.0-fpm and php8.0-fpm with the version of php-fpm you are using.

Leave a Comment