@ryleigh
To restart PHP in Linux, you can use one of the following methods:
- Using the PHP-FPM service:
Locate the PHP-FPM service configuration file, typically located in /etc/php/fpm/ or /etc/php-fpm.d/.
Open the PHP-FPM service configuration file using a text editor.
Look for the pid directive and note down the path to the PHP-FPM process ID file.
Open a terminal and run the command sudo service php-fpm restart or sudo systemctl restart php-fpm.
- Using the Apache or Nginx web server:
Open a terminal and run the command sudo service apache2 restart or sudo systemctl restart apache2 to restart Apache, OR sudo service nginx restart or sudo systemctl restart nginx to restart Nginx.
The web server restart will also restart the associated PHP interpreter.
Note: Restarting PHP using one of these methods will not affect any applications or processes running on your server.