Symptoms
Apache will not start after the Litespeed license expires, and an error similar to the following will be in the logs.
Sep 28 11:36:51 server.domain.tld restartsrv_httpd[1707233]: [ERROR] Cannot find /usr/local/apache/bin/litespeed
Description
This issue occurs when the LiteSpeed license expires while it is running, which prevents LiteSpreed from switching to Apache. Reinstalling the ea-apache24-config-runtime
package corrects this issue.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Reinstall the
ea-apache24-config-runtime
package.- CentOS 7, CloudLinux 6/7
yum reinstall -y ea-apache24-config-runtime
- Almalinux 8/9, CloudLinux 8/9, Rocky Linux 8/9
dnf reinstall -y ea-apache24-config-runtime
- Ubuntu
dpkg --purge --force-depends ea-apache24-config-runtime
apt-get install ea-apache24-config-runtime
- CentOS 7, CloudLinux 6/7
- Switch the webserver to Apache.
/usr/local/lsws/admin/misc/cp_switch_ws.sh apache