en
  English
Phone:  +1 (217) 636-4164
Skype:  onegbits
  1. Home
  2. Blog
  3. How To Install IonCube Loader on CentOS 7

How To Install IonCube Loader on CentOS 7

How To Install IonCube Loader on CentOS 7

25

Sep, 16

980

What is IonCube Loader?

IonCube is a PHP module extension that loads encrypted PHP files and speeds up webpages that are being displayed. It is often required for a lot of PHP-based applications. In this article you will learn How To Install IonCube Loader on your Linux VPS or on your linux dedicated server. Also you will be able to check ioincube loader verison on your php configuration.

Install IonCube Loader on CentOS 7

First let’s start by ensuring your Linux Server is up-to-date

yum -y update

Install LAMP server

A CentOS 7 LAMP server is required. If you do not have LAMP installed, you can follow our guide here.

Install IonCube Loaders

Download and extract the latest stable version ioncube, We will use the wget command to get the ionCube file from their website with the following command:
### 64-Bit version ###
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xfz ioncube_loaders_lin_x86-64.tar.gz
### 32-Bit version ###
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
tar xfz ioncube_loaders_lin_x86.tar.gz
Next we need to locate where PHP is loading extensions, this can be done by running the below command and looking:
### php -i | grep extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
Open the extracted ioncube folder and copy the ioncube loader file match to your php version:
cd ioncube
cp ioncube/ioncube_loader_lin_5.4.so /usr/lib64/php/modules
Once the file has been copied to the extensions directory, we need to make sure that the PHP configuration file is updated to use the correct extension:
nano /etc/php.ini
At the very top of the file let’s add the following line:
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
Now, we can restart Apache so that the changes take place:
systemctl restart httpd.service

Testing ionCube on CentOS 7

If you can see the version of PHP with ionCube loader version, meaning you have successfully installed and configured ioncube PHP loader in your CentOS 7 system.
php -v
Results:
PHP 5.4.16 (cli) (built: Jun 28 2015 22:15:27)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.
Congratulation’s! You have successfully installed IonCube Loader. How To Install IonCube Loader
Leave A Comment