[ERROR] failed to enable lshttpd.service in systemd

root

New Member
#1
Installing openlitespeed 1.6 from source using ./build.sh and ./install.sh on a fresh centos 7 server gives this error:

cp: cannot stat ‘/usr/local/lsws/admin/misc/lshttpd.service’: No such file or directory
chmod: cannot access ‘/usr/lib/systemd/system/lshttpd.service’: No such file or directory
Failed to execute operation: No such file or directory
[ERROR] failed to enable lshttpd.service in systemd!

Server works but has to be started manually after every reboot. I tried 2 or 3 times still same error.
 

David

Active Member
#2
Thank you for your feedback.
So right now, you should can use `/usr/local/lsws/ bin/lswsctrl start` to start the service.
I will fix it soon.
 

root

New Member
#4
Same issue on 1.6.1

cp: cannot stat ‘/usr/local/lsws/admin/misc/lshttpd.service’: No such file or directory
chmod: cannot access ‘/usr/lib/systemd/system/lshttpd.service’: No such file or directory
Failed to execute operation: No such file or directory
[ERROR] failed to enable lshttpd.service in systemd!

Installation finished, Enjoy!

cp: cannot stat ‘modules/*.so’: No such file or directory
cp: cannot stat ‘bin/openlitespeed’: No such file or directory
 

root

New Member
#6
For those with this issue, openlitespeed not starting on reboot, go to the folder where you downloaded openlitespeed/admin/misc and run ./rc-inst.sh
so in my case:

Code:
cd openlitespeed/admin/misc
./rc-inst.sh
It will fix the reboot issue.
 
Top