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

[…]

Fatal error: Allowed memory size of 134217728 bytes exhausted

I got this error when I try to exeucute a scheduled job.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16 bytes) in /home/login/www/libraries/joomla/database/database/mysql.php on line 462

The solution is,

Increase the memory_limit on php.ini. Since I am using a shared hosting I can’t change the settings globally. So I switched […]