Wednesday, March 5, 2014

Ioncube Loader & Zend Guard Loader with php



Ioncube Loader:

Download and Install
Code:
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

1. Unzip / Untar
Code:
tar -zxvpf ioncube_loaders_lin_x86.tar.gz

2. Move ioncube into /usr/local/lib
Code:
sudo mv ioncube /usr/local/lib/


3. Adding zend_extension = "/usr/local/lib/ioncube/ioncube_loader_lin_5.3.so" at the end of your php.ini
Code:
vi /etc/php.ini

4. Restart your Apache service
Code:
service httpd restart

Zend Guard Loader


Notes on installing zend optimiser for PHP 5.3:

CentOS 6.2

Download attachment below and upload it into your server:

Code:
tar -xf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
Code:
cd ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/
Code:
mkdir -p /usr/local/php/

Code:
cp ZendGuardLoader.so /usr/local/php/

Code:
vi /etc/php.ini

## at the end of your php.ini , right after Ioncube Loder... put the following line:
## zend_extension = "/usr/local/php/ZendGuardLoader.so"

## save and exit :OX ctrl+O ctrl_X

## service httpd restart

## verify php has loaded the zend loader

## php -m

you'll see
PHP Code:
[Zend Modules]
Zend Guard Loader