• Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us
TecAdmin
Menu
  • Home
  • Ubuntu 18.04
    • Whats New?
    • Upgrade Ubuntu
    • Install Java
    • Install Node.js
    • Install Docker
    • Install Git
    • Install LAMP Stack
  • Tutorials
    • AWS
    • Shell Scripting
    • Docker
    • Git
    • MongoDB
  • Funny Tools
  • FeedBack
  • Submit Article
  • About Us

How to Install ionCube Loader on Debian

Written by Rahul, Updated on March 13, 2020

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 the PHP ionCube Loaders on Debian Linux system.

  • How to Install Ioncube Loader in CentOS/RHEL 7/6/5
  • How to Install Ioncube Loader in WHM/cPanel

Prerequsities

  • Running Debian server with shell access
  • Pre installed Apache and PHP

Step 1 – Download ionCube Loader

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.

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

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

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

Step 2 – Enable ionCube Loader in PHP

Now, find the active PHP version on your system. 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 command will show the configuration file for PHP CLI. You need to edit php.ini for CLI and well as Apache. You can find this with phpinfo(); php function.

By default the configuration file locations are:

sudo vim /etc/php/7.3/cli/php.ini      #for PHP CLI 
sudo vim /etc/php/7.3/fpm/php.ini      #for PHP FPM 
sudo vim /etc/php/7.3/apache/php.ini   #for PHP with Apache 

Edit all the above configuration files and append the below code to the end of the 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.

Step 3 – Restart Apache & PHP-FPM Service

After making changes in php.ini for Apache or PHP-FPM, you need to restart the following services.

sudo systemctl restart apache2      #for PHP with Apache 
sudo systemctl restart php7.3-fpm      #for PHP FPM 

Step 4 – Verify ionCube Loader

Let’s verify the installation and configuration of Ioncube PHP module. Run php -m command on shell.

php -v

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.

1
2
3
<?php
   phpinfo();
?>

Then access info.php in a web browser to view detailed information.

Share it!
Share on Facebook
Share on Twitter
Share on LinkedIn
Share on Reddit
Share on Tumblr
Share on Whatsapp
Rahul
Rahul
Connect on Facebook Connect on Twitter

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

2 Comments

  1. Avatar aRNoLD Reply
    September 12, 2019 at 7:08 am

    I see remi package (for Redhat & Centos) has php-ioncube-loader module, convenient for quick and safe deployment of PHP on machines. Debian 9 and 10, now do have PHP packages and modules for the same purpose, but I did not find similar module. I tried to search, say ioncube-loader from Debian official package page and failed. Does Debian provide such an equivalent?

  2. Avatar Harpreet Reply
    July 23, 2019 at 9:25 am

    Hi Rahul,

    In following code, you said “Edit php.ini file and add the following line at the end of the file.”
    can you please guide, which line to add at the end of the file?

    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

Leave a Reply Cancel reply

Popular Posts

  • How To Install Python 3.9 on Ubuntu 20.04 5
  • How to Install Python 3.9 on CentOS/RHEL 7 & Fedora 32/31 0
  • How To Install VNC Server on Ubuntu 20.04 1
  • How To Install NVM on macOS with Homebrew 0
  • How to Install .NET Core on Debian 10 0
© 2013-2020 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy