Skip to content

Instantly share code, notes, and snippets.

@mageconsult
Forked from Schrank/install-ioncube
Last active May 7, 2018 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mageconsult/f20e162acaba894c079b9fb8d797e57a to your computer and use it in GitHub Desktop.
Save mageconsult/f20e162acaba894c079b9fb8d797e57a to your computer and use it in GitHub Desktop.
Install ioncube in puphpet
# Put this file into puphpet/files/exec-once/install-ioncube so it only executed once
# it loads ioncube, unzips it, move and add it to php.ini
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"
sudo mv ioncube /usr/local
echo "Add ioncube to php.ini"
sudo sed -i 1i"zend_extension=/usr/local/ioncube/ioncube_loader_lin_7.0.so" /etc/php/7.0/fpm/php.ini
echo "Restarting Apache and FPM"
sudo service apache2 restart
sudo service php7.0-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment