Install Zend Optimizer for php 5.2 and earlier

Zend Optimizer has been updated and renamed to Zend Guard since PHP 5.3.

However, you might still have some older projects running PHP 5.2, where Zend Optimizer is still needed.

Here’s a small how to install for Ubuntu 12.04 LTS with PHP 5.2.

First of all, download Zend Optimizer 3.3.3 through this link: Zend

Unpack it on your server with this command:

tar -xvf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz

Navigate into the data directory, and correct php version, eg:

cd ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp

copy the so file to the php path:

cp ZendOptimizer.so /usr/lib/php5/20060613/

Enable zend optimizer throught /etc/php5/conf.d by typing:

echo zend_extension=/usr/lib/php5/20060613/ZendOptimizer.so > /etc/php5/conf.d/zend_optimizer.ini

Enable Zend optimizer by reloading apache

service apache2 reload

Check if Zend Optimizer is enabled by:

php -v
PHP 5.2.4-2ubuntu5 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 27 2008 20:46:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top