Installing ionCube on Your Linux Hosting Account
Print this Article
Last Updated:
July 21, 2015 1:51 PM
ionCube lets you protect your website's PHP code from being viewed and ran on unlicensed computers. If you'd like to use it, you can install it on your shared hosting account.
Before installing ionCube, you must:
- Disable APC
- (cPanel only) Use PHP 5.3
NOTE: If you want to use ionCube with a secondary domain name, you must reference the root of the hosting account, where both ionCube and the PHP initialization file are located.
- Download the compressed Linux (32 bits) binary file from ionCube's site. We recommend using the ZIP file.
- Upload the compressed file to your hosting account (Web & Classic / cPanel / Plesk).
- Unarchive the compressed file in your hosting account (Web & Classic / cPanel / Plesk).
NOTE: Unarchiving the compressed file creates the necessary
/ioncube
directory. - Add the following as the first line of script of your PHP initialization file to reference the absolute path to the ionCube Loader:
[Zend]
zend_extension=/absolute path/ioncube/ioncube_loader_lin_X.Y.soNOTE: If your account does not have a PHP initialization file, you must create one (Web & Classic / cPanel / Plesk).
- Replace
absolute path
with your hosting account's absolute path (Web & Classic / cPanel / Plesk). - Replace
X.Y
with your account's PHP version and subversion — for example 5.3 (Web & Classic / cPanel / Plesk).
- Replace