How To Install IonCube Loader On Ubuntu 20.04 / 19.10

We can install the IonCube loader on Ubuntu using the package. let’s see, how to install the IonCube loader on Ubuntu 20.04.

IonCube loader is used to secure the software that’s written in the PHP programming language. It’s a PHP module extension that loads the encrypted PHP files and speeds up the webpages.

Check Out: How To Install and Use pgAdmin On Ubuntu 20.04 / 19.10

How To Install IonCube Loader On Ubuntu 20.01 / 19.10

We have to update and upgrade the Ubuntu machine using the following commands to get the latest packages. 

sudo apt update
sudo apt upgrade -y

You will need the LAMP setup on the Ubuntu machine. if you don’t have it, you may follow these docs.

Install IonCube and Download the Package:

You need to download the IonCube package using the wget command.

## for 64 bit 

sudo wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz     

## for 32 bit

sudo wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

Check Out: How To List Git Remote Branches of Repository From Github

Once the package is downloaded. you have to extract it and move to the /opt directory. you can either move this folder in /usr/local or any other directory.

sudo tar -xvf ioncube_loaders_lin_x86-64.tar.gz
sudo mv ioncube /opt

Enable IonCube Loader In PHP:

Use the below command to find out the PHP configuration file and enable the IonCube loader. 

$ php -i | grep php.ini

Configuration File (php.ini) Path => /etc/php/7.4/cli
Loaded Configuration File => /etc/php/7.4/cli/php.ini

As you can see we have PHP 7.4 version installed on the ubuntu machine. you can find the default configuration file location: 

sudo vim /etc/php/7.4/cli/php.ini 
sudo vim /etc/php/7.4/fpm/php.ini
sudo vim /etc/php/7.4/apache2/php.ini

Edit all the files and append these lines at the end of the files. 

zend_extension = /opt/ioncube/ioncube_loader_lin_7.4.so

Replace /usr/local/ioncube/ioncube_loader_lin_7.4.so with your machine PHP version.

Check Out: How to Enable QR Code Generator On Microsoft Edge Browser

Once you have added the above file. we have to restart the apache and apache-fpm service. 

sudo systemctl restart php7.4-fpm
sudo systemctl restart apache2

Verify:

We can check whether it’s loaded or not using the php -v command. 

$ php -v

PHP 7.4.10 (cli) (built: Sep 9 2020 06:36:30) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with the ionCube PHP Loader + ionCube24 v10.4.4, Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.10, Copyright (c), by Zend Technologies

We’ve successfully installed IonCube on Ubuntu 20.04. In a similar way, you can also install IonCube on Ubuntu 18.04/16.04 using the same method and just change the IonCube loader file according to your PHP version.

That’s it.

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment