How to install ioncube loader in Ubuntu 16.04

Created:

2016-12-23 23:11:21 UTC

Modified:

2017-08-14 11:36:01 UTC

18

Was this article helpful?


Have more questions?

Submit a request

How to install ioncube loader in Ubuntu 16.04

Question

How to install ioncube loader in Ubuntu 16.04 for PHP provided by OS vendor?

Answer

1. Download the necessary archive and unpack it:

  # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip

  # unzip ioncube_loaders_lin_x86-64.zip

 2. Find the extension directory:

  # php -i | grep extension_dir
   extension_dir => /usr/lib/php/20151012 => /usr/lib/php/20151012

 3. Copy the binary to module directory that was found on step 2:

  # cp ioncube/ioncube_loader_lin_7.0.so /usr/lib/php/20151012/
  # echo "zend_extension=ioncube_loader_lin_7.0.so" > /etc/php/7.0/cli/conf.d/00-ioncube-loader.ini
  # echo "zend_extension=ioncube_loader_lin_7.0.so" > /etc/php/7.0/apache2/conf.d/00-ioncube-loader.ini
  # echo "zend_extension=ioncube_loader_lin_7.0.so" > /etc/php/7.0/cgi/conf.d/00-ioncube-loader.ini
  # echo "zend_extension=ioncube_loader_lin_7.0.so" > /etc/php/7.0/fpm/conf.d/00-ioncube-loader.ini

 4. Restart Apache:

  # service apache2 restart 

Have more questions? Submit a request
Please sign in to leave a comment.