Created
February 16, 2016 16:51
-
-
Save impeto/b89168907288208afeb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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