Install ionCube Loader on CentOS 7
Go to
https://www.ioncube.com/loaders.php
Download latest version of ionCube Loader
1 2 3 4 |
cd /usr/local/src wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube |
Find out PHP version you are using with command
1 |
php -v |
Here we have PHP version 5.6, now you need to find the available loaders for PHP 5.6 with command
1 |
ls -l | grep 5.6 |
The one we needed is ioncube_loader_lin_5.6.so
You need to copy it to PHP extension_dir directory.
To find location of extension_dir, run
1 |
php -i | grep extension_dir |
For default php installation, it will be /usr/lib64/php/modules
So copy it the loader with command
1 |
cp ioncube_loader_lin_5.6.so /usr/lib64/php/modules |
Edit php.ini
1 |
vi /etc/php.ini |
Add
1 |
zend_extension = ioncube_loader_lin_5.6.so |
At this point, php -m will show ionCube loader.
Now restart web server with
1 |
service httpd restart |