The text on this page was translated by translation software. A revised version from our editors will be available soon.
For Web Hosting Linux packages
In this article, we show you how to install the ionCube Loader in your web hosting package.
The ionCube Loader is a free PHP encoder that encrypts your PHP files. This protects your website from observation, modification and theft.
Open the page http://www.ioncube.com/loaders.php and select the appropriate archive e.g. Linux x86/32 bit or Linux x86/64 bit. With the Secure Shell (SSH) you can read out whether you need the 32-bit or 64-bit archive.
To do this, enter the command uname -m. You then receive the output: x86_64 or x86_32. The second value is the specification of the bit system.
Download the file to your local computer.
Unpack the file with a ZIP program (e.g. WinZIP).
Move all files with the extension .so from the unpacked archive to the directory /htdocs/ioncube. If the directory does not exist, simply create a folder named ioncube.
Since the 1&1 IONOS packages contain the ZEND optimizer preinstalled by default, the ionCube Loader must be included as a ZEND extension. To do this, insert a line of code into a php.ini according to the following pattern:
In this example /12/d123456789/htdocs/ioncube/ is the path to the ioncube directory on your webspace. ioncube_loader_lin_x.x.x.so is the.so file that matches your PHP version. For PHP 5.6 this is for example ioncube_loader_lin_5.6.so
Please note: If you do not know the path to your presence, you can retrieve it from your domain center. If you connect to your web space via shell, you can use the command pwd to display the path of the current directory.
Finally, copy the php.ini created above into all directories of your website or application that contain.php files. This is necessary because php.ini only affects the directory in which it is located.
If you have a web hosting package with SSH access, you can also have a shell script do the copying, which can be quite time-consuming. How to do this is shown in the article Apply PHP settings to all subdirectories.