GoonzNetwork
Active Member
1.Create a file named ioncubeinstaller.sh
2.Edit ioncubeinstaller
3.Paste the following into it
4.Save the file
5.Chmod the file to 0755
6.Execute it
7.Delete the installer
Code:
touch ioncubeinstaller.sh
2.Edit ioncubeinstaller
Code:
pico ioncubeinstaller.sh
3.Paste the following into it
Code:
#!/bin/bash
WHO=$(whoami)
if [ ${WHO} == "root" ]
then
echo "Script Initialized ..."
else
echo "You must be logged in as root to install ionCube Loader."
echo "Terminating ..."
exit 0
fi
echo "Changing directory"
cd /usr/local/
echo "Done."
if [ -e ioncube_loaders_lin_x86.tar.gz ]
then
rm -f ioncube_loaders_lin_x86.tar.gz
fi
echo "Downloading files"
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
echo "Done."
echo "Installing files"
tar -zxvf ioncube_loaders_lin_x86.tar.gz
echo "Done."
echo "Changing ownership"
chown -R root.root ioncube
echo "Done."
phpline=`php -v | grep ^PHP | cut -f2 -d " "| awk -F "." '{print "zend_extension=\"/usr/local/ioncube/ioncube_loader_lin_"$1"."$2".so\""}'`
phpinifile=`php -i | grep php.ini | grep ^Configuration | cut -f6 -d" "`
echo "Adding line $phpline to file $phpinifile"
echo "$phpline" >> $phpinifile
rm -f ioncube_loaders_lin_x86.tar.gz
echo "Ioncube installed sucessfully"
4.Save the file
Code:
press ctrl+x then type y then hit enter
5.Chmod the file to 0755
Code:
chmod 755 ioncubeinstaller.sh
6.Execute it
Code:
./ioncubeinstaller.sh
7.Delete the installer
Code:
rm -f ioncubeinstaller.sh