In this article, we will show you how to install ionCube loader on a Debian 9 server. ionCube PHP encoder is the most popular PHP solution for licensing and encoding PHP files and encrypting any other file types. When using ionCube, PHP scripts are first compiled and then optimized. This prevents others from copying your source code and increases the website loading speed. ionCube loader is a PHP extension that is used to execute the encoded PHP files, encrypt or decrypt non-PHP files and validate licenses.
IonCube is a Zend-Engine extension to encode PHP files. To install it on Ubuntu first download the software from ionCube's website. Extract it to /usr/local. For the 64 bit version.
This guide should work on other Linux VPS systems as well, but was tested and written for Debian 9 VPS. Motu microbook usb audio interface for mac.
The Ioncube loader archive can be downloaded free of charge from the official website.
To download the latest ionCube loaders archive file run the following wget command:
Once the file is downloaded, run the following tar command to extract the file in the current working directory:
You can now change to the ioncube directory with:
and use the ls
command to list all extracted files:
The output should look like this:
As you can see each ionCube loader file ends with PHP_VERSION.so
which corresponds to a specific PHP version. For example ioncube_loader_lin_7.1.so
is the PHP extension file that you need to enable if you run PHP 7.1 version on your server.
The default PHP version in Debian 9 is PHP version 7.0. You can check the PHP version installed on your server by running:
The output should look like this:
Next, find the location of the PHP extension directory with the following command:
The output should look like this:
In our case the location of the PHP extension directory is /usr/lib/php/20151012
.
Once you know the location of the PHP extension directory copy the corresponding ionCube loader file into it with the following command:
If you have another non-default version of PHP installed on your server you need to copy the corresponding ioncube loader file. For example if you have PHP version 5.6 you will need to copy the ioncube_loader_lin_5.6.so
file.
Now you need to open the PHP CLI php.ini
file and add the following line that will load the ionCube extension.
Append the following line at the end of the file:
If you are using apache with mod_php to enable ionCube loader extension open the following file:
Append the following line at the end of the file:
Save the file and restart the Apache service to apply the changes:
If you are using Apache or Nginx with PHP-FPM as the PHP processor, open the following file and add the same line:
Append the following line at the end of the file:
Save the file and restart the PHP-FPM service for changes to take effect:
To test if the ionCube loader is successfully installed run the following command:
The output should contain a line saying that the ionCube PHP Loader is enabled. Also you will be able to see the ionCube PHP Loader version, which at the time of writing of this post is v10.2.4.
Of course, you don’t have to know how to install ionCube Loader on Debian 9 if you have a VPS Hosting with us. You can simply ask our administrators to install the ionCube PHP Loader on your server. They’re available 24/7, and will be able to help you with the installation of ionCube Loader on Debian 9.
PS. If you enjoy reading this blog post on How to Install ionCube Loader on Debian 9, feel free to share it on social networks using the shortcuts below, or simply leave a comment.
IonCube is a PHP Zend encoding method used to protect and encode PHP files. In order to view encoded php files on your VPS you must have the php ioncube extension installed.
Today we will see how to install the ioncube loader on your Debian or Ubuntu VPS using a simple bash script.
After executing the script, to check if ioncube extension is properly installed , type the following command: “php -v”. The output should be similar to the following:
The script is self explanatory, and it should work on any Debian based system like Ubuntu or Linux Mint.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert linux admins to install this for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.