How to Install IonCube on Ubuntu 16.04

r00t April 2, 2018

Install IonCube on Ubuntu 16.04

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

Now, copy the ionCube loader extension that matches your PHP version into the PHP extension directory. In our example, we need to copy into to the /usr/lib/php/20151012 directory:

cd /opt/ioncube/
cp /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:

nano /etc/php/7.0/apache2/conf.d/00-ioncube.ini

Paste the following content:

zend_extension = "/usr/lib/php/20151012/"

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

The Tags:

Leave a Comment

Comments are closed.