In this tutorial we will show you how to install IonCube on Ubuntu 16.04. We will also install and configure its prerequisites. IonCube is a PHP encoder which is being used to convert readable source code written in PHP in bytecode making it unreadable to other users. It boosts the security and rate of scripts written in PHP. To have the ability to conduct ionCube encoded and secured PHP scripts, then you need to have ionCube Loader installed on your Linux server.
I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.
Install IonCube on Ubuntu 16.04
Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:
apt-get update -y apt-get upgrade -y
Step 2. Installing ionCube loader.
First, download and extract the ionCube loader archive:
cd /opt wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip unzip ioncube_loaders_lin_x86-64.zip
Now, copy the ionCube loader extension that matches your PHP version into the PHP extension directory. In our example, we need to copy ioncube_loader_lin_7.0.so into to the /usr/lib/php/20151012 directory:
cd /opt/ioncube/ cp ioncube_loader_lin_7.0.so /usr/lib/php/20151012/
Next step is to load the extension in PHP. Create a new .ini file for the ionCube extension in the same directory as the other PHP extensions. In our example, it is /etc/php/7.0/apache2/conf.d:
Paste the following content:
zend_extension = "/usr/lib/php/20151012/ioncube_loader_lin_7.0.so"
Save the configuration file and restart the Apache web server for the changes to take effect:
systemctl restart apache2
That should be all, with this step IonCube Loader is successfully installed on your Ubuntu server. You can test this by executing ‘php -v’:
### php -v PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies <strong>with the ionCube PHP Loader (enabled)</strong> + Intrusion Protection from ioncube24.com (unconfigured) v6.0.8, Copyright (c) 2002-2015, by ionCube Ltd.
Congratulation’s! You have successfully install and configured IonCube Loader on your Ubuntu 16.04 server. Thanks for using this tutorial installing IonCube Loader on Ubuntu 16.04 LTS (Xenial Xerus) system.