ionCube Loader is a free tool for executing pre-compiled PHP code. The code must have been pre-compiled using the ionCube PHP Encoder for the ionCube Loader to be able to execute it. The advantage of pre-compiled code means that the code has already been slightly processed and is no longer human readable. The PHP code will also execute faster since it has already been pre-compiled.
Many web applications (such as content management systems) that can be purchased online may be pre-compiled using ionCube PHP Encoder or other similar tools to prevent reverse engineering or tampering of the PHP code. To be able to install a web application that has been pre-compiled using ionCube PHP Encoder, you will need to install ionCube Loader in your web space before the code will execute properly.
Follow the steps below to download and install ionCube Loader to your Linux hosting package using only FTP.
Uncompress the .zip file by right-clicking
the file and selecting Extract All
After extraction, you should be left with an ionCube
folder. You will upload this folder later. Continue with the next steps.
Launch a basic text editor such as Notepad and copy and paste the code below into it:
Save the file as phpinfo.php
to your desktop.
Using an FTP program, upload only the phpinfo.php file
to the folder that contains the ionCube PHP Encoded files.
Please reference our FTP
section of the FAQs for more help if necessary.
Next, access the phpinfo.php page from the browser on your computer (such as Mozilla Firefox) using a URL that points to the folder containing your ionCube PHP Encoded files and the phpinfo.php page. http://s123456789.websitehome.co.uk/phpinfo.php
First check the version of PHP being used at the top of the screen. Write down the version on a piece of paper.
PHP version window
Now, scroll down the page until you see the Environment
heading. Highlight the value of DOCUMENT_ROOT
Environment section overview
Open your text editor again to create a new text document
and copy and paste the DOCUMENT_ROOT
value into it.
Now add the text /ioncube/ioncube_loader_lin_4.4.so
to the end of the line. You may need to replace the version number to match the version of PHP you are running. For instance, if the version of PHP you are using is 5.2.13, you would change the text to 5.2
At the beginning of the line, add the text zend_extension=
Save the file to your desktop as php.ini
Access the phpinfo.php
page again. You should now see that the ionCube Loader has been installed as is recognized by PHP.
PHP version window
Since the settings defined in the php.ini file only apply to the folder where it is saved (which should be the same folder as your ionCube encoded files and phpinfo.php page), it is now necessary to upload the php.ini file to any additional subfolders that contain files which require the ionCube Loader.
Tip: If your package allows SSH access, you may create symbolic links in subfolders that point to your original php.ini file. This way, if the original php.ini file needs to be edited, the changes will then be recognized by all symbolic links that point to it instead of having to overwrite all php.ini files in all the subfolders.