The Ioncube loader is a PHP module to load files that were protected with the Ioncube Encoder software. Ioncube is often used by commercial PHP software vendors to protect their software, so it is likely that you come across an Ioncube encoded file sooner or later when you install extensions for CMS or Shop software written in PHP.
This article contains the detailed steps to install Ioncube Loader in linux server.
Step1: Login to your server via SSH
Step2: Change the location to web server root directory
# cd /path/www/html
Step3: Download IonCube Loader file.
For CentOS 32-bit,
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
For CentOS x64-bit,
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
If the links are not working, please check the latest download links at http://www.ioncube.com/loaders.php.
Step4: Extract the downloaded file
For CentOS 32-bit,
# tar xvfz ioncube_loaders_lin_x86.tar.gz
For CentOS 64-bit,
# tar xvfz ioncube_loaders_lin_x86-64.tar.gz
Step5: Load the below url in your browser
Step6: Followup with the instructions showing in the wizard. At last stage wizard tells you which Loader version you should use on your server.
Step7: Copy the loader .so file to,
32-bit server: /usr/lib/php/modules
64-bit server: /usr/lib64/php/modules
# cp /var/www/html/ioncube/ioncube_loader_lin_5.3.so /usr/lib64/php/modules
Step8: Download the 20ioncube.ini file from the link in the bottom part of that wizard page. Once downloaded, upload that file to /etc/php.d directory.
Step9: Restart Apache service:
# service httpd restart
Step10: Go back to your browser where you open loader-wizard.php page. Scroll down to the bottom and click the link in “When the server software has restarted, click here to test the Loader.” line to re-test the configuration.
If you did everything correctly, you’ll see this message:
Loader Installed Successfully
The ionCube Loader version 4.4.1 for PHP 5.3 is installed and encoded files should run successfully.