Knowledge Base

ionCube PHP Loader support

This article discusses support for the ionCube PHP Loader on A2 Hosting servers. The ionCube Loader is a PHP extension that decodes and executes encoded files at run-time.

Shared hosting and reseller servers

All shared hosting and reseller servers have the ionCube PHP Loader enabled by default. You can verify this yourself by viewing the server's PHP configuration settings. For more information about how to do this, please see this article.

On some shared and reseller hosting accounts, you must follow additional configuration steps to use ionCube Loader with non-default PHP versions. For more information, please see this article.

Managed VPS and managed Flex Dedicated Servers

Managed VPS and managed Flex Dedicated Servers have the ionCube PHP Loader enabled by default. You can verify this yourself by viewing the server's PHP configuration settings. For more information about how to do this, please see this article.

Cloud VPS, semi-managed VPS, and Flex Dedicated Servers

If you use the A2 QuickInstaller to install a LAMP (Linux, Apache, MySQL, and PHP) stack, it installs and configures the ionCube Loader as well. No further configuration is required on your part.

If you install Apache and PHP yourself, however, then you must download and configure the ionCube Loader. To do this, follow these steps:

  1. Log in to the VPS using SSH.
  2. At the command prompt, type the following command:
    wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
  3. To extract the files, type the following command:

    tar xvzf ioncube_loaders_lin_x86-64.tar.gz
  4. Move the ioncube directory to the /usr/local directory by typing the following command:

    mv ioncube /usr/local
  5. Add the following line to the /etc/php.ini file. Replace x.y with the PHP version number that you are running (for example, 5.4):

    zend_extension = /usr/local/ioncube/ioncube_loader_lin_x.y.so
  6. Restart Apache. To do this, type the appropriate command for your Linux distribution:

    • For CentOS and Fedora, type:
      service httpd restart
    • For Debian and Ubuntu, type:

      service apache2 restart

More Information

For more information about the ionCube PHP Loader, please visit http://www.ioncube.com.