User Tools

Site Tools


3rdparty:ioncube

This is an old revision of the document!


Install Ioncube Loader

The example is for PHP 5.6 as provided by Ondřej Surý repository. The procedure is identical for any PHP version that is provided by Ondřej Surý repository. You MUST just adapt the path for the PHP extensions.

First, let's retrieve the path for PHP extensions:

USER
# php5.6 -i | grep extension_dir extension_dir ⇒ /usr/lib/php/20131226 ⇒ /usr/lib/php/20131226

So here, the path is:

/usr/lib/php/20131226

Download, extract and install the IonCube Loader for the PHP 5.6 version:

ROOT
# cd /usr/local/src/ # wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz # tar xfz ioncube_loaders_lin_x86-64.tar.gz # cd ioncube/ # cp ioncube_loader_lin_5.6.so /usr/lib/php/20131226/ioncube.so

Create the /etc/php/5.6/mods-available/ioncube.ini file with the following content:

; configuration for php ionCube PHP Loader module
; priority=01
zend_extension=ioncube.so

Activate the IonCube Loader for PHP 5.6

ROOT
# phpenmod ioncube

Check that the IonCube Loader for PHP 5.6 has been correctly activated:

php5.6 -v
PHP 5.6.36-1+0~20180505045733.13+jessie~1.gbp9b5cab (cli) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
  with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.1, Copyright (c) 2002-2018, by ionCube Ltd.
  with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

Restart the service:

If you use PHP-FPM

ROOT
# service php5.6-fpm restart

If you use FCGID:

ROOT
# service apache2 restart

/var/www/virtual/i-mscp.net/wiki/htdocs/data/attic/3rdparty/ioncube.1526926166.txt.gz · Last modified: 2018/05/21 18:09 by nuxwin