Step 1: Download IonCube Loaders
Download latest ioncube loaders on your system from ioncube from ioncube download page or use following command to download ioncube.
For 32bit Systems:
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
For 64bit Systems:
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
For 64bit Systems:
# wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
This article is written on 32bit system using PHP 5.4.26 on CentOS, For the next commands check what version of php and which operating system are you using.
After downloading IonCube loaders archive file, extract it and place it to a permanent place.
# tar xzf ioncube_loaders_lin_x86.tar.gz
# mv ioncube /usr/local/
# mv ioncube /usr/local/
# mv ioncube /opt/lampp/htdocs
Step 2: Enable IonCube Loader in PHP
Now edit php.ini file and add following line at the end of file. To find php.ini file you can use following command.
# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini
Loaded Configuration File => /opt/lampp/etc/php.ini
As per above output edit /etc/php.ini file and add following file and the end of file.
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so
zend_extension = /opt/lampp/lib/php/extension/ioncube/ioncube_loader_lin_5.4.so
Replace /usr/local/ioncube/ioncube_loader_lin_5.4.so file with your matching PHP version file.
Replace /usr/local/ioncube/ioncube_loader_lin_5.4.so file with your matching PHP version file.
This comment has been removed by the author.
ReplyDeleteThank you very much! Many years have passed, but your article was able to help me today.
ReplyDelete