How to Set IonCube Loaders in Ubuntu

Source: Internet
Author: User
Tags ioncube superuser permission

How to Set IonCube Loaders in Ubuntu

IonCube Loaders is a PHP encryption and decryption tool with the function of accelerating page running. It can also protect your PHP code from viewing and running on unauthorized computers. To use the PHP file encoded and encrypted by ionCube, you need to install a file called ionCube Loader on the web server and make PHP accessible. Many PHP applications are using it. It can read and execute the encoded code at runtime. PHP only needs to add a line in 'php. ini 'to use this loader.


In this article, we will install Ioncube Loaders in Ubuntu14.04/15.04 so that it can be used in all PHP modes. The only requirement of this tutorial is that you have installed LEMP and the "php. ini" file.

Download IonCube Loader

Download the latest IonCube loader package based on your system architecture of 32-bit or 64-bit. You can use the superuser permission or the root user to run the following command.

  1. #wget

Download ioncube

After the download is complete, decompress the following command to "/usr/local/src /".

  1. #tar-zxvf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local/src/

Extracting archive

After decompression, we can see all the provided modules. However, we only need the corresponding modules of the PHP version we have installed.

To check the PHP version, run the following command to find the corresponding module.

  1. # php -v

Ioncube modules

According to the above command, we know that we installed PHP 5.6.4, so we need to copy the appropriate module to the PHP Module Directory.

First, create a directory named "ioncube" in "/usr/local/" and copy the required ioncube loader here.

  1. root@ubuntu-15:/usr/local/src/ioncube#mkdir/usr/local/ioncube
  2. root@ubuntu-15:/usr/local/src/ioncube#cp /usr/local/ioncube/
PHP configuration

Add the following configuration lines to "php. ini" in the "/etc/php5/cli/" folder and restart the web service and php module.

  1. #vim/etc/php5/cli/php.ini

Ioncube zend extension

Now we have installed nginx, so we use the following command to restart the service.

  1. # service php5-fpm restart
  2. # service nginx restart

Web services

Test IonCube Loader

Test ioncube loader for our website. Use the following content to create a "info. php" file and store it in the web directory of the website.

  1. #vim/usr/share/nginx/html/info.php

Add the phpinfo script, restart the web service, and use the domain name or IP address to access "info. php ".

You will see the following section in the bottom php module information.

Php info

Run the following command on the terminal to verify the php version and display that PHP Loader is enabled.

  1. # php -v

Php ioncube loader

The above php version output clearly shows that IonCube loader has been successfully integrated with PHP.


At the end of the tutorial, you have learned how to install and configure ionCube Loader in Ubuntu with nginx installed. If you are using other web services, there is no obvious difference with other services. Therefore, it is very easy to install Loader, and installation on most servers will not be a problem. However, there is no so-called "Standard PHP installation", and the service can be installed in many ways, and the function can be enabled or disabled.

If you are on a shared server, make sure the ioncube-loader-helper.php script is running and click the link to test the runtime installation. If you still encounter problems during installation, contact us and leave us a comment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.