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:
- To reload the service:
sudo service php5-fpm reloador
sudo service php6-fpm reload- To restart the service:
sudo service php5-fpm restartor
sudo service php6-fpm restartFor php-fpm 7 and 8:
- To reload the service:
sudo systemctl reload php7.0-fpmor
sudo systemctl reload php8.0-fpm- To restart the service:
sudo systemctl restart php7.0-fpmor
sudo systemctl restart php8.0-fpmNote: Replace php7.0-fpm and php8.0-fpm with the version of php-fpm you are using.
