LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > LiteSpeed compatibility issue with cPanel > cPanel blocking LiteSpeed

Reply
 
Thread Tools Display Modes
  #11  
Old 03-03-2008, 11:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
That script won't kill lshttpd, so it is something else.
Reply With Quote
  #12  
Old 03-04-2008, 09:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
I create a simple proof of concept shell script, acting as Apache to LSWS wrapper, which replaces Apache executable. If some one help us test and prove that it works, we will add code to automate everything.

It will be the ultimate solution for all hosting control panels.
Reply With Quote
  #13  
Old 03-04-2008, 09:21 PM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by mistwang View Post
I create a simple proof of concept shell script, acting as Apache to LSWS wrapper, which replaces Apache executable. If some one help us test and prove that it works, we will add code to automate everything.

It will be the ultimate solution for all hosting control panels.
Hello

Please contact me via yahoo,gmail,msn chat, I will help you to test the script

getvivekv at gmail.com
getvivekv at yahoo.com
getvivekv at msn.com

Vivek

Last edited by vivek; 03-05-2008 at 12:01 AM..
Reply With Quote
  #14  
Old 03-05-2008, 01:07 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Hi

Or , I can setup a VPS for testing purpose, and can install cPanel with 14 days trial license. You can check the script on it.

Thank you
Vivek
Reply With Quote
  #15  
Old 03-07-2008, 01:56 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
For the record, RELEASE is affected the same way.
I'm on RELEASE and it's acting the same way for the past two days.

Only build I don't know if it will help is STABLE.

Before I take that drastic step to rollback I'd love some confirmation will it provide a temporary workaround...
Reply With Quote
  #16  
Old 03-07-2008, 08:05 AM
travisbell travisbell is offline
Senior Member
 
Join Date: Jan 2007
Location: Calgary, Canada
Posts: 51
FYI -- We too are experiencing this issue.

Has there been any progress in figuring out what with the latest versions of cPanel are causing this?
__________________
Travis Bell
Meticulo
Reply With Quote
  #17  
Old 03-07-2008, 08:07 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by travisbell View Post
FYI -- We too are experiencing this issue.

Has there been any progress in figuring out what with the latest versions of cPanel are causing this?
Yea. Mr.George (mistwang) is with me right now and testing a script on my server.

I hope he will find a fix soon.

Vivek
Reply With Quote
  #18  
Old 03-07-2008, 08:13 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
I think I will install this script with a 1 minute check:
http://litespeedtech.com/support/for...=9185#post9185
It's a good idea even when this problem is fixed.

But what happens if litespeed is taken down manually on purpose
(ie. upgrades) will the script force it back up anyway when it shouldn't be?
Reply With Quote
  #19  
Old 03-07-2008, 10:16 AM
vivek vivek is offline
Senior Member
 
Join Date: Jan 2008
Posts: 275
Quote:
Originally Posted by aww View Post
I think I will install this script with a 1 minute check:
http://litespeedtech.com/support/for...=9185#post9185
It's a good idea even when this problem is fixed.

But what happens if litespeed is taken down manually on purpose
(ie. upgrades) will the script force it back up anyway when it shouldn't be?
That is not a good one.
Just downgrade your cPanel to STABLE build. and also disable upcp via WHM

Vivek
Reply With Quote
  #20  
Old 03-07-2008, 04:01 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
Here is the cure for this problem. Now, you need to manually apply it, we are working on an automated solution.

Use the following shell script to replace Apache httpd executable, backup Apache httpd executable to httpd_ls_bak
Code:
#!/bin/sh

ARGS="$@"
ARG1="$1"

LSWS_HOME=/opt/lsws

APACHE=/usr/local/apache/bin/httpd_ls_bak


LSWS=$LSWS_HOME/bin/lswsctrl
PARAM_LOG=$LSWS_HOME/logs/ap_cmd_param.log

echo "$@" >> $PARAM_LOG

ulimit -v unlimited

if [ "x$ARG1" = 'x-DSSL' ]; then
   shift
   ARG1=$1
fi

if [ "x$ARG1" = 'x' ]; then
    $LSWS start
    
elif [ "x$ARG1" = 'x-k' ]; then
    ARG2=$2
    case $ARG2 in
    start|startssl|sslstart|start-SSL)
    $LSWS start
    ;;
    stop|graceful-stop)
    $LSWS stop
    ;;
    restart|graceful)
    $LSWS restart
    ;;
    *)
    $APACHE $ARGS
    esac
else
    $APACHE $ARGS
fi

ERROR=$?
exit $ERROR
You need to make sure LSWS_HOME and APACHE matches your installation, roughly the follow steps are required

Code:
cd /usr/local/apache/bin
mv httpd httpd_ls_bak
vi httpd
<copy/edit the script>
chmod 0755 httpd

ATTENTION: You need to manually download and update to the latest 3.3.7 release package


No longer need to enable "Auto Reload On Changes" to apply Apache configuration changes anymore. The control panel will restart LSWS through the wrapper script after finishing updating Apache configuration files.

I knew that WHM may overwrite the script when you rebuild Apache, you need to be careful about this. We are working on a solution to automatically install the script and monitor it, if control panel change it, it will be changed back immediately. It is going to be in 3.3.8 release, maybe this weekend.

Thanks for Vivek's help with testing the solution.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:04 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.