Litespeed Plugin Expired On WHM And Apache Not starting

#1
I tried the litespeed cache plugin for WHM
The licence is expired and now the problem is Nither Litespeed is working and no Apache going to start.

Here is the log

Aug 19 07:25:05 server.mydoamin.com systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Aug 19 07:25:05 server.mydoamin.com restartsrv_httpd[21229]: [ERROR] Cannot find /usr/local/apache/bin/litespeed
Aug 19 07:25:05 server.mydoamin.com systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 19 07:25:05 server.mydoamin.com systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
Aug 19 07:25:05 server.mydoamin.com systemd[1]: Unit httpd.service entered failed state.
Aug 19 07:25:05 server.mydoamin.com systemd[1]: httpd.service failed.

and when i check the licence

Error when checking the license status
Sorry, your trial license key has expired!
[ERROR] serial.no is missing!


when i try to start httpd
[root@server ~]# service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.



[root@server ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2020-08-19 08:25:10 UTC; 29s ago
Process: 3402 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE)

Aug 19 08:25:10 server.mydoamin.com systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Aug 19 08:25:10 server.mydoamin.com restartsrv_httpd[3402]: [ERROR] Cannot find /usr/local/apache/bin/li...ed
Aug 19 08:25:10 server.mydoamin.com systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 19 08:25:10 server.mydoamin.com systemd[1]: Failed to start Apache web server managed by cPanel Ea...che.
Aug 19 08:25:10 server.mydoamin.com systemd[1]: Unit httpd.service entered failed state.
Aug 19 08:25:10 server.mydoamin.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

i dont have WHM access only ssh is working
Please help regarding this.
The server management event don't know what was wrong.
Thanks.
 
#4
Actually lite speed cache plugin either have bug or intentionally it's misconfig the apache server so user must have to purchase licence after its expire.
The scenario 1
- I Installed the plugin on WHM and activated
- I not remember where its expired (That's my fault , i should check and deactivate it )
- The day it expired the server is down ( i requested for support they took 12 hours to find out the solution)
--They access the WHM any how and requested the another trial licence it success and Lsws is running again
BUT when we tried to switch to apache its not gona work,
- We Stopped and uninstalled the LSscahe plugin
- followed the this https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cpanel:whm-lsws-plugin-uninstall
but still no luck apache is still not started.
- last they figured out the apache settings has changed and symlinks is different what cpanel server need.
- Rebuild the whole apache server did the job and we need to again link all rules and domain etc.


Its fine it may be happen if some other problem in server.
But to verify this. i tried it in another WHM server and the problem is the same. Apache crashed.
if its but bug i request please check and correct. otherwise best of luck with sales.
 

serpent_driver

Well-Known Member
#5
@vwebtech

I can't reproduce what went wrong with your installation, but if I read your explanation I think you missunderstood something. You always talk about WHM cache plugin. There is no cache plugin for WHM. There is only a plugin for WHM to control LiteSpeed webserver. If you only install this plugin, without installing LiteSpeed webserver that can't work and could be the reason why you have trouble switching to Apache. If LiteSpeed webserver isn't installed how should this WHM plugin can switch? If you want to test LiteSpeed webserver and LScache you must install LiteSpeed webserver first. WHM plugin is part of this installation if you use cPanel. If you want to test LScache you need an application like Wordpress and the cache plugin for Wordpress. But again, there is no cache plugin for WHM!
 

Pong

Administrator
Staff member
#6
LiteSpeed won't touch any WHM/cpanel apache configuration. If you can not start your apache, it could be possibly some incorrect apache configuration, but they are not caused by LiteSpeed. You should contact cpanel support for a fix, or your can check why apache could not started for your possible configuration error.

Switching to apache is very easy. "
"/usr/local/lsws/admin/misc/cp_switch_ws.sh apache"
You will need to run the above switch.
If any apache issue, you will need to fix it or log a ticket with cpanel support.
 
#7
LiteSpeed won't touch any WHM/cpanel apache configuration. If you can not start your apache, it could be possibly some incorrect apache configuration, but they are not caused by LiteSpeed. You should contact cpanel support for a fix, or your can check why apache could not started for your possible configuration error.

Switching to apache is very easy. "
"/usr/local/lsws/admin/misc/cp_switch_ws.sh apache"
You will need to run the above switch.
If any apache issue, you will need to fix it or log a ticket with cpanel support.
As I am also having this issue I can't say for certain it's a cPanel issue. The script itself is failing. Is the script to switch between LiteSpeed and Apache provided by LiteSpeed or cPanel?

This doesn't seem good enough, as now a whole bunch of our customer sites are down and we are unable to restore Apache.

Switch To Apache

  • Critical Alert
  • [LICENSE] License key operation failure: ERR LC.V: License has expired 1 days, you have to renew your license
  • LiteSpeed is not running. Apache is not running.
  • ---
  • metadata:
  • command: configureservice
  • reason: Enabled monitoring for httpd.
  • result: 1
  • version: 1
  • **ERROR** Apache is not up within 30 secs. Please check the log file.
  • 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: pkill -9 litespeed
  • 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.

I am sure there are others who would like this resolved, because as we are a very small company and sometimes can't afford to pay the licence fees, we rely on occasionally being able to fall back to Apache. This is effectively holding us to ransom, as no matter what I try, we can't get it to switch to Apache.

Please provide us with a viable solution.
 
#8
Oct 09 23:50:27 cpanel.easy-hosting.co.nz systemd[1]: Starting LiteSpeed HTTP Server...
-- Subject: Unit lshttpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit lshttpd.service has begun starting up.
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3997708]: 2020-10-09 23:50:27.824494 [NOTICE] Memory size is: 7726380KB.
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3997708]: Sorry, your license key has expired!
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3997708]: Sorry, your license key has expired!
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: ---
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: metadata:
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: command: configureservice
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: reason: Enabled monitoring for httpd.
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: result: 1
Oct 09 23:50:27 cpanel.easy-hosting.co.nz lswsctrl[3996615]: version: 1
Oct 09 23:50:28 cpanel.easy-hosting.co.nz lswsctrl[3997708]: 2020-10-09 23:50:28.604240 [ERROR] [LICENSE] License key operation failure: ERR LC.V: License has expired 1 days, you have to renew your license
Oct 09 23:50:28 cpanel.easy-hosting.co.nz lswsctrl[3997708]: [FATAL] license problem, back to Apache!
Oct 09 23:50:29 cpanel.easy-hosting.co.nz lswsctrl[3997708]: 2020-10-09 23:50:29.819318 [NOTICE] Switch back to Apache ...
Oct 09 23:50:29 cpanel.easy-hosting.co.nz lswsctrl[3997708]: [ERROR] Failed to start litespeed!
Oct 09 23:50:29 cpanel.easy-hosting.co.nz lswsctrl[3997708]: Detected cPanel WHM Environment
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: ---
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: metadata:
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: command: configureservice
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: reason: Enabled monitoring for httpd.
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: result: 1
Oct 09 23:50:31 cpanel.easy-hosting.co.nz lswsctrl[3997708]: version: 1

● lshttpd.service - LiteSpeed HTTP Server
Loaded: loaded (/etc/systemd/system/lshttpd.service; enabled; vendor preset: disabled)
Active: activating (start) since Fri 2020-10-09 23:53:48 NZDT; 3s ago
Main PID: 3298409 (code=exited, status=0/SUCCESS); : 4004038 (lswsctrl)
CGroup: /system.slice/lshttpd.service
├─3996702 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3997348 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3997635 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3997791 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3998325 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3998418 /scripts/restartsrv_httpd
├─3998449 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3998509 /scripts/restartsrv_httpd
├─3998939 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3999027 /scripts/restartsrv_httpd
├─3999057 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3999124 /scripts/restartsrv_httpd
├─3999539 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3999626 /scripts/restartsrv_httpd
├─3999744 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─3999803 /scripts/restartsrv_httpd
├─4000198 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4000284 /scripts/restartsrv_httpd
├─4000317 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4000396 /scripts/restartsrv_httpd
├─4000936 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4001032 /scripts/restartsrv_httpd
├─4001070 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4001153 /scripts/restartsrv_httpd
├─4001721 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4001806 /scripts/restartsrv_httpd
├─4001851 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4001912 /scripts/restartsrv_httpd
├─4002293 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4002384 /scripts/restartsrv_httpd
├─4002416 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4002478 /scripts/restartsrv_httpd
├─4003044 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4003148 /scripts/restartsrv_httpd
├─4003209 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4003297 /scripts/restartsrv_httpd
├─4003969 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4004037 /usr/bin/systemctl restart httpd.service --no-ask-password
├─4004038 /bin/sh /usr/local/lsws/bin/lswsctrl start
├─4004068 /scripts/restartsrv_httpd
├─4004136 /bin/sh /usr/local/lsws//admin/misc/cp_switch_ws.sh apache
├─4004137 sleep 2
├─4004197 sleep 1
├─4004198 sleep 1
├─4004205 sleep 1
├─4004213 sleep 1
├─4004215 /usr/local/cpanel/bin/whmapi1 configureservice service=httpd enabled=1 monitored=1
└─4004217 xml-api - configureservice

Oct 09 23:53:48 cpanel.easy-hosting.co.nz lswsctrl[4003099]: metadata:
Oct 09 23:53:48 cpanel.easy-hosting.co.nz lswsctrl[4003099]: command: configureservice
Oct 09 23:53:48 cpanel.easy-hosting.co.nz lswsctrl[4003099]: reason: Enabled monitoring for httpd.
Oct 09 23:53:48 cpanel.easy-hosting.co.nz lswsctrl[4003099]: result: 1
Oct 09 23:53:48 cpanel.easy-hosting.co.nz lswsctrl[4003099]: version: 1
Oct 09 23:53:49 cpanel.easy-hosting.co.nz lswsctrl[4004038]: 2020-10-09 23:53:49.519793 [ERROR] [LICENSE] License key operation failure: ERR LC.V: License has expired 1 days, you have to renew your license
Oct 09 23:53:49 cpanel.easy-hosting.co.nz lswsctrl[4004038]: [FATAL] license problem, back to Apache!
Oct 09 23:53:50 cpanel.easy-hosting.co.nz lswsctrl[4004038]: 2020-10-09 23:53:50.768140 [NOTICE] Switch back to Apache ...
Oct 09 23:53:50 cpanel.easy-hosting.co.nz lswsctrl[4004038]: [ERROR] Failed to start litespeed!
Oct 09 23:53:50 cpanel.easy-hosting.co.nz lswsctrl[4004038]: Detected cPanel WHM Environment
 
#9
Fri Oct 9 23:54:32 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:54:34 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
Fri Oct 9 23:54:52 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:54:55 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
check port 7080 after kill all litespeed processes
Fri Oct 9 23:55:14 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:55:14 NZDT 2020
status, LSWS running: 0
Fri Oct 9 23:55:16 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
check port 7080 after kill all litespeed processes
Fri Oct 9 23:55:36 NZDT 2020
status, LSWS running: 0
Fri Oct 9 23:55:36 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:55:39 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
check port 7080 after kill all litespeed processes
Fri Oct 9 23:55:58 NZDT 2020
status, LSWS running: 0
Fri Oct 9 23:55:59 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:56:01 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
check port 7080 after kill all litespeed processes
Fri Oct 9 23:56:21 NZDT 2020
status, LSWS running: 0
Fri Oct 9 23:56:21 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:56:24 NZDT 2020
status, LSWS running: 0
LSWS does not restart properly, check port 7080
check port 7080 after kill all litespeed processes
Fri Oct 9 23:56:43 NZDT 2020
status, LSWS running: 0
Fri Oct 9 23:56:43 NZDT 2020
start, LSWS running: 0
Fri Oct 9 23:56:46 NZDT 2020
status, LSWS running: 0
 
#10
Actually lite speed cache plugin either have bug or intentionally it's misconfig the apache server so user must have to purchase licence after its expire.

- Rebuild the whole apache server did the job and we need to again link all rules and domain etc.
I have to concede that it does appear to be an Apache configuration or module corruption, or at least it's the end result of something else happening.

Run the below command from the link below:
yum reinstall $(rpm -qa --qf "%{NAME}\n"|grep ^ea-|while read pkg;do echo -n "$pkg ";done)

https://support.cpanel.net/hc/en-us/articles/360056088993-How-to-reinstall-all-EasyApache-packages

This will reinstall EasyApache, including all the modules.

And finally the sites are loading again!
 
Top