| 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
checkTagExist php.success
phpVersion=$(php -v | head -n 1 | cut -d " " -f 2 | cut -f1-2 -d".")
checkPackageInstalled php$phpVersion-cli
rootDir=$(rootDir)
echo "install wp cli for wordpress" | log
cd $rootDir/temp
curlDownload https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
waitOrStop 0 "CLI binary not downloaded from github"
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp
echo "check binary existence of wp cli" | log
if [ ! -f "/usr/local/bin/wp" ]; then
echo "Failed installing wp-cli" | log 1
exit 1
fi
tag wp-cli.success
tagScript success
exit 0