Tutorials  /  Linux Basics

Install ionCube Loader on CentOS 7 with PHP 7.1

Ccentron Redaktion · May 2025 ·4 min read ·Linux Basics, Tutorial

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
VM

Matching infrastructure at centron

No hardware needed to follow along: ccloud³ VMs with full root access start at €3.12 per month, billed by the hour and ready in seconds. Rent a cloud server →

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:

Console
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:

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:

Console
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:

Console
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:

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

Jetzt 200 € Guthaben sichern

Testen Sie Ihr Setup auf ccloud³

Registrieren Sie sich in der ccloud³ und erhalten Sie 200 € Startguthaben für Ihr Projekt – z. B. für eine PostgreSQL-VM mit automatischen Backups.

centron Redaktion Technische Redaktion

Das Redaktionsteam von centron schreibt Anleitungen aus dem Betriebsalltag: getestet auf unserer eigenen Plattform, betrieben im Rechenzentrum in Hallstadt bei Bamberg.

Kategorie Linux Basics
Teilen
Noch offene Fragen?

Our team will help you with your specific setup - in German or English, by people who run the platform themselves.

War dieses Tutorial hilfreich?

Your answer is stored anonymously and helps us improve our tutorials.

Kommentare

No comments yet - be the first to ask a question about this tutorial.

Sign in to comment

Comments are open to centron customers. Sign in to your account to ask a question about this tutorial.

Weiterlesen

Das könnte Sie auch interessieren

Jetzt kostenlos anfangen

Melden Sie sich an und erhalten Sie in den ersten 60 Tagen ein Guthaben von 200 € bei centron.

Dieses Werbeangebot gilt nur für neue Konten. Angebot ausschließlich für Gewerbetreibende.

Jetzt loslegen Sales kontaktieren