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 http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
    For 64-bit server: wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

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: http://111.111.111.111/ioncube/loader-wizard.php . This will return a installation page like this:

Selection_081
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].

Selection_082
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/ioncube_loader_lin_5.3.so /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/ioncube_loader_lin_5.3.so
    ~
    ~
    :wq
    [root@server]#

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.

Selection_085
Use the below pasted command to check via command line

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

 

Thats it, MUST TRY this.

Post navigation

Arunlal Ashok

Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

One thought on “How to install IonCube loader on server.

Leave a Reply

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