How to Install Ioncube Loader in CentOS/RHEL 7/6/5 How to Install Ioncube Loader in WHM/cPanel


Running Debian server with shell access Pre installed Apache and PHP

Step 1 – Download ionCube Loader

First of all download the latest ioncube loaders php modules from ioncube from ioncube download page. Alternatively you can also use following command to download ioncube loaders. Then, extract the downloaded archive under /usr/local directory.

Step 2 – Enable ionCube Loader in PHP

Now, find the active PHP version on your system. To find php.ini file you can use the following command. The above command will show the configuration file for PHP CLI. You need to edit php.ini for CLI and well as Apache. You can find this with phpinfo(); php function. By default the configuration file locations are: Edit all the above configuration files and append the below code to the end of the files. Replace /usr/local/ioncube/ file with your matching PHP version file.

Step 3 – Restart Apache & PHP-FPM Service

After making changes in php.ini for Apache or PHP-FPM, you need to restart the following services.

Step 4 – Verify ionCube Loader

Let’s verify the installation and configuration of Ioncube PHP module. Run php -m command on shell. Alternatively you can also put a info.php file on your web server document root with following content and check the status by access info.php in web browser.

Then access info.php in a web browser to view detailed information.