Hi,
I uninstalled Litespeed just recently and have this error upon restarting Apache:
Apache still appears to start, just with the following file instead:
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.
Any advice is appreciated.
Cheers.
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
Code:
/usr/local/apache/bin/httpd_ls_bak
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
Cheers.