Thursday, February 24, 2011

How to enable ionCube Loader in Godaddy Linux Hosting?

I have struggled a lot to enable ionCube in Godaddy Linux Hosting. By default, ionCube support is not enabled on our Godaddy Linux hosting accounts, but we can enable it manually. Unfortunately Windows hosting accounts do not support ionCube.

NOTE: Before enabling ionCube support, you must enable Zend Optimizer. Zend Optimizer™ is a free application that runs the files encoded by the Zend Guard, while enhancing the performance of PHP applications.

To enable Zend Optimizer on your Linux hosting account, you must either modify or create a php.ini file if your hosting account runs PHP 4, or your php5.ini file if your hosting account runs PHP 5. The file you create or modify must include the following code:

[Zend]
zend_optimizer.optimization_level=15
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_extension=/usr/local/Zend/lib/Optimizer-3.3.3/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3/ZendExtensionManager_TS.so

NOTE: We recommend backing up your php.ini or php5.ini file before modifying it.


To Install ionCube


1. Download the compressed Linux x86 binary file from ionCube's site. We recommend using the ZIP file.

2. Upload the compressed file to your hosting account. For more information, see Using the File Manager to Upload Files to Your Hosting Account.

3. Unarchive the compressed file in your hosting account. For more information, see Unarchiving Files and Directories.

NOTE: Unarchiving the compressed file creates the necessary /ioncube directory.


4. Add the following lines of script to your php.ini file using PHP4 or php5.ini file using PHP5 to reference the absolute path to the binary:

[Zend]
zend_extension=/absolutepath/ioncube/ioncube_loader_lin_X.X.so

NOTE:: If your account does not have a php.ini or php5.ini file, you must create one.


* To find your absolute path, see Finding Your Hosting Account's Absolute Path.

* Replace "X.X" with "5.2" using PHP5, or "4.4" using PHP4.


NOTE: The zend_extension script must appear as the first line after [Zend].

No comments:

Post a Comment