Skip to content

Instantly share code, notes, and snippets.

@litzinger
Created December 15, 2014 20:24
Show Gist options
  • Save litzinger/2e54929a4d64751274b0 to your computer and use it in GitHub Desktop.
Save litzinger/2e54929a4d64751274b0 to your computer and use it in GitHub Desktop.
Install IonCube in PuPHPet
echo "Loading ioncube"
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
echo "Unzipping ioncube"
tar xvfz ioncube_loaders_lin_x86-64.tar.gz
echo "Move ioncube to usr/local"
mv ioncube /usr/local
echo "Add ioncube to php.ini"
sudo sed -i 1i"zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so" /etc/php5/fpm/conf.d/zzzz_custom.ini
sudo sed -i 1i"zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so" /etc/php5/cli/conf.d/zzzz_custom.ini
echo "Restarting Apache and FPM"
sudo service apache2 restart
sudo service php5-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment