WEB HOSTING SUPPORT NETWORK
     
 

Using ionCube

The ionCube Loader PHP extension is available on our servers. You can enable it for a specific domain/subdomain via the Control Panel -> PHP Settings section by following these steps:

  1. Click on the Manage button next to the domain/subdomain.
  2. Check the box next to the ionCube extension from the Extensions section.
  3. Click on the Save changes button.

You can also enable the ionCube Loader manually by adding the respective extension directive to a PHP configuration file (php.ini). Since there is a separate ionCube binary compiled for each PHP version, you should enable the PHP extension that matches the PHP version used by your script(s) from the following table:

PHP version php.ini directive
PHP 8.2   zend_extension=/usr/local/ioncube/ioncube_loader_lin_8.2.so
PHP 8.1   zend_extension=/usr/local/ioncube/ioncube_loader_lin_8.1.so
PHP 7.4   zend_extension=/usr/local/ioncube/ioncube_loader_lin_7.4.so
PHP 7.3   zend_extension=/usr/local/ioncube/ioncube_loader_lin_7.3.so
PHP 7.2   zend_extension=/usr/local/ioncube/ioncube_loader_lin_7.2.so
PHP 7.1   zend_extension=/usr/local/ioncube/ioncube_loader_lin_7.1.so
PHP 5.6   zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.6.so
PHP 5.3   zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.3.so


Note: ionCube Loader does not support PHP 8.0 and 8.3.

You can learn more about editing your PHP settings in our PHP Settings article.

ionCube "Failed loading" errors

If you encounter any ionCube loading errors similar to the one listed below:

Failed loading /usr/local/ioncube/ioncube_loader_lin_7.2.so: /usr/local/ioncube/ioncube_loader_lin_7.2.so: undefined symbol: zend_ce_countable

it is possible that there is a discrepancy between the PHP version used by your script and the PHP version used for compiling the ionCube extension. (Example: You are executing a script in a subdomain working with PHP version 7.4, but the ionCube module for PHP version 7.2 is loaded in the subdomain's php.ini file.)

To fix this error, make sure that you have enabled the ionCube Loader extension compiled for the PHP version that is used by your script.