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:
1 |
tar -xvf ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz |
Navigate into the data directory, and correct php version, eg:
1 |
cd ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp |
copy the so file to the php path:
1 |
cp ZendOptimizer.so /usr/lib/php5/20060613/ |
Enable zend optimizer throught /etc/php5/conf.d by typing:
1 |
echo zend_extension=/usr/lib/php5/20060613/ZendOptimizer.so > /etc/php5/conf.d/zend_optimizer.ini |
Enable Zend optimizer by reloading apache
1 |
service apache2 reload |
Check if Zend Optimizer is enabled by:
1 2 3 4 5 |
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 |