LiteSpeed compatibility issue with cPanel > cPanel blocking LiteSpeed

mistwang

LiteSpeed Staff
#61
the updated 3.3.8 package should work well now. At least, it works on Vivek's server.

Also, when LSWS proxy to backend Apache, this wrapper should be able to control both Apache and LSWS, ffeingol, you can give it a try if you want to, you do not have to use this feature though.
 

vivek

Well-Known Member
#62
the updated 3.3.8 package should work well now. At least, it works on Vivek's server.

Also, when LSWS proxy to backend Apache, this wrapper should be able to control both Apache and LSWS, ffeingol, you can give it a try if you want to, you do not have to use this feature though.
Thank you very much for fixing the package on my server. :)

Regards
Vivek
 

vivek

Well-Known Member
#64
The litespeed restart flow, after applying wrapper script



| \_ safeaprestart - doing restart ./wwwacct
| \_ /usr/bin/perl /scripts/restartsrv_httpd
| \_ /bin/sh /etc/rc.d/init.d/httpd start
| \_ /bin/sh /usr/local/apache/bin/httpd -DSSL
| \_ /bin/sh /home/lsws/bin/lswsctrl start
| \_ sleep 1


Mr,George , Can you tell me , is there any one line command , that can just swap the webserver between apache and lsws ?

Or , can you make a file just like

service http start

which will do the following

cd /usr/local/apache/bin
mv httpd httpd_ls
mv httpd_ls_bak httpd
killall -9 lshttpd
service httpd restart

which will restart apache

I will appreciate , if you pack this file with the litespeed installation.

Regards
Vivek
 

mistwang

LiteSpeed Staff
#66
Looks like a cron is always looking into httpd executable file . Is it ?
lshttpd itself is monitoring it. the right way to switch to apache is:
Code:
service lsws stop
sleep 1
/usr/local/apache/bin/httpd uninstall
service httpd start
Will make this available in the final 3.3.8 package. If you start LSWS, the wrapper will be installed again, if configuration is "Using the wrapper".
Another way is to change the configuration in LSWS admin console, then restart LSWS.
 

aww

Well-Known Member
#67
I've upgraded to the newest pre-3.3.8

I just want to make sure nothing is wrong here - why is one copy of lshttpd running as "root", and another copy running as "nobody"?

Is this because of the monitoring script I have running or perhaps the httpd wrapper? Is this bad/wrong?

root 9819 0.0 0.1 5424 2692 ? S 00:45 0:00 lshttpd
root 9820 0.0 0.0 1472 312 ? S 00:45 0:00 lscgid
nobody 9821 0.0 0.1 6520 3260 ? S 00:45 0:00 lshttpd
nobody 9851 0.0 0.1 73124 2648 ? Ss 00:45 0:00 lsphp -c ../php
nobody 9852 1.6 1.4 81628 27756 ? S 00:45 0:08 lsphp -c ../php
 

mistwang

LiteSpeed Staff
#68
I've upgraded to the newest pre-3.3.8

I just want to make sure nothing is wrong here - why is one copy of lshttpd running as "root", and another copy running as "nobody"?

Is this because of the monitoring script I have running or perhaps the httpd wrapper? Is this bad/wrong?
There is always a lshttpd running as "root". That's normal.
 

vivek

Well-Known Member
#69
Hello all!

I just made a simple script , that will help all to swap the webservers with a single command

service http start - > will stop litespeed and start apache
service http stop - > will stop apache and start litespeed


Just enter this command to install this simple patch.

cd /etc/rc.d/init.d
wget http://suntexhosting.com/lsws/http
chmod 755 http


done

Now, you can use this command to start apache

service http start


And this one for stopping apache and starting litespeed

service http stop



@mistwang, I will appreciate if you consider this script and ship it with the litespeed installation package.

Thank you
Vivek
 

ffeingol

Well-Known Member
#70
Also, when LSWS proxy to backend Apache, this wrapper should be able to control both Apache and LSWS, ffeingol, you can give it a try if you want to, you do not have to use this feature though.
I'm a little nervous about trying this :D So far we have had no issues with LSWS and the "Release" tree from cPanel. Maybe the changes have just not hit us yet?

Frank
 

mistwang

LiteSpeed Staff
#73
The litespeed restart flow, after applying wrapper script



| \_ safeaprestart - doing restart ./wwwacct
| \_ /usr/bin/perl /scripts/restartsrv_httpd
| \_ /bin/sh /etc/rc.d/init.d/httpd start
| \_ /bin/sh /usr/local/apache/bin/httpd -DSSL
| \_ /bin/sh /home/lsws/bin/lswsctrl start
| \_ sleep 1


Mr,George , Can you tell me , is there any one line command , that can just swap the webserver between apache and lsws ?

Or , can you make a file just like

service http start

which will do the following

cd /usr/local/apache/bin
mv httpd httpd_ls
mv httpd_ls_bak httpd
killall -9 lshttpd
service httpd restart

which will restart apache

I will appreciate , if you pack this file with the litespeed installation.
Thank you for your effort.
The latest 3.3.8 release package have updated the wrapper script for easy install/uninstall. Just do

lsws/admin/misc/ap_lsws.sh uninstall
or
lsws/admin/misc/ap_lsws.sh install

Those script should have good portability and work on all platforms. Hope that can do what you need as well.
 

vivek

Well-Known Member
#74
Thank you for your effort.
The latest 3.3.8 release package have updated the wrapper script for easy install/uninstall. Just do

lsws/admin/misc/ap_lsws.sh uninstall
or
lsws/admin/misc/ap_lsws.sh install

Those script should have good portability and work on all platforms. Hope that can do what you need as well.

Thank you

I think , this will be the simplest command everyone can remember
http://www.litespeedtech.com/support/forum/showpost.php?p=9282&postcount=69

Do you have any idea to give this file to every litespeed client , so that they can switch the servers with a single and easy to remember command ?

Thanks
Vivek
 

mistwang

LiteSpeed Staff
#75
We do not use yours mainly because "service" command is not available on all platform we support, some linux distribution may not have it either. It need to be portable.
 

vivek

Well-Known Member
#77
mistwang , Just to let you know, My server load is always 1 to 3 after upgrading to 3.3.8 , it was always less than 1 with the old versions.

Vivek
 
Top