Hello CyberPanel Community,
I’m encountering an issue with restarting the LSWS (LiteSpeed Web Server) on my server. Whenever I attempt to restart the service using the command systemctl restart lsws
, I receive the following error message:
Job for lshttpd.service failed because the control process exited with error code.
See “systemctl status lshttpd.service” and “journalctl -xe” for details.
Upon further investigation, I checked the status of the service (systemctl status lshttpd.service
) and found that the control process (lswsctrl
) failed to start LiteSpeed, reporting an error regarding a missing<errorLog>
configuration.
Here’s the output of ls -alt /usr/local/lsws/conf/
:
total 476
-rwxr-x— 1 lsadm nobody 51808 Mar 22 07:50 httpd_config.conf.txt
drwxr-x— 5 lsadm nobody 4096 Mar 22 07:46 .
-r-xr-x— 1 root root 75470 Mar 22 07:46 httpd_config.conf0,v
-rwxr-x— 1 root root 75253 Mar 22 07:46 httpd_config.conf0
-rwxr-x— 1 root root 75253 Mar 22 07:45 httpd_config.conf.backup
drwxr-x— 149 lsadm lsadm 12288 Mar 22 07:23 vhosts
-rwxr-x— 1 lsadm nobody 75253 Mar 22 06:07 httpd_config.conf
-rwxr-x— 1 lsadm nobody 75253 Mar 22 06:07 httpd_config.conf3
drwxr-xr-x 30 root root 4096 Mar 19 09:46 …
drwxr-x— 2 lsadm nobody 4096 Mar 19 09:34 templates
-rwxr-x— 1 lsadm nobody 5123 Mar 19 09:34 mime.properties0
drwxr-x— 2 lsadm nobody 4096 Feb 6 01:54 cert
-rwxr-x— 1 lsadm nobody 5123 Feb 6 01:54 mime.properties
It seems there’s a discrepancy in the ownership of some configuration files. However, I’m not sure if this is the root cause of the issue.
Any assistance or insights on resolving this problem would be greatly appreciated.
Thank you.