X7ROOT File Manager
Current Path:
/usr/local/lsws/admin/misc
usr
/
local
/
lsws
/
admin
/
misc
/
??
..
??
admpass.sh
(1.17 KB)
??
ap_lsws.sh
(1.82 KB)
??
ap_lsws.sh.in
(1.82 KB)
??
awstats_install.sh
(2.06 KB)
??
build_ap_wrapper.sh
(624 B)
??
chroot.sh
(7.31 KB)
??
cleancache.sh
(1.46 KB)
??
cleanlitemage.sh
(2.4 KB)
??
cp_switch_ws.sh
(22.41 KB)
??
cpanel_restart_httpd.in
(732 B)
??
create_admin_keypair.sh
(336 B)
??
enable_ruby_python_selector.sh
(2.68 KB)
??
fix_cagefs.sh
(766 B)
??
fp_install.sh
(1.65 KB)
??
gdb-bt
(25 B)
??
genjCryptionKeyPair.php
(6.43 KB)
??
gzipStatic.sh
(272 B)
??
htpasswd.php
(103 B)
??
lscmctl
(15.3 KB)
??
lshttpd.service
(660 B)
??
lsup.sh
(5.65 KB)
??
lsup6.sh
(5.65 KB)
??
lsws.rc
(1.78 KB)
??
lsws.rc.gentoo
(441 B)
??
mgr_ver.sh
(1.93 KB)
??
php.ini
(37.11 KB)
??
purge_cache_by_url
(3.23 KB)
??
rc-inst.sh
(6.24 KB)
??
rc-uninst.sh
(4.61 KB)
??
uninstall.sh
(2.9 KB)
??
update.sh
(1.85 KB)
Editing: ap_lsws.sh.in
#!/bin/sh ARGS="$@" ARG1="$1" LSWS_HOME=%LSWS_HOME% APACHE_BIN=%APACHE_BIN% CTRL_APACHE=%CTRL_APACHE% APACHE=%APACHE_BIN%_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
Upload File
Create Folder