This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
3rdparty:ioncube [2018/05/21 18:18] nuxwin |
3rdparty:ioncube [2018/05/21 18:22] nuxwin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Install Ioncube Loader ====== | + | ====== Installation of the PHP Ioncube Loader on Debian-like distributions ====== |
- | 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. | + | The example is for PHP 5.6 as provided by Ondřej Surý repository. The procedure is identical for all PHP versions that are provided by the Ondřej Surý repository. You **MUST** just adapt the paths according the PHP version that you target. |
- | ====Retrieve the path for the PHP extensions==== | + | =====Retrieve the path for the PHP extensions===== |
$ php5.6 -i | grep extension_dir | $ php5.6 -i | grep extension_dir | ||
Line 11: | Line 11: | ||
/usr/lib/php/20131226 | /usr/lib/php/20131226 | ||
- | ====Download, extract and install the IonCube Loader for PHP 5.6==== | + | =====Download, extract and install the IonCube Loader for PHP 5.6===== |
# cd /usr/local/src/ | # cd /usr/local/src/ | ||
Line 19: | Line 19: | ||
# cp ioncube_loader_lin_5.6.so /usr/lib/php/20131226/ioncube.so | # cp ioncube_loader_lin_5.6.so /usr/lib/php/20131226/ioncube.so | ||
- | ====Create the /etc/php/5.6/mods-available/ioncube.ini file for PHP 5.6 with the following content:==== | + | =====Create the /etc/php/5.6/mods-available/ioncube.ini file for PHP 5.6 with the following content===== |
; Configuration for the IonCube Loader | ; Configuration for the IonCube Loader | ||
Line 25: | Line 25: | ||
zend_extension=ioncube.so | zend_extension=ioncube.so | ||
- | ====Activate the IonCube Loader for PHP 5.6==== | + | =====Activate the IonCube Loader for PHP 5.6===== |
# phpenmod ioncube | # phpenmod ioncube | ||
- | ====Check that the IonCube Loader for PHP 5.6 has been correctly activated==== | + | =====Check that the IonCube Loader for PHP 5.6 has been correctly activated===== |
php5.6 -v | php5.6 -v | ||
Line 38: | Line 38: | ||
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies | with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies | ||
- | ====Restart the appropriate service==== | + | =====Restart the appropriate service===== |
- | If you use PHP through PHP-FPM | + | ====If you use PHP through PHP-FPM==== |
# service php5.6-fpm restart | # service php5.6-fpm restart | ||
- | If you use PHP through Apache2 FastCGI module (e.g. Fcgid): | + | ====If you use PHP through Apache2 FastCGI module (e.g. Fcgid)==== |
# service apache2 restart | # service apache2 restart | ||
- | |||