How to install ionCube Loader in Ubuntu 16.04/18.04 for PHP provided by OS vendor? Connect to the server via SSH. Download the necessary archive and unpack it. This brief tutorial shows students and new users how to download and install ionCube Loader on Ubuntu 16.04 / 17.10 and 18.04 server with PHP 7.1 / 7.2 installed. To install this PHP tool, follow the steps below: Step 1: Download ionCube Loader. The above output clearly shows that the system is using PHP 5.4.16 version, in your case it should be different version. Next, find the location of the extension directory for PHP version 5.4, it is where the ioncube loader file will be installed.
Install PHP Ioncube Loaders . Ioncube is used as encryption/decryption utility for PHP applications by which we can keep safe our data. It also can restrict PHP application to execute unauthorized. It also assists in speeding up the pages that are served. IonCube loaders are used for decoding encoded files while running on the web server. read more details on official site. This tutorial will help you to install PHP Ioncube Loaders module in CentOS/RHEL 7/6/5 system.
Step 1 – Download Ioncube Loaders
Download latest ioncube loaders on your system from ioncube from ioncube download page or use following command to download ioncube.
Now, extract the downloaded archive and place files under /usr/local/ioncube directory.
Step 2 – Enable Ioncube Loader in PHP
Edit php.ini file and add the following line at the end of the file. To find php.ini file you can use following command.
As per the above output edit /etc/php.ini file and add the following line at the end of the file.
Replace /usr/local/ioncube/ioncube_loader_lin_7.2.so file with your matching PHP version file.
Step 3 – 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 an info.php file on your web server document root with the following content and check the status by access info.php in a web browser.
ionCube is a commercial software suite consisting of a PHP encoder, package foundry, bundler, a real time site intrusion detection and error reporting application as well as a loader.
PHP encoder is an application for PHP software protection: used to secure, encrypt and license PHP source code. ionCube loader is an extension used to load PHP files protected and encoded using PHP encoder. It is mostly used in commercial software applications to protect their source code and prevent it from being visible.
Read Also: How to Install ionCube Loader in Debian and Ubuntu
In this article, we will show how to install and configure ionCube Loader with PHP in CentOS 7 and RHEL 7 distributions.
Prerequisites:
Your server must have a running web server (Apache or Nginx) with PHP installed. If you don’t have a web server and PHP on your system, you can install them using yum package manager as shown.
Step 1: Install Apache or Nginx Web Server with PHP
1. If you already have a running web server Apache or Nginx with PHP installed on your system, you can jump to the Step 2, otherwise use the following yum command to install them.
2. After installing Apache or Nginx with PHP on your system, start the web server and make sure to enable it to auto start at system boot time using following commands.
Step 2: Download IonCube Loader
3. Go to the inocube’s website and download the installation files, but before that first you need to check whether your system is running on 64-bit or 32-bit architecture using the following command.
The above output clearly shows that the system is running on 64-bit architecture.
As per your Linux system architecture type download the ioncube loader files into /tmp directory using following wget command.
4. Then unzip the downloaded file using the tar command and move into the decompressed folder. Then run the ls command to list the numerous ioncube loader files for different PHP versions.
Step 3: Install ionCube Loader for PHP
5. There will be different ioncube loader files for various PHP versions, you need to select the right ioncube loader for your installed PHP version on your server. To know the php version installed on your server, run the command.
Verify PHP Version
The above output clearly shows that the system is using PHP 5.4.16 version, in your case it should be different version.
6. Next, find the location of the extension directory for PHP version 5.4, it is where the ioncube loader file will be installed. From the output of this command, the directory is /usr/lib64/php/modules.
7. Next we need to copy ioncube loader for our PHP 5.4 version to the extension directory (/usr/lib64/php/modules).
Ioncube_loader_lin_7.1.so Download
Note: Make sure to replace the PHP version and extension directory in the above command according to your system configuration.
Step 4: Configure ionCube Loader for PHP
8. Now we need to configure ioncube loader to work with PHP, in the php.ini
file.
Ioncube Loader 10 Download
Then add below line as the first line in the php.ini
file.
Note: Make sure to replace the extension directory and PHP version in the above command according to your system configuration.
9. Then save and exit the file. Now we need to restart the Apache or Nginx web server for the ioncube loaders to come into effect.
Step 5: Test ionCube Loader
10. To test if ionCube loader is now installed and properly configured on your server, check your PHP version once more. You should be able to see a message indicating that PHP is installed and configured with the ioncube loader extension (status should be enabled), as shown in the following screenshot.
Test ionCuber Loader
The above output confirms that the PHP is now loaded and enabled with ioncube loader.
ionCube loader is a PHP extension for loading files secured and encoded with PHP encoder. We hope that everything worked on fine while following this guide, otherwise, use the feedback form below to send us your queries.