User Tools

Site Tools


3rdparty:ioncube

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
3rdparty:ioncube [2018/05/21 18:16]
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=====
  
-<​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>​+
  
 The path is: The path is:
   /​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=====
-<konsole 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 +
-</​konsole>​+
  
-====Create the /​etc/​php/​5.6/​mods-available/​ioncube.ini file for PHP 5.6 with the following content:====+  # 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 for PHP 5.6 with the following content=====
  
   ; Configuration for the IonCube Loader   ; Configuration for the IonCube Loader
Line 28: 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=====
  
-<konsole root> +  ​# phpenmod ioncube
-# phpenmod ioncube +
-</​konsole>​+
  
-====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 43: 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 service==== +=====Restart the appropriate ​service=====
- +
-If you use PHP through PHP-FPM+
  
-<konsole root> +====If you use PHP through PHP-FPM====
-# service php5.6-fpm restart +
-</​konsole>​+
  
-If you use PHP through Apache2 FastCGI module (e.g. Fcgid):+  # service php5.6-fpm restart
  
-<konsole root> +====If you use PHP through Apache2 FastCGI module (e.g. Fcgid)====
-# service apache2 restart +
-</​konsole>​+
  
 +  # service apache2 restart
  
/var/www/virtual/i-mscp.net/wiki/htdocs/data/pages/3rdparty/ioncube.txt · Last modified: 2018/05/21 18:30 by nuxwin