Install and configure Ioncube to Xampp

Xampp or Lampp in our case is a bundled software for Web Development with PHP/Apache/MySQL etc. You can download latest version from apachefriends.org. Just download and extract the file under /opt.
Then visit http://www.ioncube.com/loaders.php and download the latest loaders for your distribution. Be carefull to download the proper file otherwise it wont work. For example 32bit binaries wont work on a 64bit OS.

In our case we will download the latest 64bit encoders.

[root@thinkpad /]# cd /opt/lampp/
[root@thinkpad lampp]# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
--2011-04-13 15:12:32--  http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.bz2
Resolving downloads2.ioncube.com... 64.85.170.46
Connecting to downloads2.ioncube.com|64.85.170.46|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2841677 (2.7M) [application/x-bzip2]
Saving to: “ioncube_loaders_lin_x86-64.tar.bz2”

100%[======================================>] 2,841,677    683K/s   in 5.5s   

2011-04-13 15:12:38 (507 KB/s) - “ioncube_loaders_lin_x86-64.tar.bz2” saved [2841677/2841677]

[root@thinkpad lampp]#

Then uncompress the file under /opt/lampp. An ioncube directory will be created. Copy the wizard file into your public root directory and load that file into your browser (http://localhost/loader-wizard.php):

[root@thinkpad lampp]# cp ioncube/loader-wizard.php htdocs/

Follow the online instructions to setup ioncube loaders to your environment. If you have lampp and download the 64bit encoders you will get a message to download the 32bit. This is happening due to lampp not been compiled for 64bit systems. However, you will be able to run it without an issue.
If you are following this tutorial on a public server under a 64bit Linux then you will need to download the 64bit encoders.


Put the Loader files in /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626 and then edit the file /opt/lampp/etc/php.ini and before any other zend_extension lines ensure that the following is included:

zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/ioncube_loader_lin_5.3.so

Restart the Apache server software.
When the server software has restarted, refresh the page to test the Loader.
If the Loader installation failed, check the Apache error log file for errors and see our guide to Unix related errors.



Page 2

Posted on: 13/04/2011








0 Comments
If you want to leave a comment please Login or Register