Friday, 11 April 2014

Installing Zend Guard Loader on Linux distributions

Zend Optimizer is a PHP extension and can be used to run PHP scripts that are encoded with Zend Guard. Zend Optimizer is compatible with PHP 5.2.

 If you are running PHP 5.3 or above you should use Zend Guard Loader, which is an analogue of Zend Optimizer. In this article we will look into the steps you need to follow when installing Zend Guard on popular Linux distributions.


1) First you need to know the linux distribution, it’s architecture, and the PHP version you are using

2) Download the latest version for different arch from the link below:

For 32 bit OS, use link below
===
wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
====

For 64 bit use the link below:
====
wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
====

3) Un-tar the downloaded archive
====
tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
====

Move ZendGuardLoader.so to an appropriate location

====
cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/ZendGuardLoader.so /usr/lib/php5/
====
4) Specify zend_extension in the php.ini file, located in "/usr/local/lib/php.ini" 
=====
[Zend]
zend_extension=/usr/lib/php5/ZendGuardLoader.so
====
5) Restart apache:
====
/etc/init.d/httpd restart
==== http://grainier.net/installing-zend-guard-on-linux-distributions-centos-6-debian-ubuntu/

6) Check whether the module loads properly:
====
php -m
[PHP Modules]
...
[Zend Modules]
Zend Guard Loader
====
 Kool :)

Reference:
====
http://grainier.net/installing-zend-guard-on-linux-distributions-centos-6-debian-ubuntu/
====
 



No comments:

Post a comment

Note: only a member of this blog may post a comment.