How to install IonCube loader on server.

IonCube is a PHP module extension that loads encrypted PHP files, and speeds up web pages that are being displayed.
It is often required for a lot of PHP-based applications.

I. Its very simple to install a server having cPanel.

    [root@server]# /scripts/phpextensionmgr install IonCubeLoader

II. Server without any control panel.
We need a server with LAMP environment for installing IonCube loader.

STEP 1: Download package
Here is the link for both 32 & 64 bit server. You need to download the package to the document root of the server which you want to install the IonCube loader.
Basically the document root of a server is /var/www/html, So change the directory to that.

    [root@server]# cd /var/www/html/

Download the packages:

    For 32-bit server: wget
    For 64-bit server: wget

Extract it:

    tar xvfz ioncube_loaders_lin_x86.tar.gz / ioncube_loaders_lin_x86-64.tar.gz

STEP 2: Access the IonCube loader wizard
You can access the IonCube loader wizard through web browser by calling the server IP address followed by /ioncube/loader-wizard.php
Example: . This will return a installation page like this:

Select the Local install button and click on the next button. This Loader Wizard gives suggestions to you for a correct installation. The below pasted images shows the suggestions for me [for this particular server].

STEP 3: Read the instructions correctly and do what it is said.
First I’m going to copy the .so file to the default php modules folder.

    [root@server]# cp /var/www/html/ioncube/ /usr/lib64/php/modules

Command to find out the default php modules folder is:

    php -i | grep extension_dir

STEP 4: Create 20ioncube.ini file under /etc/php.d folder.

    [root@server]# cd /etc/php.d/
    [root@server]# touch 20ioncube.ini

Add zend_extension entry to the .ini file we have created right now by using your favorite editor.

    [root@server]# vim 20ioncube.ini
    zend_extension = /usr/lib64/php/modules/

STEP 5: Restart the webserver

    [root@server]# service httpd restart

STEP 6: Test the loader is installed or not by clicking the link on Loader wizard.

Use the below pasted command to check via command line

    [root@server]# php -m|grep ^i
    ionCube Loader


Thats it, MUST TRY this.

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

1 Response

  1. December 30, 2013

    […] How to install Git on a cpanel server (CentOS) How to install php-pear mail on CentOS or RHEL How to install IonCube loader on server iftop installation on Unix/Linux […]

Leave a Reply

Your email address will not be published. Required fields are marked *