OpenLiteSpeed restart PHP

On OpenLiteSpeed, if you edit php.ini or installed a PHP module, restart OpenLiteSpeed won’t show the changes. You will need to restart PHP process.

You can do this by killing all PHP process with

killall -9 lsphp

Or you can create a file

touch /usr/local/lsws/admin/tmp/.lsphp_restart.txt

If you need PHP restarted just for a web site, run

touch /home/USER1/.lsphp_restart.txt

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *