Thursday, January 8, 2009

Installing ionCube Loader for Xampp

Installing ionCube Loader:
#####################

1. Download the program using wget or FTP.
http://www.ioncube.com/loader_download.php

2. Unpack it
tar -zxvf ioncube_loaders.tar.gz

3. cd ioncube (if you are using xampp, copy the extracted folder into C:\xampp\apache)

4. copy the following php files into the default document root

ioncube-loader-helper.php
ioncube-encoded-file.php

Then open it as http://localhost/ioncube-loader-helper.php

The output should be something similar to:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
php.ini Installation Instructions
**********************************
Analysis
**********
Analysis of your system configuration shows:

PHP Version 4.4.7
Operating System Linux
Threaded PHP No
php.ini file C:\xampp\apache\bin\php.ini
Required Loader ioncube_loader_win_5.2.dll

Instructions
To install the Loader in your php.ini file, edit or create the file C:\xampp\apache\bin\php.ini and add the following line before any other zend_extension lines:

zend_extension = //ioncube_loader_win_5.2.dll

where // is where you’ve installed the loader, e.g. C:\xampp\apache\ioncube\

If there are no zend_extension lines already, you can put the line at any point in the file.

Finally, stop and restart your web server software for the changes to take effect.

Installing the Loader for run-time loading

To install for runtime loading, create a directory called ioncube at or above the top level of your encoded files, and ensure that the directory contains the ioncube_loader_win_5.2.dll loader. If run-time install of the Loader is possible on your system then encoded files should automatically install the loader when needed.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

5. Now lets move the iconcube directory to a permanent location:
cd ..
mv ioncube C:\xampp\apache\

6. Now that you know the location of php.ini you need to edit it.
vi C:\xampp\apache\bin\php.ini

Now find where other zend extentions are in the file.
search for “zend_extension”

Paste in your new line for ioncube loader
zend_extension = C:\xampp\apache\ioncube\ioncube_loader_win_5.2.dll

7. Save the changes

8. Restart the web server to take effect.
/etc/init.d/httpd restart

Success! You should now see a section in your PHP Info page that says:

Additional Modules
Module Name ionCube Loader

You may also use the following URL to verify the installation
http://localhost/ioncube-encoded-file.php

It will show something like:
~~~~~~~~~~~~~~~~~~~~~
This file has been successfully decoded. ionCube Loaders are correctly installed.

Labels: , ,