LiteSpeed compatibility issue with cPanel > cPanel blocking LiteSpeed

Discussion in 'Install/Configuration' started by vivek, Mar 2, 2008.

  1. mistwang

    mistwang LiteSpeed Staff

    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.
  2. vivek

    vivek New Member

    Thank you very much for fixing the package on my server. :)

    Regards
    Vivek
  3. Mani

    Mani New Member

    mistwang

    can you kindly add it to auto updates so can run it on all the servers the easy way.
  4. vivek

    vivek New Member

    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
  5. vivek

    vivek New Member

    Hey

    Looks like a cron is always looking into httpd executable file . Is it ?

    mistwang ?
  6. mistwang

    mistwang LiteSpeed Staff

    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.
  7. aww

    aww New Member

    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?

  8. mistwang

    mistwang LiteSpeed Staff

    There is always a lshttpd running as "root". That's normal.
  9. vivek

    vivek New Member

    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
  10. ffeingol

    ffeingol New Member

    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
  11. aww

    aww New Member

    With the newest 3.3.8 pre-release my server stayed running overnight.
  12. mistwang

    mistwang LiteSpeed Staff

    Thanks for the update. the official release is coming.
  13. mistwang

    mistwang LiteSpeed Staff

    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.
  14. vivek

    vivek New Member


    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
  15. mistwang

    mistwang LiteSpeed Staff

    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.
  16. vivek

    vivek New Member

    Oh I see. Can you tell me which linux dist is not supporting it ?
    Just want to know, thats only

    Thanks
  17. vivek

    vivek New Member

    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
  18. travisbell

    travisbell New Member

    Quick question,

    When are you guys planning on rolling this out via the auto-update?
  19. aww

    aww New Member


    I'm not experiencing any load issues with 3.3.8


    Looks like they just did.
  20. mistwang

    mistwang LiteSpeed Staff

    I am not sure if debian has it or not.

Share This Page