How To Install IonCube Loader on CentOS, Ubuntu Linux Servers

23 January 2016, Saturday 0 Comments

Ioncube Loader Installation for PHP


IonCube is a PHP module extension that loads encrypted PHP files and speeds up webpages that are being displayed.

First, you will need to download and extract the IonCube Loader PHP modules from url below and select your correct tar.gz file by your filesystem 64-bit tar.gz or 32-bit (x86 )tar.gz file.

http://www.ioncube.com/loaders.php


Make a temporary folder and enter inside;

mkdir /usr/local/ioncube/
cd /usr/local/ioncube/

Download Ioncube Loader file and extract it with tar:

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -zxvf ioncube_loaders_lin_x86-64.tar.gz

Move extracted files to one up layer and remove early created temporary folder:

cd ioncube
mv * ../
cd ..
rm -rf ioncube

Check your PHP version:

php -v
PHP 5.4.45 (cli) (built: Feb 16 2016 17:32:49)
Copyright (c) 1997-2014 The PHP Group

Find and match correct files for your PHP:

ioncube_loader_lin_5.4.so
ioncube_loader_lin_5.4_ts.so

Open your php.ini file with any text editor like nano, vi, etc.. Be sure to be root or using sudo. 

sudo nano /etc/php.ini

Note: If you can not find your php.ini, use "php -i | grep php.ini" command.

Append the following lines to your php.ini:

zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.4.so
zend_extension_ts=/usr/local/ioncube/ioncube_loader_lin_5.4_ts.so

Restart your httpd / apache service:

service httpd restart

Check your Ioncube installation with php -v command;

PHP 5.4.45 (cli) (built: Feb 16 2016 17:32:49)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.1.1, Copyright (c) 2002-2016, by ionCube Ltd.  

If you see Ioncube Loader explained texts like above, your installation has been successfully completed.


Share this


Comments