Install ioncube in WHM

For cPanel

Installing IonCube Loaders with cPanel & WHM can be done one of two ways:

1) Using EasyApache via WHM >> EasyApache, IonCube Loaders can be selected under the Exhaustive Options List prior to compiling.

2) As the user `root` via SSH, you can run the below command to install IonCube Loaders without having to recompile Apache:


# /scripts/phpextensionmgr install IonCubeLoader

For Non-Control panel Servers

Begin by downloading the latest loaders to your system. Linux 64 bit:

# cd /root
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

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

Extract the contents of the archived file


# tar -xvf ioncube_loaders_lin_x86-64.tar.gz

Put the Loader file for your php version in /usr/lib64/php/modules

Check php version:

# php -v
PHP 5.4.43 (cli) (built: Jul 13 2015 12:26:16) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Put the Loader file for your php version in /usr/lib64/php/modules

# cp -r /root/ioncube/ /usr/lib64/php/modules/ioncube_loader_lin_5.4.so

Create a ioncube.ini file in your ini files directory, /etc/php.d

# cd /etc/php.d
# nano ioncube.ini

/pre>
# zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
[/bash]

Restart the Apache server software.

service httpd restart

Check for ioncube

# php -m | grep ioncube
ionCube

Leave a Comment