Installing IonCube

ARDI uses IonCube as its security system, which is a module that needs to be downloaded and added to your PHP installation in order for ARDI to function.

If you've started from a blank slate and used one of our installation scripts to install ARDI, IonCube should have been installed automatically and should hopefully be working well.

However, if you've installed onto a system with a different version of PHP to the one that our installation script was expecting - usually because you've upgraded PHP from a non-standard repository, or your distribution of Linux has very recently had its packages updated - then you might need to manually install IonCube.

ARDI will have made all of the major changes - the issue that will remain is the installation of the IonCube shared library.

Shared Library Installation Steps

First, find the suitable version of the IonCube loader, available from http://www.ioncube.com/loaders.php.

When you unzip this file, it will contain several different libraries. You will need to identify which one you need. To do that, ask PHP which version you have installed.

php -v

This will give you something like this…

PHP 5.6.23-0+deb8u1 (cli)

Which identifies that you have PHP 5.6 installed, so will therefore need the PHP 5.6 version of the loader. The file name should be ioncube_loader_lin_5.6.so

Now find where the library needs to be installed…

php -i | grep extension_dir

This should give the following output…

extension_dir ⇒ /usr/lib/php5/20131226 ⇒ /usr/lib/php5/20131226

Which lets you know where to place your file.

Do this with a copy command, renaming the file to simply 'ioncube.so' while doing so.

cp ioncube_loader_lin_5.6.so /usr/lib/php5/20131226/ioncube.so