ionCube is a tool used to protect software written using the PHP programming language. The goal is that the PHP program code is not seen, modified, and run on an unlicensed computer. This tool serves to encrypt PHP program code, so it is not easily hacked or damaged by software hijackers who do not have a software license.
If you are developing applications or website development, you can use ionCube to encrypt important code to prevent application piracy. This guide will provide a tutorial on how to install ionCube Loader on an Ubuntu VPS.
How to Install ionCube Loader
Following are the steps of the ionCube Loader installation process on VPS with the Ubuntu operating system.
Step 1 Install Apache
First, install Apache on Ubuntu using the following command:
~# Sudo apt-get install apache2 libapache2-mod-PHP
After the Apache installation process is complete, you need to check whether the installation was successful or not. You can check this by opening your IP server like this:
If the image appears below, it means that the Apache installation process has been successful.
Step 2 Install PHP
Next is the PHP installation process. To install PHP, you can enter the following command:
# sudo apt-get install php libapache2-mod-php php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-mysql php-cli php-mcrypt php-zip php-fpm
To ensure that the PHP installation process is successful, you can check with the following four steps:
1. Enter the Html directory
Enter the HTML directory on the webserver using the following command:
# cd /var/www/Html
2. Create a PHP info file
Next, create the info.php file using the following command:
# touch info.php
3. Enter the Program
After completing the info.php file, enter the info.php file using the following command:
# nano info.php
Then enter the code below by copy and paste using right-click:
Then save by clicking CTRL + X then press y and ENTER.
4. Access the Server IP
If the info.php file has been added, enter the following command in your web browser to check whether the PHP installation was successful or not.
The picture above is a Php version information picture that is installed on your web server. If the display appears above, it means that your PHP installation was successful.
Step 3 Install ionCube Loader.
Following are the steps to install ionCube Loader on Ubuntu VPS:
1. Download the ionCube Loader File
Visit the ionCube download page and find the appropriate download link based on your operating system. In this guide, we use the x64bit Linux version. Enter the following command into your command line to download the ionCube Loader package.
2. Extract the ionCube file
After the download is complete, extract the ionCube Loader file using the command below:
The above command will produce output from the ionCube directory which contains files for various versions of PHP. Choose the right folder for your version of PHP. In this guide, we use the file version of PHP 7.0.
3. Move the ionCube file
The next step is you have to copy the file to the PHP extension folder. To check the location of the PHP extension folder, you can check on the PHP info page. Then search the table like the example below.ioncube_loader_lin_7.0.soextension_dir
After finding the location of the PHP extension folder, move the file into the PHP extension folder using the following command: ioncube_loader_lin_7.0.so
sudo cp ioncube/ioncube_loader_lin_7.0.so /usr/lib/php/20151012/
4. Configuring PHP Extensions
Next, for the PHP process to load extensions properly, you need to add the configuration to the php.ini file. To avoid errors during the php.ini configuration process, we recommend creating a separate php.ini configuration file from the original php.ini file.
To find out the location of the configuration file, you can check the location of the file on the PHP info page. The information is in the Scan this dir for additional .ini files table as in the example below.
So in this tutorial we will create a file named in the directory . Use the command below to create a file .00-ioncube.ini/etc/php/7.0/apache2/conf.d00-ioncube.ini
sudo nano /etc/php/7.0/apache2/conf.d/00-ioncube.ini
Then, enter the code below into the 00-ioncube.ini file and save it using the command Ctrl + X >> Y >> ENTER .
zend_extension = “/usr/lib/php/20151012/ioncube_loader_lin_7.0.so”
After saving the 00-ioncube.ini file, restart apache using the command below.
sudo systemctl restart apache2.service
Continue to restart the PHP configuration using the following command:
sudo systemctl restart php7.0-fpm.service
Step 4 Check the ionCube installation.
After the ionCube installation process is complete, you need to make sure the installation is successful. You can check it on the PHP info page. If you find the ionCube text on the PHP info page as below, it means that your installation was successful.
Also Check: Complete Drupal Guide for Beginners|2020
After you install ionCube on your VPS, hopefully, you can secure your Application program code. That way, your application will avoid application piracy or application cloning.
Thus the guide article on how to install ionCube Loader on Ubuntu VPS. If you have questions, please leave a comment in the column below.