Menu Close

How to Install ioncube on Linux Centos 7

ionCube is a commercial software consisting of PHP encoders, it is used as an encryption / decryption utility for PHP applications where we can store our data securely. This tutorial will guide you how to install the PHP Ioncube Loaders module in the linux CentOS/ RHEL 7 system.

1) Download ioncube :

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

2) Extract the download ioncube_loader file with this command. :

# tar xzvf ioncube_loaders_lin_x86-64.tar.gz

3) copy the ioncube.so to the php extension directory.

# cd /root/ioncube
# cp -rp ioncube_loader_lin_7.3.so /usr/lib64/php/modules/ioncube_loader_lin_7.3.so

4) Add ioncube_loader_lin_7.3.so location to ini file inside the corresponding configuration directory:

# vi /etc/php.d/00-ioncube-loader.ini
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.3.so

5) Best practice to protect ioncube_loader configuration files :

# chmod a+x /usr/lib64/php/modules/ioncube_loader_lin_7.3.so
# chmod g-w /usr/lib64/php/modules/ioncube_loader_lin_7.3.so
# chown root:root /usr/lib64/php/modules/ioncube_loader_lin_7.3.so

6) Verify ioncube_loader with “php -v” command :

# php -v
PHP 7.3.21 (cli) (built: Aug  4 2020 08:06:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.21, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v10.4.1, Copyright (c) 2002-2020, by ionCube Ltd.
    with Zend OPcache v7.3.21, Copyright (c) 1999-2018, by Zend Technologies

Leave a Reply

Your email address will not be published. Required fields are marked *