1and1 Help Centre Categories

print article

Manually Install ionCube Loader

For Linux packages

Learn what ionCube Loader is and how to manually install it to your Linux package.

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.

Step 1
Download and save the Linux (x86) ionCube Loader in zip format from the Desktop overview
Desktop overview
Step 2
Uncompress the .zip file by right-clicking the file and selecting Extract All.
Desktop overview
Desktop overview
Step 3
After extraction, you should be left with an ionCube folder. You will upload this folder later. Continue with the next steps.
Desktop overview
Desktop overview
Step 4
Launch a basic text editor such as Notepad and copy and paste the code below into it:

<?php phpinfo(); ?>    

Notepad window
Notepad window

Save the file as phpinfo.php to your desktop.
Windows explorer
Windows explorer
Step 5
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.
Step 6
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
Step 7
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
PHP version window
Step 8
Now, scroll down the page until you see the Environment heading. Highlight the value of DOCUMENT_ROOT.
Environment section overview
Environment section overview
Step 9
Open your text editor again to create a new text document and copy and paste the DOCUMENT_ROOT value into it.
Notepad window
Notepad window
Step 10
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.
Notepad window
Notepad window
Step 11
At the beginning of the line, add the text zend_extension=
Notepad window
Notepad window
Step 12
Save the file to your desktop as php.ini.
Windows explorer
Windows explorer
Step 13
Using an FTP program...
  • Upload the php.ini file to the folder than contains your ionCube PHP Encoded files and phpinfo.php page.
  • Upload the ionCube/ folder to the root of your webspace. Do not upload the ionCube/ folder to a subfolder in your webspace.
Step 14
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
PHP version window
Step 15
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.
Please note:
With Managed Servers, please make sure that the PHP module is set to inactive in your Control Panel within the Advanced Configuration section.
For additional information, you may want to reference: