[solved] Litespeed webserver stops working while cleancache script is runnning

We have a number of server with litespeed running and most of them is having issues with the cleancache script running. While running these we are not even able to do any thing on litespeed admin, not able to switch to Apache nor even able to get the sites working while running these scripts.

It's interesting to note that litespeed is having issues with cleancache script. I haven't tried myself but going to give it a try and see how I can help you. I'm not an expert however I will try my best. Good luck and let me know if you're able to solve the problem.

if we move this to home folder, will that be albe to get deletted if needed ? Also Where to get this done ? from litespeed admin panel ?

Click to expand...

Yes, you can point your cache storage path to somewhere under home folder such as /path/to/home/dir/diskcache. you need to manually create the folder first and point that in LSWS admin console (Configuration => Server => Cache)

You need to leave swap directory in /tmp/lshttpd unchanged and ONLY change diskcache directory to a different place (e.g. /home/diskcache). The cleancache script should only purge files under cache directory NOT others (i.e. swap, etc). Your problem is cleancache script removes files under swap as you mixed cache and swap together causing lsws inaccessible.

The litespeed was froze again when the clean cache script was running. We could neither kill or restart the webserver. If you could let us know your mail id I could provide you the server details to check further.