| 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/services/ |
Upload File : |
#!/bin/bash
if [ -f "include/startup.sh" ]; then
. include/startup.sh
elif [ -f "../include/startup.sh" ]; then
. ../include/startup.sh
fi
installVersion=$(basename $0 | cut -d "-" -f 2 | cut -d "-" -f 1 )
echo "Adding php${installVersion} repo" | log
installPackage software-properties-common
waitOrStop 0 "Failed apt install: software-properties-common"
add-apt-repository -y ppa:ondrej/php | log
apt update
echo "Installing php${installVersion}" | log
installPackage php$installVersion
waitOrStop 0 "Failed apt install: php$installVersion"
echo "Installing php${installVersion} modules" | log
packages=(php$installVersion-bcmath php$installVersion-bz2 php$installVersion-cli php$installVersion-common php$installVersion-curl php$installVersion-gd php$installVersion-intl php$installVersion-json php$installVersion-mbstring php$installVersion-mysql php$installVersion-mysqlnd php$installVersion-readline php$installVersion-soap php$installVersion-xml php$installVersion-zip php-pear php-php-gettext php-phpseclib php-tcpdf)
installPackage "${packages[@]}"
waitOrStop 0 "Failed apt install: ${packages[@]}"
echo "Disabling non-critical services" | log
systemctl stop apache2.service
systemctl disable apache2.service
echo "Adding descriptions" | log
descriptionAppend "PHP config files location: /etc/php/"
descriptionAppend " "
tag php.success
tagScript success
exit 0