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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Errors after uninstallation

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2012, 10:43 AM
fRAiLtY- fRAiLtY- is offline
New Member
 
Join Date: Jun 2012
Posts: 1
Default Errors after uninstallation

Hi,

I uninstalled Litespeed just recently and have this error upon restarting Apache:

Code:
/usr/local/apache/bin/httpd: line 52: /usr/local/lsws/bin/lswsctrl: No such file or directory
Apache still appears to start, just with the following file instead:

Code:
/usr/local/apache/bin/httpd_ls_bak
Which I didn't create. Consequently this _bak file is 2647 lines long and full of gobbledegook, but works..

As such Apache isn't controllable by "service httpd xxxx" like before, and I want it to be. I have attached the httpd file below which I believe has been modified by Litespeed, I just want it back to normal.

Code:
#!/bin/sh

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

LSWS_HOME=/usr/local/lsws
APACHE_BIN=/usr/local/apache/bin/httpd

CTRL_APACHE=1

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


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

echo "`date`: $@" >> $PARAM_LOG

ulimit -v unlimited

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

if [ "x$ARG1" = 'x' ]; then
    $LSWS restart

elif [ "x$ARG1" = 'x-k' ]; then
    ARG2=$2
    case $ARG2 in
    start|startssl|sslstart|start-SSL)
    $LSWS start
    ERR=$?
    if [ "x$CTRL_APACHE" == "x1" ]; then
ERR=$?
    if [ "x$CTRL_APACHE" == "x1" ]; then
        $APACHE $ARGS
    fi
    exit $ERR
    ;;
    stop|graceful-stop)
    # never stop LSWS here, use "service lsws stop" instead
    # have to stop lsws or make cPanel belive apache is stopped,
    # otherwise cpanel will send signal "9"
    $LSWS stophttpd
    if [ "x$CTRL_APACHE" == "x1" ]; then
        $APACHE $ARGS
    else
        echo ""
    fi
    ;;
    restart|graceful)
    $LSWS restart
    ;;
    *)
    $APACHE $ARGS
    esac
else
    if [ "x$ARG1" = "xuninstall" ]; then
        if [ "x$CTRL_APACHE" == "x0" ]; then
            $LSWS stop
            sleep 1
        fi
        mv $APACHE $APACHE_BIN
        $APACHE_BIN
    elif [ "x$ARG1" = "xinstall" ]; then
        if [ "x$CTRL_APACHE" == "x0" ]; then
            killall `basename $APACHE_BIN`
        fi
            killall `basename $APACHE_BIN`
        fi
        $LSWS start
    else
        $APACHE $ARGS
    fi
fi

ERROR=$?
exit $ERROR
Any advice is appreciated.

Cheers.
Reply With Quote
  #2  
Old 06-01-2012, 12:45 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,389
just do following.

Quote:
mv /usr/local/apache/bin/httpd /usr/local/apache/bin/httpd.nouse
mv /usr/local/apache/bin/httpd_ls_bak /usr/local/apache/bin/httpd
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 02:32 PM.



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