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.
Prerequisites
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.
#wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
Download ioncube
After the download is complete, decompress the following command to "/usr/local/src /".
#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.
# 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.
root@ubuntu-15:/usr/local/src/ioncube#mkdir/usr/local/ioncube
root@ubuntu-15:/usr/local/src/ioncube#cp ioncube_loader_lin_5.6.so ioncube_loader_lin_5.6_ts.so /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.
#vim/etc/php5/cli/php.ini
Ioncube zend extension
Now we have installed nginx, so we use the following command to restart the service.
# service php5-fpm restart
# 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.
#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.
# php -v
Php ioncube loader
The above php version output clearly shows that IonCube loader has been successfully integrated with PHP.
Summary
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.