Friday 12 July 2013

HOW TO INSTALL IONCUBE LOADER ON CENTOS 6.3

Download and uncompress the latest IonCube version:
# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
# tar xvfz ioncube_loaders_lin_x86-64.tar.gz
Then we go to the new IonCube source directory:
# cd ioncube/
Move ioncube_loader_lin_5.3.so:
# mv ioncube_loader_lin_5.3.so /usr/lib64/php/modules
Now edit /etc/php.ini and add the line zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
right at the beginning:
# vi /etc/php.ini
[PHP] zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so
Now restart Apache:
# /etc/init.d/httpd restart
You can test  by creating a small PHP file
# vi /var/www/html/info.php
<?php
phpinfo();
?>
Now we call that file in a browser (e.g. http://***your website*** /info.php)
If its not showing you might have to disable SElinux;
# vi /etc/selinux/config
All Done!
============================ OR ============================

yum -y install 
yum -y install php-ioncube-loader

No comments:

Post a Comment