Installing ionCube Loader on CentOS 7 for PHP 7.1
The ionCube Loader is a necessary PHP extension that enables a server to run PHP scripts encrypted using the ionCube Encoder. It is commonly needed for operating commercial PHP software solutions.
This guide will walk through the process of installing the ionCube Loader on a CentOS 7 system configured with PHP 7.1. Please note that steps for other systems may be different.
Requirements
- A 64-bit CentOS 7 server
- An Apache web server installed, assuming the web directory is
/var/www/html
- PHP version 7.1
- Access to a sudo-enabled user account
- Configured firewall rules, with at least port 80 (HTTP) open
Step 1: Get and Set Up ionCube Loader on CentOS 7
Since CentOS 7 is a 64-bit operating system, download the 64-bit version of the ionCube Loader package and prepare it with the commands below:
cd
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
sudo tar -zxvf ioncube_loaders_lin_x86-64.tar.gz -C /usr/lib64/php/modules
sudo chown -R root:root /usr/lib64/php/modules/ioncube
sudo cp /usr/local/ioncube/loader-wizard.php /var/www/html
sudo systemctl restart httpd.service
The loader-wizard.php
script is now located in your Apache document root directory at /var/www/html
. This file will help you test and configure the ionCube Loader on your server.
Note: If your Apache setup uses a different document root, make sure to move loader-wizard.php
to a directory that’s accessible via your web browser.
Step 2: Configure the ionCube Loader
To begin the configuration process, open your web browser and navigate to the following address: http://203.0.113.1/loader-wizard.php
. This brings up the ionCube Loader Wizard interface.
Inside the interface, select the option for a Dedicated or VPS server (one with full root SSH access).
Next, fill in the hosting provider information as shown:
- Name of your hosting provider: centron
- URL of your hosting provider: https://www.centron.com
Click on the Next button to proceed.
Create a PHP configuration file that points to the correct ionCube Loader binary for PHP 7.1 with the following command:
echo 'zend_extension = /usr/lib64/php/modules/ioncube/ioncube_loader_lin_7.1.so' | sudo tee /etc/php.d/00-ioncube.ini
Note: If you are using a PHP version other than 7.1, make sure to replace the file path accordingly. Run php -v
to verify your PHP version.
Apply the changes by restarting Apache:
sudo systemctl restart httpd.service
Return to the ionCube Loader Wizard in your browser and click on the provided link labeled click here to test the Loader to verify that everything is functioning correctly.
If everything has been set up correctly, you will see a message saying Loader Installed Successfully.
For security reasons, it is highly recommended to delete the loader wizard script from your web root after passing the test:
sudo rm /var/www/html/loader-wizard.php
That completes the installation process. With ionCube Loader now active on your system, you’re ready to deploy applications protected with ionCube licensing.
Conclusion
Setting up ionCube Loader on a CentOS 7 system running PHP 7.1 is a straightforward task if you follow the correct procedure. With the Loader in place, your server is now equipped to run encrypted PHP applications that rely on ionCube for licensing and protection. Always remember to remove setup tools like the loader wizard after use to maintain server security.