Symptoms
-
All websites hosted on Plesk server are inaccessible
-
Unable to switch web sites to Apache in the LiteSpeed extension with the following error:
PLESK_ERROR: Failed to switch to Apache! This may be due to a configuration error. To manually check this problem, please ssh to your server. Use the following steps to manually switch to Apache: Stop LiteSpeed if lshttpd still running: killall -9 lshttpd Try stop LiteSpeed if lshttpd still running: killall -9 lshttpd Restore Apache httpd if /usr/sbin/httpd_ls_bak exists: mv -f /usr/sbin/httpd_ls_bak /usr/sbin/httpd Run the Apache restart command manually: service httpd restart and check for errors.
Cause
The LiteSpeed extension failed to switch web sites to Apache. As result Apache got down and LiteSpeed was not completely disabled.
Resolution
-
Connect to the server via SSH
-
Kill all LiteSpeed processes:
# killall -9 litespeed
-
Restore original Apache service configuration:
# unlink /usr/lib/systemd/system/httpd.service
# cp -a /usr/lib/systemd/system/httpd.service.ls_bak_bak /usr/lib/systemd/system/httpd.service
# systemctl daemon-reload -
Start Apache manually:
# service httpd restart