Knowledgebase: Server side
How to install ioncube onto your hosting account
Posted by Sales Supervisor on 06 January 2008 03:39 PM
The first step is to download the ionCube package from the ionCube developer's website http://www.ioncube.com/loaders.php, the latest package at the time of this article for 32bit(box1 - 19, 21 and 27) and 64bit(all other servers) linux operating systems is here:
Upload this file to your / directory (not public_html). Then extract it.
You can use the package extractor built into your Cpanel, if available.
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz This will create a directory called /ioncube/
tar -xvzf ioncube_loaders_lin_x86.tar.gz
Now you need to edit your php.ini file and add the following line to the begining of the [zend] section
zend_extension = /home/username/ioncube/ioncube_loader_lin_4.3.so
That's it. If your script that requires ioncube is in a directory that is not in your public_html please copy the php.ini file to the directory the script is running from. Also, make sure that you have Ioncube loading before Zend Optimizer or you will get 500 errors.
Also if you chose to use FTP method instead of SSH method you will need to extract the .gz files on your computer at home then upload the /ioncube/ directory via ftp. Then edit your php.ini file in your favorite txt editor.