Activities

February 2010
M T W T F S S
« Jan   Mar »
1234567
891011121314
15161718192021
22232425262728

Enabling Zend optimizer on php

How do I install zend optimiser enabled on php ?

Download Zend optimizer from Zend website

#tar -zxvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
# cd ZendOptimizer-3.3.9-linux-glibc23-i386
# cd data/5_2_x_comp/
# cp ZendOptimizer.so /usr/lib/extensions/no-debug-non-zts-20060613/
Where I set extension_dir varible set to “/usr/lib/extensions/no-debug-non-zts-20060613/” on php.ini

Adding entry on php.ini

#cat "zend_extension=/usr/lib/extensions/no-debug-non-zts-20060613/ZendOptimizer.so" >> /etc/php.ini


Restart Apache and verify the installation

[root@rc-033 5_2_x_comp]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@rc-033 5_2_x_comp]# php -r ‘phpinfo();’| grep “zend”
report_zend_debug => Off => Off
zend.ze1_compatibility_mode => Off => Off
PWD => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp
OLDPWD => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386
_SERVER[“PWD”] => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp
_SERVER[“OLDPWD”] => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386
_ENV[“PWD”] => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp
_ENV[“OLDPWD”] => /home/installation/zendoptimiser/ZendOptimizer-3.3.9-linux-glibc23-i386
[root@rc-033 5_2_x_comp]#

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>