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

https:‮al.www//‬utturi.com
How to reload or restart php-fpm 5/6/7/8 service

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:

  1. Find the name of the 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.

  1. Reload or restart the 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.

Created Time:2017-10-28 21:39:06  Author:lautturi