The ionCube loader is the library used to load ionCube encoded recordsdata on the server. It’s required to put in on the webserver to decode any ionCube encoded recordsdata earlier than working. The ionCube offers a function to encrypt your PHP script to maintain them safe. It additionally retains them safe from unauthorized makes use of.
This tutorial will allow you to to configure the ionCube loader with PHP on Ubuntu 20.04 Linux system.
We assume you have already got PHP put in in your Ubuntu system. If not, you possibly can observe these directions to put in required PHP model.
Step 1 – Obtain Ioncube Loader
To start with obtain the newest ioncube loaders php modules from ioncube from ioncube obtain web page. Alternatively you can even use following command to obtain ioncube loaders. Additionally extract the downloaded archive beneath /usr/native listing.
tar xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/native
Step 2 – Discover Right PHP.ini
It is very important discover the right php configuration file (php.ini) to allow ionCube for that solely. The php -i command offers you the main points details about the lively php model on command line interface.
You possibly can grep the php.ini location by working command:
php -i | grep php.ini
Configuration File (php.ini) Path => /and many others/php/7.4/cli
Loaded Configuration File => /and many others/php/7.4/cli/php.ini
However, may be Apache have been configured with the one other model of the PHP. To seek out that it is advisable put a phpinfo(); file on server net server doc root.
By default PHP saved configuration recordsdata on the following location. For instance, the configuration recordsdata for the PHP 7.Four are saved at beneath location
- /and many others/php/7.3/cli/php.ini #for PHP CLI
- /and many others/php/7.3/fpm/php.ini #for PHP FPM
- /and many others/php/7.3/apache/php.ini #for PHP with Apache
Step 3 – Configure ionCube Loader in PHP
Now, edit the required PHP configuration recordsdata or you might replace in all of the configuration recordsdata discovered above. Append the beneath code to the tip of the recordsdata based mostly in your PHP model.
zend_extension = /usr/native/ioncube/ioncube_loader_lin_7.4.so
Be sure to interchange /usr/native/ioncube/ioncube_loader_lin_7.23.so file path along with your matching PHP model file.
Step 4 – Take a look at Configuration
All performed. You will have added ionCube settings to your php configuration. To confirm the configuration, sort:
PHP 7.4.8 (cli) (constructed: Jul 13 2020 16:46:22) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Applied sciences
with the ionCube PHP Loader + ionCube24 v10.4.1, Copyright (c) 2002-2020, by ionCube Ltd.
with Zend OPcache v7.4.8, Copyright (c), by Zend Applied sciences
You will notice that ionCube PHP loader has been configured along with your PHP model. Equally, to view configuration for Apache use phpinfo() file.
On this tutorial, you’ve got discovered to put in and configure ionCube PHP Loader on Ubuntu 20.04 Linux system.