To install ioncube Debian 8, first download the ioncube loader from
http://www.ioncube.com/loaders.php
cd /usr/local/src wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube/
This folder have loader for several PHP versions, find the PHP version you have with command
php -v
By default Debian 8 come with PHP 5.6. The file you need to use for PHP 5.6 is ioncube_loader_lin_5.6.so
You need to copy this file to PHP extension directory. To find this, run
# php -i | grep extension_dir extension_dir => /usr/lib/php5/20131226 => /usr/lib/php5/20131226 #
Lets copy ioncube loader file to extension diretcory
cp /usr/local/src/ioncube/ioncube_loader_lin_5.6.so /usr/lib/php5/20131226
create file
echo "zend_extension=ioncube_loader_lin_5.6.so" > /etc/php5/apache2/conf.d/01-ioncube.ini ln -s /etc/php5/apache2/conf.d/01-ioncube.ini /etc/php5/cli/conf.d/01-ioncube.ini
Restart Apache web server
service apache2 restart
You can verify ioncube module installed with
root@myterrarium-vm:~# php -m | grep ion ionCube Loader Reflection session the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) root@myterrarium-vm:~#
Leave a Reply