Ioncube is already installed on the server your hosting account is on. To get your scripts to use ioncube there are two things that must be done.
First, you need to get a template php.ini with ioncube already configured in it. This can be accomplished by doing the following:
1. Login to your control panel
2. Choose "PHP Config"
3. Check the box labeled "IonCube" under "Install Default php.ini"
4. Click "INSTALL PHP.INI FILE".
That will place php.ini file with the name of php.ini.default in your public_html folder.
Second, you need to rename the file from "php.ini.default" to be "php.ini" and place into whichever folder you need IonCube installed.
You can do that using the file manager, ftp or ssh.
-------------------------------------------------------
The below tutorial is for users on servers not yet upgraded to apache2 and is meant for those with knowledge of extracting tools and may require SSH access to your account, but is doable over ftp.
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:
64-bit
http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
32-bit
http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
Upload this file to your / directory (not public_html). Then extract it.
64-bit
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz This will create a directory called /ioncube/
32-bit
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_5.2.so
Note: Replace "username" in the line above with your cPanel username.
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.
- 11 Users Found This Useful