Installing Ioncube Loader In WHM

By | October 22, 2011

IonCube is a PHP-Encoder which is very useful to secure and license the php applications/scripts. Following steps can be used to install IonCube Loader to a Linux server.

RETRIEVE THE LATEST IONCUBE LOADER PACKAGE

FOR 32BIT (X86) ARCHITECTURE

[[email protected] ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86.tar.gz
[[email protected] ]# tar -zxf ioncube_loaders_lin_x86.tar.gz
[[email protected] ]# mv ioncube /usr/local

FOR 32BIT (X86-64) ARCHITECTURE

[[email protected] ]# wget http://downloads2.ioncube.com/loader_download /ioncube_loaders_lin_x86-64.tar.gz
[[email protected] ]# tar -zxf ioncube_loaders_lin_x86-64.tar.gz
[[email protected] ]# mv ioncube /usr/local

LOCATE AND MODIFY YOUR PHP CONFIGURATION FILE

[[email protected] ]# php -i | grep php.ini
[[email protected] ]# 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:

[[email protected] ]# service httpd restart

ENSURE IONCUBE IS NOW SUCCESSFULLY LOADED:

[[email protected] ]# 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

Leave a Reply

Your email address will not be published. Required fields are marked *