How to stop/start Litespeed ?

#1
Hello,
sorry for my basic question.

i did install cpanel + cloudlinux + litespeed.

i swiched to litespeed now.

but i cn not stop webserver ( litespeed )

i did try these commands :

service lsws stop
service lshttpd stop

...

how i can stop litespeed fully ?
 

Unique_Eric

Administrator
Staff member
#2
Your command should works.
Code:
service lsws stop
How about this one
Code:
/usr/local/lsws/bin/lswsctrl stop
Please share the output from above commands.
 
#3
Your command should works.
Code:
service lsws stop
How about this one
Code:
/usr/local/lsws/bin/lswsctrl stop
Please share the output from above commands.
Thank you,

output :

touch: cannot touch ‘/etc/disablecsp/litespeed’: No such file or directory
touch: cannot touch ‘/etc/disablecsp/litespeed’: No such file or directory
[OK] litespeed: stopped.

but i see again lsphp process and websites are running.
 

Pong

Administrator
Staff member
#6
cpanel may have monitor system to check web server, if web server down, cpanel will try to restart it.

LiteSpeed has wswatch.sh script to do so as well. https://www.litespeedtech.com/suppo...ed_wiki:cpanel:litespeed_watch_killedbycpanel

You will need to fully remove both to fully stop a web server, otherwise, it will come back automatically.

/usr/local/lsws/admin/misc/cp_switch_ws.sh apache

switch to apache script will stop wswatch.sh as well.

then when Apache running, if you can fully stop apache, then it means you have removed the cpanel autodetect as well.
https://www.litespeedtech.com/suppo...nstaller#enable_web_server_service_monitoring
 
Top