Thursday, 3 April 2014

Installing Ioncube loader in Centos cPanel server


Ioncube loader:
====
IonCube loader is the PHP extension that decodes encrypted PHP files on runtime. It is freely available and installation is very easy.
====

Download the following tar.gz file to "/usr/src"

For CentOS 32-bit use:
=====
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
=====

For CentOS x86_64 (64-bit):
=====
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
=====

If the links are not working, please check the latest download links at 
=====
http://www.ioncube.com/loaders.php
=====

Stating CentOS 64-bit as example:
=====
[root@manoj ~]# cd /usr/src/
[root@manoj ~]# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz

[root@manoj ~]# cd ioncube/
====

Now edit,  "/usr/local/lib/php.ini" with corresponding ".so" file found in the directory "/usr/src/ioncube".
====
zend_extension=/usr/src/ioncube/ioncube_loader_lin_5.4.so
====

The above example imagines that PHP for which ioncube loader should be installed is PHP-5.4.

Now, see the output of "php -v" command you will see PHP ioncube loader.
====
root@manoj [/]# php -v
PHP 5.4.25 (cli) (built: Feb 27 2014 11:05:54)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader v4.6.0, Copyright (c) 2002-2014, by ionCube Ltd
=====

Kool :)






















No comments:

Post a comment

Note: only a member of this blog may post a comment.