unixcop Admin

How to Install ionCube Loader for PHP in Ubuntu

In this post you will learn How to Install ionCube Loader for PHP in Ubuntu

ionCube is a PHP extension (module) introduced tools to protect the source code of software written using the PHP programming language from being viewed, changed, and run on unlicensed computers. The encoding technology grew out of earlier work on the PHP Accelerator project, and at first launch included an online encoding service where PHP scripts can be uploaded and an encoded version downloaded in return, and a command line tool for Linux soon after. 

Install ionCube

  •  First, you have to download ioncube loader files to /tmp directory

For 64-bit System

cd /tmp

For 32-bit System

cd /tmp
  • So, uncompress the downloaded file using tar command as follows:
tar -zxvf ioncube_loaders_lin_x86*
  • Switch to the uncompressed folder then list all ioncube loader files as shown below:
cd ioncube
  • Find the location of the extension directory for your PHP version, it will be found at the same the ioncube loader files will be installed as shown in the below screenshot.
php -i | grep extension_dir
  • After that, you should copy ioncube loader for your PHP version to the extension directory /usr/lib/php/20190902

For mine, my php version is php 7.4, so i will copy the module to the extension dir as shown below.

cp /tmp/ioncube/ /usr/lib/php/20190902
  • Next step is to configure the ioncube loader to work with PHP.
vim /etc/php/7.4/apache2/php.ini
  • Then add below line as follows:
zend_extension = /usr/lib/php/20190902/
  • Restart your web server
#For apache web server

systemctl restart apache2

#For nginx web server

systemctl restart nginx
systemctl restart php-fpm
  • Finally, verify that the ionCube loader is properly installed and configured with your PHP version.
root@unixcop:~# php -v
PHP 7.4.3 (cli) (built: Mar 2 2022 15:36:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from (unconfigured) v11.0.1, Copyright (c) 2002-2018, by ionCube Ltd.
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies


That’s it

In this guide, we showed you how to install ioncube loader in Ubuntu 20.04



Please enter your comment!
Please enter your name here

Latest articles

Join us on Facebook