Installing Zend Guard

From ISPWiki

Jump to: navigation, search


Installing Zend Guard 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 you should use Zend Guard, which is an analogue of Zend Optimizer.

The article will go you through the steps you need to follow to install Zend Guard on popular Linux distributions.

Uploading Zend Guard

Log in to your server via ssh and execute:

for 32-bit operating system:

# wget

for 64-bit operating system:

# wget

Execute the uanme -a command to learn the architecture of your server

# uname -a
Linux core.ipmgr 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux

Locate the /etc/issue file to learn the distribution installed on your server

# cat /etc/issue
CentOS Linux release 6.0 (Final)

In our case, 64bit Centos 6.0 is installed on the server

Installing on Debian 6

Untar the archive

# tar -zxf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz

Copy and paste the module into the directory with php modules

# cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/ /usr/lib/php5/

In the /etc/php5/conf.d/ directory create the zend.ini file and specify zend_extension there


Restart the web-server

# /etc/init.d/apache2 restart

Installing on Centos 6

Untar the archive

# tar -zxf ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz

Copy and paste the module into the directory with php modules

# cp ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/ /usr/lib64/php/modules

Specify zend_extension in the /etc/php.ini file


Restart the web-server

# /etc/init.d/httpd restart

Functioning tests

Execute the php -m command to make sure that the module is uploading

# php -m
[PHP Modules]
[Zend Modules]
Zend Guard Loader

You can execute the php -i command to learn the information about PHP

# php -i |grep Zend
Zend Extension => 220090626
Zend Extension Build => API220090626,NTS
Zend Memory Manager => enabled
Zend Multibyte Support => disabled
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
   with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
Zend Guard Loader
Zend Guard Loader => enabled
Was this helpful? Yes | No
Personal tools