Unit httpd.service not found - OpenLightSpeed

technoredac

Verified User
Joined
Mar 16, 2023
Messages
35
Hi ,

We have small issue

We installed openlightspeed web and since then we always get an error when restarting the server.

Failed to restart httpd.service: Unit httpd.service not found.

I don't know why, but it's not on the active service list.
Is there any documentation to solve this problem?
 
I'd suggest checking your syslogs when you try to do the restart.

This might be at /var/log/messages or /var/log/syslog depending on your distro.
 
Does OpenLiteSpeed start? I always get this message too during upgrades.

Failed to restart httpd.service: Unit httpd.service not found.
Restarting openlitespeed.

I think the correct service is

Created symlink /etc/systemd/system/lshttpd.service -> /etc/systemd/system/litespeed.service

Which does start
 
I just tested myself, I do not get that message. Only the service was started successfully.
 
From what I understand httpd is apache and lsws if for openlitespeed. You should probably disable httpd.service and enable lsws. I don't have openlitespeed so I have not been able to test anything.
 
In /usr/local/directadmin/data/admin/services.status set "apache=OFF" (or "httpd=OFF", dont know what it is for apache, or delete the entry at all), and set "litespeed=ON"
 
Back
Top