If you’re using OpenLiteSpeed as your web server, here are some useful commands you can use when you’re logged into the server via ssh.
/usr/local/lsws/bin/lshttpd -v
usr/local/lsws/bin/openlitespeed -t
systemctl start lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
systemctl stop lsws
systemctl restart lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
Run the following in sequence:
/usr/local/lsws/bin/lswsctrl stop killall -9 lsphp systemctl stop lsws systemctl start lsws
/usr/local/lsws/bin/lswsctrl help