How to install ionCube PHP Loader


ionCube PHP Loader
Description:
ionCube produces leading tools for PHP source code protection to secure your PHP software from prying eyes and to combat software piracy. Featuring an advanced compiled-code encoding engine that translates source to highly efficient bytecodes, ionCube encoding tools deliver the ideal combination of maximum source code protection without sacrificing performance, reliability or language compatibility.

In order to view encoded ionCube files on your server you need the ionCube loader. This is a free plugin for Apache web server that only takes a few minutes to install and is well worth it.

NOTE: Please read this page as a reference before continuing on. It may help, some references might relate to Ubuntu Linux.

How to install ionCube PHP Loader

Download ionCube PHP Loader then uncompress it. Go into the directory and now you should see a few files like e.g "ioncube_loader_lin_x.x.so"

Copy the lastest version of the ioncube loader *.so file to your php lib directory.
If you have Zend optimizer installed.

sudo cp iconcube_loader_linx_x.x.so /usr/local/Zend/lib/

x.x is the version

else make a directory for itself & copy it over:

sudo mkdir /usr/lib/ioncube
sudo cp iconcube_loader_linx_x.x.so /usr/lib/ioncube

x.x is the version

Now to load it up with PHP 5, edit your PHP config.

sudo nano /etc/php5/apache2/php.ini

Paste it where your zend_extensions are.

zend_extension="/usr/local/Zend/lib/ioncube_loader_lin_x.x.so"

if you dont have zend installed, load it up as a normal extension

extension="/usr/lib/ioncube/ioncube_loader_lin_x.x.so"

Restart Apache 2:

sudo /etc/init.d/apache2 restart
    To see if its loaded successfully:
  • Create a file called phpinfo.php
  • Inside it, have
    <?php phpinfo(); ?>
  • Upload it to the server
  • Using your web browser, browse http://yoursite/phpinfo.php

It should have:
"Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd."

Notes:
If you have Zend Optimizer / eAccelerator / Ioncube Loader installed, then its best to put the extension string in PHP config file in this order.

eAccelerator > Ioncube Loader > Zend Optimizer