I need httpd.conf file for litespeed Enterprise

i try a lot of things but no solution at all.

i have 1 domain free starter enterprise edition, (i typed a licence key ) along with cyberpanel.
My webadmin console show 3 Running hosts;

Running APVH_Default
Running APVH_mydomain.com
Running APVH_mydomain.com:443

There some errors and i think they beouse of Default host. In cyberpanel only 1 host exist which is mydomain.com.

So; i think i need a correct httpd.conf file while it says autogenerated and produce somehow default host in it.

What kind of error are your facing? Please provide us with more details to know exactly the cause of your issue.

Check this for locations:

Basically at least 2 errors keeps coming every minute;

ERROR [238728] [T0] [/usr/local/lsws/conf/vhosts/{[somedomain.com](http://somedomain.com/)}/vhost.conf:33] Listener for *default* is not available.

ERROR [238728] [T0] [/usr/local/lsws/conf/vhosts/{[somedomain.com](http://somedomain.com/)}/vhost.conf:33] Listener for *default* is not available.
[[Sun Feb 6 21:39:02 2022] [notice] Finish reading Apache configuration, server configured – resuming normal operations

After that;

i changed setting not to read httpd.conf
i made new virtualhost from menu with the help of template (there was none) and it make a new xml file.
i made 4 listener from menu (there was none)
After restart errors gone, website live again. in the servicemgr screen there is a 1 domain host.

But now still;

Litespeed server keeps restarting EVERY MINUTE

Every restart new error.log file have been created also (8Kbyte)

HERE IS LOG

2022-02-09 15:18:43.261787 [NOTICE] [96123] [T0] Litespeed is ready to serve...
2022-02-09 15:18:43.262362 [NOTICE] [96123] [T0] [AutoRestarter] new child process with pid=96126 is forked!
2022-02-09 15:18:43.263582 [INFO] [96126] [T0] registered RT signal 38
2022-02-09 15:18:43.263630 [INFO] [96126] [T0] [UDP 0.0.0.0:443] initPacketsIn: allocated 100 packets
2022-02-09 15:18:43.263703 [INFO] [96126] [T0] [UDP [::]:443] initPacketsIn: allocated 100 packets
2022-02-09 15:18:43.264154 [NOTICE] [96126] [T0] [Child: 96126] Setup swapping space...
2022-02-09 15:18:43.264212 [NOTICE] [96126] [T0] Successfully change current user to nobody
2022-02-09 15:18:43.264219 [NOTICE] [96126] [T0] Core dump is enabled.
2022-02-09 15:18:43.264627 [INFO] [96126] [T0] [SSL_APK] created offloader with 1 workers.
2022-02-09 15:18:43.264737 [INFO] [96126] [T0] [MODSEC] created offloader with 10 workers.
2022-02-09 15:18:43.264846 [INFO] [96126] [T0] [MODSEC_BODY] created offloader with 50 workers.
2022-02-09 15:18:43.264850 [ALERT] [96126] [T0] LiteSpeed/6.0 Enterprise starts successfully!
2022-02-09 15:18:43.268951 [NOTICE] [96048] [T0] New litespeed process is ready, stops listeners
2022-02-09 15:18:43.269002 [INFO] [96048] [T0] Stop all listeners.
2022-02-09 15:18:43.269016 [INFO] [96048] [T0] Stop listener *:80.
2022-02-09 15:18:43.269024 [INFO] [96048] [T0] Stop listener [::]:80.
2022-02-09 15:18:43.269031 [INFO] [96048] [T0] Stop listener *:443.
2022-02-09 15:18:43.269035 [INFO] [96048] [T0] Stop listener [::]:443.
2022-02-09 15:18:43.269038 [INFO] [96048] [T0] Stop listener *:7080.
2022-02-09 15:18:43.269045 [NOTICE] [96048] [T0] QuicEngine::startCoolDown(), active connections: 0
2022-02-09 15:18:48.171247 [INFO] [96126] [T0] [etfiy6678] add child process pid: 96137, procinfo: 0x23dc420
2022-02-09 15:20:17.971229 [NOTICE] [96123] [T0] [96123] Server Restart Request via Signal...
2022-02-09 15:20:17.973316 [INFO] [96123] [T0] Stop all listeners.
2022-02-09 15:20:17.973381 [INFO] [96123] [T0] Stop listener *:80.
2022-02-09 15:20:17.973416 [INFO] [96123] [T0] Stop listener [::]:80.
2022-02-09 15:20:17.973439 [INFO] [96123] [T0] Stop listener *:443.
2022-02-09 15:20:17.973461 [INFO] [96123] [T0] Stop listener [::]:443.
2022-02-09 15:20:17.973476 [INFO] [96123] [T0] Stop listener *:7080.
2022-02-09 15:20:17.973494 [NOTICE] [96123] [T0] Stop all children workers, nowait=0
2022-02-09 15:20:17.973852 [NOTICE] [96123] [T0] Forked [96194] for graceful restart.
2022-02-09 15:20:17.973891 [NOTICE] [96123] [T0] Start passing listener sockets through forked child [96194].
2022-02-09 15:20:17.973923 [INFO] [96194] [T0] [*:7080] Pass listener, copy fd 15 to 1006.
2022-02-09 15:20:17.973949 [INFO] [96194] [T0] [UDP [::]:443] pass listener, copy fd 14 to 1005.
2022-02-09 15:20:17.973960 [INFO] [96194] [T0] [[::]:443] Pass listener, copy fd 13 to 1004.
2022-02-09 15:20:17.973968 [INFO] [96194] [T0] [UDP *:443] pass listener, copy fd 12 to 1003.
2022-02-09 15:20:17.973974 [INFO] [96194] [T0] [*:443] Pass listener, copy fd 11 to 1002.
2022-02-09 15:20:17.973980 [INFO] [96194] [T0] [[::]:80] Pass listener, copy fd 10 to 1001.
2022-02-09 15:20:17.974007 [INFO] [96194] [T0] [*:80] Pass listener, copy fd 9 to 1000.
2022-02-09 15:20:17.974031 [NOTICE] [96194] [T0] Starting new instance: execute '/usr/local/lsws/bin/litespeed'.
2022-02-09 15:20:17.972139 [NOTICE] [96126] [T0] killed by SIGINT!
2022-02-09 15:20:17.972177 [NOTICE] [96126] [T0] Start shutting down gracefully ...
2022-02-09 15:20:17.972207 [NOTICE] [96126] [T0] Event-loop lingering start.
2022-02-09 15:20:18.383592 [NOTICE] [96123] [T0] [AutoRestarter] cleanup children processes and unix sockets of process with pid=96126 !
2022-02-09 15:20:18.383626 [NOTICE] [96123] [T0] [AutoRestarter] child process with pid=96126 exited with status=0!
2022-02-09 15:20:18.383715 [NOTICE] [96123] [T0] Main server stopped!


HERE IS LSRESTART.LOG

Wed 09 Feb 2022 06:08:55 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:10:31 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:12:06 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:13:42 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:15:17 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:16:52 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:18:28 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:20:03 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:21:39 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:23:14 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:24:50 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:26:25 PM +03
start, LSWS running: 1
Wed 09 Feb 2022 06:28:01 PM +03
start, LSWS running: 1

IN CYBERPANEL FTP LOG

i have changed to litespeed enterprise bu still openlitespeed try to start maybe that is the reason!

Feb  9 18:59:49 srv systemd[1]: Starting OpenLiteSpeed HTTP Server...
Feb  9 18:59:49 srv lswsctrl[104681]: [OK] Send SIGUSR1 to 104642
Feb  9 18:59:52 srv systemd[1]: lshttpd.service: Can't open PID file /run/openlitespeed.pid (yet?) after start: Operation not permitted
Feb  9 19:00:01 srv CRON[104706]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/postfixSenderPolicy/client.py hourlyCleanup >/dev/null 2>&1)
Feb  9 19:00:01 srv CRON[104707]: (root) CMD (/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/findBWUsage.py >/dev/null 2>&1)
Feb  9 19:01:20 srv systemd[1]: lshttpd.service: start operation timed out. Terminating.
Feb  9 19:01:20 srv systemd[1]: lshttpd.service: Failed with result 'timeout'.
Feb  9 19:01:20 srv systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Scheduled restart job, restart counter is at 145.
Feb  9 19:01:25 srv systemd[1]: Stopped OpenLiteSpeed HTTP Server.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Found left-over process 104692 (litespeed) in control group while starting unit. Ignoring.
Feb  9 19:01:25 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Found left-over process 104693 (lscgid) in control group while starting unit. Ignoring.
Feb  9 19:01:25 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Found left-over process 104694 (httpd) in control group while starting unit. Ignoring.
Feb  9 19:01:25 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Found left-over process 104695 (litespeed) in control group while starting unit. Ignoring.
Feb  9 19:01:25 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:01:25 srv systemd[1]: lshttpd.service: Found left-over process 104721 (lsphp) in control group while starting unit. Ignoring.
Feb  9 19:01:25 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:01:25 srv systemd[1]: Starting OpenLiteSpeed HTTP Server...
Feb  9 19:01:25 srv lswsctrl[104736]: [OK] Send SIGUSR1 to 104692
Feb  9 19:01:28 srv systemd[1]: lshttpd.service: Can't open PID file /run/openlitespeed.pid (yet?) after start: Operation not permitted
Feb  9 19:02:55 srv systemd[1]: lshttpd.service: start operation timed out. Terminating.
Feb  9 19:02:55 srv systemd[1]: lshttpd.service: Failed with result 'timeout'.
Feb  9 19:02:55 srv systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Scheduled restart job, restart counter is at 146.
Feb  9 19:03:00 srv systemd[1]: Stopped OpenLiteSpeed HTTP Server.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Found left-over process 104746 (litespeed) in control group while starting unit. Ignoring.
Feb  9 19:03:00 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Found left-over process 104747 (lscgid) in control group while starting unit. Ignoring.
Feb  9 19:03:00 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Found left-over process 104748 (httpd) in control group while starting unit. Ignoring.
Feb  9 19:03:00 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Found left-over process 104749 (litespeed) in control group while starting unit. Ignoring.
Feb  9 19:03:00 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:03:00 srv systemd[1]: lshttpd.service: Found left-over process 104758 (lsphp) in control group while starting unit. Ignoring.
Feb  9 19:03:00 srv systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb  9 19:03:00 srv systemd[1]: Starting OpenLiteSpeed HTTP Server...
Feb  9 19:03:00 srv lswsctrl[104852]: [OK] Send SIGUSR1 to 104746
Feb  9 19:03:03 srv systemd[1]: lshttpd.service: Can't open PID file /run/openlitespeed.pid (yet?) after start: Operation not permitted
journalctl -xe
--
-- The unit lshttpd.service has entered the 'failed' state with result 'timeout'.
Feb 09 21:30:51 srv.mydomain.com systemd[1]: Failed to start OpenLiteSpeed HTTP Server.
-- Subject: A start job for unit lshttpd.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit lshttpd.service has finished with a failure.
--
-- The job identifier is 94961 and the job result is failed.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Scheduled restart job, restart counter is at 239.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Automatic restarting of the unit lshttpd.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: Stopped OpenLiteSpeed HTTP Server.
-- Subject: A stop job for unit lshttpd.service has finished
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A stop job for unit lshttpd.service has finished.
--
-- The job identifier is 95036 and the job result is done.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109744 (litespeed) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109745 (lscgid) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109746 (httpd) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109747 (litespeed) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109758 (lsphp) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109787 (lsphp) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109788 (lsphp) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: lshttpd.service: Found left-over process 109790 (lsphp) in control group while starting unit. Ignoring.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: This usually indicates unclean termination of a previous run, or service implementation deficiencies.
Feb 09 21:30:57 srv.mydomain.com systemd[1]: Starting OpenLiteSpeed HTTP Server...
-- Subject: A start job for unit lshttpd.service has begun execution
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit lshttpd.service has begun execution.
--
-- The job identifier is 95036.
Feb 09 21:30:57 srv.mydomain.com lswsctrl[109792]: [OK] Send SIGUSR1 to 109744
Feb 09 21:31:00 srv.mydomain.com systemd[1]: lshttpd.service: Can't open PID file /run/openlitespeed.pid (yet?) after start: Operation not permitted

While asking here for the solution, i keep trying to solve issues, i found that problem maybe it is a bug.

Summary;
System Ubuntu 20.04
1- i installed cyberpanel + ols (1 domain) (Everything was good)
2- i decided to switch to Litespeed Enterprise because 1 domain was enough, so i entered key in panel
3- in webadmin console a lot of errors logging (no listener, default host problems, rules.conf not found etc) i saw all of them configuration issues, plus webserver was restarting every minute
4- i dicided to let litespeed generate own conf file thourough template, there is new xml files also i cancelled old httpd.conf but restarting was going on
5- i used systemctl list-unit-files command and saw openlitespeed active as long as in the logs it seems to want to start still,
6- i entered below command in ssh and restarting of webserver fixed.

systemctl disable openlitespeed

i hope this solution help someone, thanks to good people of this community

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.