403Webshell
Server IP : 66.29.132.122  /  Your IP : 3.129.249.247
Web Server : LiteSpeed
System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : admazpex ( 531)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/usr/local/lsws/admin/misc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/proc/thread-self/root/proc/self/root/proc/self/root/proc/self/root/usr/local/lsws/admin/misc/ap_lsws.sh
#!/bin/sh

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

LSWS_HOME=/usr/local/lsws
APACHE_BIN=/usr/sbin/httpd

CTRL_APACHE=0

APACHE=/usr/sbin/httpd_ls_bak


LSWS=$LSWS_HOME/bin/lswsctrl
PARAM_LOG=$LSWS_HOME/logs/ap_cmd_param.log
APACHE_STATE=$LSWS_HOME/admin/cgid/apache_state

ulimit -v unlimited 2>/dev/null

if [ ! -f $LSWS ]; then
    mv $APACHE $APACHE_BIN
    $APACHE_BIN "$@"
    exit $?
fi

echo "`date`: $@" 2>/dev/null >> $PARAM_LOG 

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

if [ "x$ARG1" = 'x' ]; then
    service lsws restart
    if [ "x$CTRL_APACHE" = "x1" ]; then
        $APACHE "$@"
    fi
    
elif [ "x$ARG1" = 'x-k' ]; then
    ARG2=$2
    case $ARG2 in
    start|startssl|sslstart|start-SSL)
    echo "START" > $APACHE_STATE
    service lsws restart
    ERR=$?
    if [ "x$CTRL_APACHE" = "x1" ]; then
        $APACHE "$@"
    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 "$@"
    else
        echo ""
    fi
    ;;
    restart|graceful)
    echo "START" > $APACHE_STATE
    service lsws restart
    if [ "x$CTRL_APACHE" = "x1" ]; then
        $APACHE "$@"
    fi
    ;;
    *)
    $APACHE "$@"
    esac
else
    if [ "x$ARG1" = "xuninstall" ]; then
        if [ "x$CTRL_APACHE" = "x0" ]; then
            service lsws stop
            sleep 1
        fi
        mv $APACHE $APACHE_BIN
        $APACHE_BIN 
    elif [ "x$ARG1" = "xinstall" ]; then
        if [ "x$CTRL_APACHE" = "x0" ]; then
            pkill `basename $APACHE_BIN`
        fi
        echo "START" > $APACHE_STATE
        service lsws start
    else
        $APACHE "$@"
    fi
fi

ERROR=$?
exit $ERROR

Youez - 2016 - github.com/yon3zu
LinuXploit