IonCube is a PHP-Encoder which is very useful to secure and license the PHP applications/scripts. The following steps can be used to install IonCube Loader to a Linux server.
RETRIEVE THE LATEST IONCUBE LOADER PACKAGE
FOR 32BIT (X86) ARCHITECTURE
[root@server ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86.tar.gz
[root@server ]# tar -zxf ioncube_loaders_lin_x86.tar.gz
[root@server ]# mv ioncube /usr/local
FOR 32BIT (X86-64) ARCHITECTURE
[root@server ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86-64.tar.gz
[root@server ]# tar -zxf ioncube_loaders_lin_x86-64.tar.gz
[root@server ]# mv ioncube /usr/local
LOCATE AND MODIFY YOUR PHP CONFIGURATION FILE
[root@server ]# php -i | grep php.ini
[root@server ]# nano -w /user/local/lib/php.ini
INCLUDE THE IONCUBE LOADERS INTO PHP CONFIGURATION
Insert the following line into your php.ini file at the bottom:-
zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so
RESTART APACHE TO REFLECT THE CHANGES:
[root@server ]# service httpd restart
ENSURE IONCUBE IS NOW SUCCESSFULLY LOADED:
[root@server ]# php -v
BELOW WRITTEN IS THE OUTPUT OF THE ENTIRE SCRIPT EXECUTION:
PHP 5.3.1 (cli) (built: Jan 6 2010 00:16:22)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd.
with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH