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

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

# tar xzvf ioncube_loaders_lin_x86-64.tar.gz

3) copy the to the php extension directory.

# cd /root/ioncube
# cp -rp /usr/lib64/php/modules/

4) Add location to ini file inside the corresponding configuration directory:

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

5) Best practice to protect ioncube_loader configuration files :

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

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 Comment