Business Internet and Telephony, since 1985

How To Install The ionCube Loader On Slackware Linux (or for that matter, any other flavor of UNIX).

Printer-friendly versionPrinter-friendly versionSend by emailSend by email

First, if you haven't yet enabled PHP support in Apache then uncomment the following line in /etc/httpd/httpd.conf:

#Include /etc/httpd/mod_php.conf

Now let's check the version of PHP so we know which of the ioncube loaders to use:

# php -v
PHP 5.4.13 (cli) (built: Mar 22 2013 03:38:02)
Copyright (c) 1997-2013 The PHP Group

Now download the tarball from ioncube, unpack it, and move it all to /usr/local/ioncube. We start by visiting http://www.ioncube.com/loaders.php to determine the correct archive for our particular operating system and architecture. Then:

# cd /usr/local/src
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-6...
# tar jxvf ioncube_loaders_lin_x86-64.tar.bz2
# mv ioncube /usr/local/

Next, and with respect to the particular version of PHP we are running on our machine, we enable the ionCube loader it by placing the following line before any other reference to 'zend' in php.ini:

zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4_ts.so

Finally, to wrap things up we restart Apache and check to make sure that the ionCube loader has been correctly installed:

# /etc/rc.d/rc.httpd stop
# /etc/rc.d/rc.httpd start
# php -v PHP 5.4.13 (cli) (built: Mar 22 2013 03:38:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.

Everything looks good!

Enjoy :)