need to fix minor problems after server hard reboot

aww

Well-Known Member
#1
Our VPS unfortunately suffered a hard restart this morning.

I did however learn two things that I was wondering how to fix or automate with litespeed.

1. cpanel started apache instead of litespeed, uncertain as to why as we followed the instructions to do
cd /etc/init.d
chkconfig httpd off

weeks ago... is it possible that cpanel 11 upgrade modified that again - or maybe it's running it's own script to force apache to run?

2. litespeed refused to respond until I deleted /tmp/lshttpd/ and restarted it which is a trick I learned awhile back

How can I automated this delete on a server restart (sorry I am a linux command line newbie but learn quickly!)
where do put "rm -rf /tmp/lshttpd/" to automate it on restart ??
 
Last edited:

PSS

Well-Known Member
#2
In Redhat you can put commands to run in

/etc/rc.local

They are run after boot sequence and init scripts are completed. Culprit: if LS is started automatically before /etc/rc.local runs you might have LS errors in log (a guess).
 

mistwang

LiteSpeed Staff
#3
cpanel 11 update probably turned on apache automatically. Also, make sure the "httpd" service is unchecked.

For deleting /tmp/lshttpd, you can modify /etc/init.d/lsws
 
Top