Install PHP Ioncube Loaders in Debian Linux System. Ioncube is used as the encryption and decryption utility for PHP applications by which we can keep safe our data. It also can restrict PHP application to execute unauthorized. It also assists in speeding up the pages that are served. IonCube loaders are used for decoding encoded files while running on the webserver. read more details on official site. This tutorial will help you to install PHP Ioncube Loaders module Debian Linux system.
1. Download Ioncube Loaders
First of all download the latest ioncube loaders php modules from ioncube from ioncube download page. Alternatively you can also use following command to download ioncube loaders.
Then, extract the downloaded archive under /usr/local directory.
tar xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local
2. Enable Ioncube Loader in PHP
Search PHP configuration file on your system. Edit php.ini file and add the following line at the end of the file. To find php.ini file you can use the following command.
php -i | grep php.ini Configuration File (php.ini) Path => /etc/php/7.3/cli Loaded Configuration File => /etc/php/7.3/cli/php.ini
The above comamnd will see configuration file for php-cli. You also need to edit php.ini for Apache. You can find this with
phpinfo(); php function. Or simply change cli in /etc/php/7.2/
Now append the following line in both (cli + apache) PHP configuration files.
zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.3.so
Replace /usr/local/ioncube/ioncube_loader_lin_7.3.so file with your matching PHP version file.
3. Verify Ioncube Loader
Let’s verify the installation and configuration of Ioncube PHP module. Run
php -m command on shell.
php -m PHP 7.3.6-1+0~20190531112640.39+buster~1.gbp6131b7 (cli) (built: May 31 2019 11:26:40) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies with the ionCube PHP Loader + ionCube24 v10.3.7, Copyright (c) 2002-2019, by ionCube Ltd. with Zend OPcache v7.3.6-1+0~20190531112640.39+buster~1.gbp6131b7, Copyright (c) 1999-2018, by Zend Technologies
Alternatively you can also put a info.php file on your web server document root with following content and check the status by access info.php in web browser.
Then access info.php in a web browser to view detailed information.