Skip to content

Instantly share code, notes, and snippets.

@impeto
Created February 16, 2016 16:51
Show Gist options
  • Save impeto/b89168907288208afeb2 to your computer and use it in GitHub Desktop.
Save impeto/b89168907288208afeb2 to your computer and use it in GitHub Desktop.
//download ioncube
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
//blow it up
tar xvfz ioncube_loaders_lin_x86-64.tar.gz
//find the php extension dir
php -i | grep extension_dir
//put php version in a variable
PHP_VERSION=$(php -r "echo PHP_MAJOR_VERSION.'.'.PHP_MINOR_VERSION;")
//use that variable to get the right .so file
sudo cp "ioncube/ioncube_loader_lin_${PHP_VERSION}.so" /path/to/extension/dir/
//restart things
service apache2 restart
service php5-fpm restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment