TUTS How to Install ionCube Loader on Ubuntu 18.04

admin

Administrator
Staff member

Introduction​

IonCube Loader is an incredible PHP module extension designed to help programmers encode and encrypt PHP files and increase the speed of web pages.

The application is commonly used with enterprise-class PHP applications to deliver an extra layer of security to secure their source code in the modern era of website crimes.

This tutorial will help you install and configure IonCube Loader on your Ubuntu 18.04 server.

Ready? Let’s get started.

Before You Begin​

For this installing to run smoothly, the following must be in place before you begin:

  • A
    Please, Log in or Register to view URLs content!
    account that enables you root access to the server or virtual server
  • A user with sudo privileges to run commands as root
  • A fully configured Ubuntu 18.04 server

Step 1 - Installing A Web Server​

The first step when installing IonCube Loader on Ubuntu 18.04 is to install a web server (Apache or Nginx). In our case, we’ll install Apache.

Note: If you have already installed Nginx or Apache skip this step.
To install Apache, run the command below:
Code:
Please, Log in or Register to view codes content!
Once the installation is complete, issue the commands below to start and enable Apache web server to start during boot time.
Code:
Please, Log in or Register to view codes content!
You can now execute the command below to check the status of your Apache2 web server:
Code:
Please, Log in or Register to view codes content!
This will give you the following output:
Code:
Please, Log in or Register to view codes content!

Step 2 - Downloading And Configuring IonCube Loader​

Once the web server is installed, you can now download the installation files for IonCube Loader. Before you download these files, run the command below to confirm the version of PHP installed on your system:
Code:
Please, Log in or Register to view codes content!
This will give you the output below:
Code:
Please, Log in or Register to view codes content!
From the output, it's clear that the version of PHP installed on your server is 7.2.10.

Now, run the command below to download the required IonCube installation files:
Code:
Please, Log in or Register to view codes content!
Then, issue the commands below to extract the files:
Code:
Please, Log in or Register to view codes content!
This will generate a new directory titled ioncube which will feature multiple files for a number of PHP versions. You need to chose the correct folder for your corresponding PHP version (7.2.10).

In this case, you need the file for PHP version 7.2, that is, ioncube_loader_lin_7.2.so. You will need to copy the file to the correct PHP extension directory. To find the correct PHP extension folder, run the command below:
Code:
Please, Log in or Register to view codes content!
This will give you the output similar to the one below:
Code:
Please, Log in or Register to view codes content!
Now that you know the PHP extension directory, run the command below to copy the file to this directory:
Code:
Please, Log in or Register to view codes content!
For this extension to loaded by PHP, you must add it to the corresponding PHP configuration. There are two ways to do this, one, you can add to the main PHP configuration file; php.ini or else create another file. Here, we’ll load the extension in the main PHP configuration file.

Run the command below:
Code:
Please, Log in or Register to view codes content!
Paste the directive below anywhere below the PHP lines.
Code:
Please, Log in or Register to view codes content!
Save the changes and close the nano editor, then restart your Apache service for these changes to take effect:
Code:
Please, Log in or Register to view codes content!
Next, if you are using php-fpm, run the command below to restart it;
Code:
Please, Log in or Register to view codes content!
Now, execute the command to check the status of the IonCube Loader:
Code:
Please, Log in or Register to view codes content!
This will give you the following output:
Code:
Please, Log in or Register to view codes content!

Conclusion​

That is it! You have successfully installed and configured the IonCube Loader on your Ubuntu 18.04 server.
 
Top