asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T mnt/install.sh000075500000027704151027224140007357 0ustar00#!/bin/bash clear if [ "$*" == '--nohttps' ]; then FILEREPO=http://files.softaculous.com else FILEREPO=https://files.softaculous.com fi #---------------------------------- # Detecting the Architecture #---------------------------------- if ([ `uname -i` == x86_64 ] || [ `uname -m` == x86_64 ]); then ARCH=64 else ARCH=32 fi # To fix the ca-certificates lets encrypt issue if [ -f /etc/redhat-release ] ; then yum -y update ca-certificates fi echo "-----------------------------------------------" echo " Welcome to Softaculous Apps Installer" echo "-----------------------------------------------" echo " " #---------------------------- # Download the PHP Installer #---------------------------- if [ -d /usr/local/cpanel/whostmgr ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/local/cpanel/3rdparty/bin/php install.inc $@ elif [ -d /usr/local/directadmin ] ; then mkdir /usr/local/directadmin/plugins >> /dev/null 2>&1 wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 if [[ -f "/usr/local/php83/bin/php" ]] && [[ $(/usr/local/php83/bin/php -v | grep -i ionCube) ]]; then /usr/local/php83/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php82/bin/php" ]] && [[ $(/usr/local/php82/bin/php -v | grep -i ionCube) ]]; then /usr/local/php82/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php81/bin/php" ]] && [[ $(/usr/local/php81/bin/php -v | grep -i ionCube) ]]; then /usr/local/php81/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php74/bin/php" ]] && [[ $(/usr/local/php74/bin/php -v | grep -i ionCube) ]]; then /usr/local/php74/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php73/bin/php" ]] && [[ $(/usr/local/php73/bin/php -v | grep -i ionCube) ]]; then /usr/local/php73/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php72/bin/php" ]] && [[ $(/usr/local/php72/bin/php -v | grep -i ionCube) ]]; then /usr/local/php72/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php71/bin/php" ]] && [[ $(/usr/local/php71/bin/php -v | grep -i ionCube) ]]; then /usr/local/php71/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php70/bin/php" ]] && [[ $(/usr/local/php70/bin/php -v | grep -i ionCube) ]]; then /usr/local/php70/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php56/bin/php" ]] && [[ $(/usr/local/php56/bin/php -v | grep -i ionCube) ]]; then /usr/local/php56/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php55/bin/php" ]] && [[ $(/usr/local/php55/bin/php -v | grep -i ionCube) ]]; then /usr/local/php55/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/usr/local/php54/bin/php" ]] && [[ $(/usr/local/php54/bin/php -v | grep -i ionCube) ]]; then /usr/local/php54/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [ -f "/usr/local/bin/php" ] ; then /usr/local/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [ -f "/usr/bin/php" ] ; then /usr/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ fi elif [ -d /usr/local/psa ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 if [[ -f "/opt/plesk/php/8.3/bin/php" ]] && [[ $(/opt/plesk/php/8.3/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/8.3/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/8.2/bin/php" ]] && [[ $(/opt/plesk/php/8.2/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/8.2/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/8.1/bin/php" ]] && [[ $(/opt/plesk/php/8.1/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/8.1/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/7.4/bin/php" ]] && [[ $(/opt/plesk/php/7.4/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/7.4/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/7.3/bin/php" ]] && [[ $(/opt/plesk/php/7.3/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/7.3/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/7.2/bin/php" ]] && [[ $(/opt/plesk/php/7.2/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/7.2/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/7.1/bin/php" ]] && [[ $(/opt/plesk/php/7.1/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/7.1/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/7.0/bin/php" ]] && [[ $(/opt/plesk/php/7.0/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/7.0/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/5.6/bin/php" ]] && [[ $(/opt/plesk/php/5.6/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/5.6/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/5.5/bin/php" ]] && [[ $(/opt/plesk/php/5.5/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/5.5/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [[ -f "/opt/plesk/php/5.4/bin/php" ]] && [[ $(/opt/plesk/php/5.4/bin/php -v | grep -i ionCube) ]]; then /opt/plesk/php/5.4/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ elif [ -f "/usr/bin/php" ] ; then /usr/bin/php -d open_basedir="" -d safe_mode=0 -d disable_functions="" install.inc $@ fi elif [ -d /hsphere ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /hsphere/shared/php5/bin/php-cli -d open_basedir="" -d safe_mode=0 install.inc $@ elif [ -d /home/interworx ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /home/interworx/bin/php install.inc $@ elif [ -d /usr/local/mgr5 ]; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 if [[ -f "/opt/php82/bin/php" ]] && [[ $(/opt/php82/bin/php -v | grep -i ionCube) ]]; then /opt/php82/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php81/bin/php" ]] && [[ $(/opt/php81/bin/php -v | grep -i ionCube) ]]; then /opt/php81/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php74/bin/php" ]] && [[ $(/opt/php74/bin/php -v | grep -i ionCube) ]]; then /opt/php74/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php73/bin/php" ]] && [[ $(/opt/php73/bin/php -v | grep -i ionCube) ]]; then /opt/php73/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php72/bin/php" ]] && [[ $(/opt/php72/bin/php -v | grep -i ionCube) ]]; then /opt/php72/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php71/bin/php" ]] && [[ $(/opt/php71/bin/php -v | grep -i ionCube) ]]; then /opt/php71/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php70/bin/php" ]] && [[ $(/opt/php70/bin/php -v | grep -i ionCube) ]]; then /opt/php70/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php56/bin/php" ]] && [[ $(/opt/php56/bin/php -v | grep -i ionCube) ]]; then /opt/php56/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php55/bin/php" ]] && [[ $(/opt/php55/bin/php -v | grep -i ionCube) ]]; then /opt/php55/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [[ -f "/opt/php54/bin/php" ]] && [[ $(/opt/php54/bin/php -v | grep -i ionCube) ]]; then /opt/php54/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ elif [ -f "/usr/bin/php" ] ; then /usr/bin/php -d disable_functions="" -d auto_prepend_file=none -d auto_append_file=none install.inc $@ fi elif [ -d /usr/local/ispmgr ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/bin/php -d open_basedir="" -d safe_mode=0 install.inc $@ elif [ -d /usr/local/ispconfig ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/bin/php -d open_basedir="" -d safe_mode=0 install.inc $@ elif [ -d /usr/local/cwp ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/local/cwp/php/bin/php -d open_basedir="" -d safe_mode=0 install.inc $@ elif [ -d /usr/local/webuzo ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/local/emps/bin/php -d open_basedir="" -d safe_mode=0 install.inc $@ elif [ -d /usr/local/vesta ] ; then wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/local/vesta/php/bin/php -d open_basedir="" -d safe_mode=0 install.inc $@ fi phpret=$? # Was there an error if [ $phpret != "0" ]; then exit $phpret; fi for opt in "$@" do case $opt in "--remote") LOG=/var/log/softaculous_remote.log # Stop all the services of EMPS if they were there. /usr/local/emps/bin/mysqlctl stop >> $LOG 2>&1 /usr/local/emps/bin/nginxctl stop >> $LOG 2>&1 /usr/local/emps/bin/fpmctl stop >> $LOG 2>&1 # Remove the EMPS package rm -rf /usr/local/emps/ >> $LOG 2>&1 # The necessary folders mkdir /usr/local/emps >> $LOG 2>&1 mkdir /usr/local/softaculous >> $LOG 2>&1 echo "Installing EMPS..." >> $LOG 2>&1 wget -N -O /usr/local/softaculous/EMPS.tar.gz "$FILEREPO/emps.php?latest=1&arch=$ARCH" >> $LOG 2>&1 # Extract EMPS tar -xvzf /usr/local/softaculous/EMPS.tar.gz -C /usr/local/emps >> $LOG 2>&1 rm -rf /usr/local/softaculous/EMPS.tar.gz >> $LOG 2>&1 wget -O install.inc $FILEREPO/install.inc >> /dev/null 2>&1 /usr/local/emps/bin/php -d open_basedir="" -d zend_extension=/usr/local/emps/lib/php/ioncube_loader_lin_5.3.so install.inc $* ;; "--enterprise") NOEMPS=0 if [ -n "$2" ] && [ $2 == '--noemps' ] ; then NOEMPS=1 fi LOG=/var/log/softaculous_enterprise.log # Stop all the services of EMPS if they were there. /usr/local/emps/bin/mysqlctl stop >> $LOG 2>&1 /usr/local/emps/bin/nginxctl stop >> $LOG 2>&1 /usr/local/emps/bin/fpmctl stop >> $LOG 2>&1 # Remove the EMPS package rm -rf /usr/local/emps/ >> $LOG 2>&1 # Softaculous Directory mkdir /usr/local/softaculous >> $LOG 2>&1 # Install EMPS if [ $NOEMPS != '1' ] ; then # EMPS Directory mkdir /usr/local/emps >> $LOG 2>&1 echo "Installing EMPS..." wget -N -O /usr/local/softaculous/EMPS.tar.gz "$FILEREPO/emps.php?latest=1&arch=$ARCH" >> $LOG 2>&1 # Extract EMPS tar -xvzf /usr/local/softaculous/EMPS.tar.gz -C /usr/local/emps >> $LOG 2>&1 rm -rf /usr/local/softaculous/EMPS.tar.gz >> $LOG 2>&1 PHPBIN=/usr/local/emps/bin/php OPT_IONCUBE="-d zend_extension=/usr/local/emps/lib/php/ioncube_loader_lin_5.3.so" else PHPBIN=php OPT_IONCUBE="" PHP_VER=`$PHPBIN -n -r "echo PHP_VERSION;"` if [ $? != 0 ]; then echo "PHP Version : Not Found" exit 1; else echo "PHP Version : $PHP_VER" fi php -m | grep ionCube > /dev/null 2>&1 if [ $? != 0 ]; then echo "ionCube Loader : Not Found" exit 1; else echo "ionCube Loader : OK" fi fi wget -O install.inc $FILEREPO/install.inc >> $LOG 2>&1 $PHPBIN -d open_basedir="" $OPT_IONCUBE install.inc $* if [ $? != 0 ] ; then echo "Setup was not successful" fi ;; esac done mnt/csf/install.sh000075500000002062151030546470010127 0ustar00#!/bin/sh ############################################################################### # Copyright 2006-2018, Way to the Web Limited # URL: http://www.configserver.com # Email: sales@waytotheweb.com ############################################################################### echo echo "Selecting installer..." echo if [ -e "/usr/local/cpanel/version" ]; then echo "Running csf cPanel installer" echo sh install.cpanel.sh elif [ -e "/usr/local/directadmin/directadmin" ]; then echo "Running csf DirectAdmin installer" echo sh install.directadmin.sh elif [ -e "/usr/local/interworx" ]; then echo "Running csf InterWorx installer" echo sh install.interworx.sh elif [ -e "/usr/local/cwpsrv" ]; then echo "Running csf CentOS Web Panel installer" echo sh install.cwp.sh elif [ -e "/usr/local/vesta" ]; then echo "Running csf VestaCP installer" echo sh install.vesta.sh elif [ -e "/usr/local/CyberCP" ]; then echo "Running csf CyberPanel installer" echo sh install.cyberpanel.sh else echo "Running csf generic installer" echo sh install.generic.sh fi usr/src/lsws/lsws-6.3.3/install.sh000075500000035014151031321400012567 0ustar00#!/bin/sh cd `dirname "$0"` . ./functions.sh if [ $? != 0 ]; then echo [ERROR] Can not include 'functions.sh'. exit 1 fi test_license() { COPY_LICENSE_KEY=1 if [ -f "$LSWS_HOME/conf/serial.no" ]; then if [ ! -f "$LSINSTALL_DIR/serial.no" ]; then cp "$LSWS_HOME/conf/serial.no" "$LSINSTALL_DIR/serial.no" else diff "$LSWS_HOME/conf/serial.no" "$LSINSTALL_DIR/serial.no" 1>/dev/null if [ $? -ne 0 ]; then COPY_LICENSE_KEY=0 fi fi fi # if [ $COPY_LICENSE_KEY -eq 1 ]; then # if [ -f "$LSWS_HOME/conf/license.key" ] && [ ! -f "$LSINSTALL_DIR/license.key" ]; then # cp "$LSWS_HOME/conf/license.key" "$LSINSTALL_DIR/license.key" # fi # if [ -f "$LSWS_HOME/conf/license.key" ] && [ -f "$LSINSTALL_DIR/license.key" ]; then # diff "$LSWS_HOME/conf/license.key" "$LSINSTALL_DIR/license.key" # if [ $? -ne 0 ]; then # cp "$LSWS_HOME/conf/license.key" "$LSINSTALL_DIR/license.key" # fi # fi # fi if [ -f "$LSINSTALL_DIR/license.key" ] && [ -f "$LSINSTALL_DIR/serial.no" ]; then echo "License key and serial number are available, testing..." echo bin/lshttpd -V if [ $? -eq 0 ]; then LICENSE_OK=1 if [ -f "$LSINSTALL_DIR/conf/license.key" ]; then mv "$LSINSTALL_DIR/conf/license.key" "$LSINSTALL_DIR/license.key" bin/lshttpd -t fi fi echo fi if [ "x$LICENSE_OK" = "x" ]; then if [ -f "$LSINSTALL_DIR/serial.no" ]; then # echo "Serial number is available." # printf "Would you like to register a license key for this server? [Y/n]" # read TMP_YN # echo "" # if [ "x$TMP_YN" = "x" ] || [ `expr "$TMP_YN" : '[Yy]'` -gt 0 ]; then echo "Contacting licensing server ..." echo "" $LSINSTALL_DIR/bin/lshttpd -r if [ $? -eq 0 ]; then echo "[OK] License key received." $LSINSTALL_DIR/bin/lshttpd -t if [ $? -eq 0 ]; then LICENSE_OK=1 else echo "The license key received does not work." fi fi # fi fi fi if [ "x$LICENSE_OK" = "x" ]; then if [ -f "$LSINSTALL_DIR/trial.key" ]; then $LSINSTALL_DIR/bin/lshttpd -t if [ $? -ne 0 ]; then exit 1 fi else cat <" "$LSWS_HOME/conf/httpd_config.xml"` OLD_CHROOT_PATH_CONF=`grep "" "$LSWS_HOME/conf/httpd_config.xml"` OLD_ENABLE_CHROOT=`expr "$OLD_ENABLE_CHROOT_CONF" : '.*\(.*\).*'` OLD_CHROOT_PATH=`expr "$OLD_CHROOT_PATH_CONF" : '[^<]*\([^<]*\).*'` if [ "x$OLD_ENABLE_CHROOT" != "x" ]; then ENABLE_CHROOT=$OLD_ENABLE_CHROOT fi if [ "x$OLD_CHROOT_PATH" != "x" ]; then CHROOT_PATH=$OLD_CHROOT_PATH fi fi CHANGE_CHROOT=0 if [ $INST_USER = "root" ]; then CHANGE_CHROOT=1 if [ $INSTALL_TYPE = "upgrade" ]; then CHANGE_CHROOT=0 if [ $ENABLE_CHROOT -eq 1 ]; then cat < $CHROOT_PATH/etc/passwd grep "$WS_GROUP" /etc/group > $CHROOT_PATH/etc/group fi fi cp $LSWS_HOME/conf/httpd_config.xml $LSWS_HOME/conf/httpd_config.xml.bak chown "$DIR_OWN" $LSWS_HOME/conf/httpd_config.xml.bak RES=`grep '' $LSWS_HOME/conf/httpd_config.xml.bak` if [ $? -eq 1 ]; then sed -e "s##$CHROOT_PATH$ENABLE_CHROOT#" "$LSWS_HOME/conf/httpd_config.xml.bak" > "$LSWS_HOME/conf/httpd_config.xml" else sed -e "s#.*<\/chrootPath>#$CHROOT_PATH<\/chrootPath>#" -e "s/.*<\/enableChroot>/$ENABLE_CHROOT<\/enableChroot>/" "$LSWS_HOME/conf/httpd_config.xml.bak" > "$LSWS_HOME/conf/httpd_config.xml" fi fi } installLicense() { if [ -f ./serial.no ]; then cp -f ./serial.no $LSWS_HOME/conf chown "$SDIR_OWN" $LSWS_HOME/conf/serial.no chmod "$DOC_MOD" $LSWS_HOME/conf/serial.no fi if [ -f ./license.key ]; then cp -f ./license.key $LSWS_HOME/conf chown "$SDIR_OWN" $LSWS_HOME/conf/license.key chmod "$CONF_MOD" $LSWS_HOME/conf/license.key fi if [ -f ./trial.key ]; then cp -f ./trial.key $LSWS_HOME/conf chown "$SDIR_OWN" $LSWS_HOME/conf/trial.key chmod "$DOC_MOD" $LSWS_HOME/conf/trial.key fi } portOffset() { SUCC=0 SEL=0 while [ $SUCC -eq "0" ]; do cat </dev/null` TST_USER=`expr "$USER_INFO" : 'uid=.*(\(.*\)) gid=.*'` if [ "x$TST_USER" = "xapache" ]; then WS_USER=apache WS_GROUP=apache else WS_USER=www-data WS_GROUP=www-data # default PID FILE, source the real one, debian and ubuntu different APACHE_PID_FILE=/var/run/apache2/apache2.pid . /etc/apache2/envvars PANEL_VARY=".debian" fi ADMIN_PORT=7088 elif [ $SEL -eq "4" ]; then HOST_PANEL="hsphere" WS_USER=httpd WS_GROUP=httpd elif [ $SEL -eq "5" ]; then HOST_PANEL="interworx" WS_USER=apache WS_GROUP=apache elif [ $SEL -eq "6" ]; then HOST_PANEL="lxadminh" WS_USER=apache WS_GROUP=apache elif [ $SEL -eq "7" ]; then HOST_PANEL="ispmanager" WS_USER=apache WS_GROUP=apache fi fi DIR_OWN=$WS_USER:$WS_GROUP CONF_OWN=$WS_USER:$WS_GROUP else SUCC=1 fi done } LSINSTALL_DIR=`dirname "$0"` cd $LSINSTALL_DIR init license install_dir test_license admin_login if [ $INSTALL_TYPE = "reinstall" ]; then configAdminEmail if [ $INST_USER = "root" ]; then hostPanels fi if [ "x$HOST_PANEL" = "x" ]; then getUserGroup stopLshttpd getServerPort getAdminPort configRuby enablePHPHandler else hostPanelConfig fi fi if [ "x$HOST_PANEL" = "x" ]; then configChroot fi cat <