To reload or restart the php-fpm
service on a Linux system, you can use the systemctl
command.
Here are the steps to reload or restart the php-fpm
service:
php-fpm
service:systemctl list-units --type=service | grep php-fpm
This will list the available php-fpm
services, along with their status. The name of the php-fpm
service is usually in the form php-fpm@version
, where version
is the version of PHP that the service is running. For example, php-fpm@7.4
.
php-fpm
service using the systemctl
command:To reload the php-fpm
service:
sudo systemctl reload php-fpm@version
To restart the php-fpm
service:
sudo systemctl restart php-fpm@version
Replace version
with the version of PHP that the php-fpm
service is running.
These steps will reload or restart the php-fpm
service, depending on the command you use. The reload
command will reload the php-fpm
service configuration without stopping or starting the service, while the restart
command will stop and start the php-fpm
service.