There will be a time when you need IonCube loader in order to run PHP scripts encoded with IonCube. So here’s a quick guide which will tell you how to install IonCube loader using SHELL.

Root Shell Access to your server.

Download the loader suitable for your server from here: http://www.ioncube.com/loader_download.php.

Unpack the binary file by using this command tar -zxvf ioncube_loaders.tar.gz (Change theioncube_loaders.tar.gz to the filename appropriate for your server)

After extracting it will create a folder called ioncube. Now use this command: cd ioncube

Copy ioncube-install-assistant.php to a web directory by typing this command cp ioncube-install-assistant.php /home/userdirectoryhere/www

Visit that file by going to http://www.yourdomain.com/ioncube-install-assistant.php.

And you should see something like below (depends on your server and configurations):

Code:

PHP Version 4.3.3
Operating System Linux
Threaded PHP No
php.ini file /usr/local/lib/php.ini
Required Loader ioncube_loader_lin_4.3.so

Go back to where you extracted the ioncube folder by using cd..

Now move the ioncube folder in a safe and permanent location by using command: mv ioncube /usr/local

Now edit the php.ini file for example: pico /usr/local/lib/php.ini

Look for [zend] by typing CTRL + W and typing [zend]

Paste the following line under [zend], zend_extension = /usr/local/ioncube/ioncube_loader_lin_4.3.so

Press CTRL + X, type Y and press Enter.

Restart the server by typing: /etc/init.d/httpd restart

Your installation is done.

*If you have Zend Optimizer installed then put the ioncube loader line before the Zend Optimizer line, else you will receive any error.