Unable to remove litespeed or start apache after the license expired.

How to remove litespeed after the license expired.
Vingo Hosting
Vingo Hosting

Created: 08/15/2021 11:10 AM - Updated: 08/15/2021 11:12 AM

Litespeed currently has a bug or an issue, After the license expiration. Your websites will be down and you will not be able to replace litespeed with apache or use apache. So we decided to create an article to explain how to remove it easily.

This tutorial was done on cPanel server.

First of all we need to try switching to apache using the litespeed provided command:

/usr/local/lsws/admin/misc/cp_switch_ws.sh apache

If things worked as it should. Your websites should be now up again. That's isn't likely to work after license expiration. If your websites are still down. Please continue the tutorial

We will need to uninstall the litespeed plugin using this command:

/usr/local/cpanel/whostmgr/docroot/cgi/lsws/lsws_whm_plugin_uninstall.sh;/usr/local/lsws/admin/misc/uninstall.sh

After removing litespeed. Your apache will not work, That's because litespeed has installed custom modules and edited the default apache to only work with their license, We will need to reinstall easyapache4 and all it's packages using this command:

yum reinstall $(rpm -qa --qf "%{NAME}\n"|grep ^ea-|while read pkg;do echo -n "$pkg ";done)

After that, Apache is supposed to work normally, Let's start it using the command below:

service httpd stop;service httpd start;

Horray !, Your websites are now up again.


Was this article helpful?

0 Out of 0 Marked As Helpfull

Have more questions? Please Contact Us