ionCube Encoder can convert PHP source code into Bytecode. PHP code that has undergone encryption and authorization processing is no longer open source and must be executed using ionCube Loader.

PHP itself does not include the ionCube Loader module, so it must be downloaded from the ionCube website. ionCube Loader is free, but Encoder is relatively expensive (starting at $199). This article describes how to install ionCube Loader and is applicable to installation in various PHP environments.

Installation Steps

  1. Open the installation directory
cd /usr/local/
  1. Download the component package, making sure to select the version suitable for your system:
# 32 位系统
wget -O ioncube.zip http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.zip

# 64 位系统
wget -O ioncube.zip http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
  1. Extract the component package
tar xvfz ioncube.zip
  1. Find the location of php.ini and add the following to the first line of the Zend configuration file:
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.6.so

Change 5.6 to the corresponding PHP version.

After the configuration is successful, restart the web server to check the result.