Force PHP Restart
To restart PHP for a specific site, toggle the PHP version temporarily. This ensures that all current PHP processes terminate and php-fpm
restarts.
Steps to Force a PHP Restart
-
Access Website Management
- Locate the website in the control panel.
- Click Manage.
-
Open Developer Tools
- On the website dashboard, select the Advanced menu.
- Click Developer Tools.
-
Change PHP Version
- Under PHP Engine, change the PHP version to a different one.
- Wait for the process to complete.
-
Revert PHP Version
- Set the PHP version back to the original one.
Outcome
This process will close all current PHP processes and restart php-fpm
for the site.