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.

    [[email protected]]# /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.

    [[email protected]]# 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.

    [[email protected]]# 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.

    [[email protected]]# cd /etc/php.d/
    [[email protected]]# touch 20ioncube.ini

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

    [[email protected]]# vim 20ioncube.ini
    zend_extension = /usr/lib64/php/modules/
    [[email protected]]#

STEP 5: Restart the webserver

    [[email protected]]# 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

    [[email protected]]# php -m|grep ^i
    ionCube Loader


Thats it, MUST TRY this.

Post navigation

Arunlal Ashok

DevOps Engineer II at Zeta Suite. Linux lover. Traveller. Father of two princesses.

Always happy for an open discussion! Write to arun ((@)) crybit ((dot)) 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 *