This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
3rdparty:ioncube [2018/05/21 18:06] nuxwin |
3rdparty:ioncube [2018/05/21 18:30] (current) 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 extension which you can retrieve easily by running the command shown below. | + | 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. |
- | First, let's retrieve the path for PHP extensions: | + | =====Retrieve the path for the PHP extensions===== |
<konsole> | <konsole> | ||
- | # php5.6 -i | grep extension_dir | + | $ php5.6 -i | grep extension_dir |
extension_dir => /usr/lib/php/20131226 => /usr/lib/php/20131226 | extension_dir => /usr/lib/php/20131226 => /usr/lib/php/20131226 | ||
</konsole> | </konsole> | ||
- | So here, the path is: | + | The path is: |
/usr/lib/php/20131226 | /usr/lib/php/20131226 | ||
- | Download, extract and install the IonCube Loader for the PHP 5.6 version: | + | =====Download, extract and install the IonCube Loader for PHP 5.6===== |
<konsole root> | <konsole root> | ||
# cd /usr/local/src/ | # cd /usr/local/src/ | ||
Line 22: | Line 23: | ||
</konsole> | </konsole> | ||
- | ===== Creation of the INI file for the PHP 5.6 Ioncube Loader extension ===== | + | =====Create the /etc/php/5.6/mods-available/ioncube.ini INI file for PHP 5.6 with the following content===== |
- | Create the /etc/php/5.6/mods-available/ioncube.ini file with the following content | + | ; Configuration for the IonCube Loader |
- | + | ||
- | ; configuration for php ionCube PHP Loader module | + | |
; priority=01 | ; priority=01 | ||
zend_extension=ioncube.so | zend_extension=ioncube.so | ||
- | ===== Activation ===== | + | =====Activate the IonCube Loader for PHP 5.6===== |
<konsole root> | <konsole root> | ||
Line 36: | Line 35: | ||
</konsole> | </konsole> | ||
- | ===== Activation check ===== | + | =====Check that the IonCube Loader for PHP 5.6 has been correctly activated===== |
- | php5.6 -v | + | <konsole> |
- | PHP 5.6.36-1+0~20180505045733.13+jessie~1.gbp9b5cab (cli) | + | $ php5.6 -v |
- | Copyright (c) 1997-2016 The PHP Group | + | PHP 5.6.36-1+0~20180505045733.13+jessie~1.gbp9b5cab (cli) |
- | Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies | + | Copyright (c) 1997-2016 The PHP Group |
- | with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.1, Copyright (c) 2002-2018, by ionCube Ltd. | + | Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies |
- | with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by 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 | ||
+ | </konsole> | ||
- | ===== Service restart ===== | + | =====Restart the appropriate service===== |
- | If you use PHP-FPM | + | ====If you use PHP through PHP-FPM==== |
<konsole root> | <konsole root> | ||
Line 53: | Line 54: | ||
</konsole> | </konsole> | ||
- | If you use FCGID: | + | ====If you use PHP through Apache2 FastCGI module (e.g. Fcgid)==== |
<konsole root> | <konsole root> |