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

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

    [[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/ioncube_loader_lin_5.3.so
    ~
    ~
    :wq
    [[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.

Selection_085
Use the below pasted command to check via command line

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

 

Thats it, MUST TRY this.

Arunlal Ashok

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 let me know if you need any assistance. 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 *