How to install PHP on Debian Linux in Ioncube

Install PHP Ioncube loader Debian Linux system. Ioncube used as the encryption and decryption utilities PHP application through which we can protect data security. It can also restrict PHP execution of unauthorized applications. It also helps speed up page provided. IonCube loader (Ioncube Loaders) for running on the Web server when decoding the encoded file. Read more on the official website. This tutorial will help you install PHP Ioncube Loaders module in Debian Linux system.

1. Download Ioncube Loaders

First, download the latest ioncube Ioncube Loaders php module from the download page ioncube. Alternatively, you can also use the following command to download Ioncube Loaders.

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

Then, under / usr / local directory unzip the downloaded archive.

tar xzf ioncube_loaders_lin_x86-64.tar.gz -C /usr/local

2. Enable Ioncube Loader in PHP

Search PHP on the system configuration file. Edit your php.ini file and add the following line to the end of the file. To find the php.ini file, you can use the following command.

php -i | grep php.ini

Configuration file (php.ini) Path => /etc/php/7.3/cli

Loading a configuration file => /etc/php/7.3/cli/php.ini

The above command will see php-cli profile. You also need to edit the Apache php.ini. You can () to find it through phpinfo; php function. Or simply change the cli to /etc/php/7.2/cli/php.ini in /etc/php/7.2/apache/php.ini.

Now append the following line in two (cli + apache) PHP configuration file.

zend_extension = /usr/local/ioncube/ioncube_loader_lin_7.3.so

Will be replaced to match your version of PHP file /usr/local/ioncube/ioncube_loader_lin_7.3.so file.

3. Verify Ioncube Loader

We verify the installation and configuration Ioncube PHP module. Run php -m command on the 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 be placed in the web server document root directory in a file info.php, containing the following, and check the status by accessing info.php in the web browser.

<?php
  phpinfo();
?>

Then visit info.php in your Web browser to view details.

Guess you like

Origin www.linuxidc.com/Linux/2019-07/159508.htm