February 2010
« Jan   Mar »

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 /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/" >> /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 […]

EnterepriseDB : – Administrative commands

I’d worked with one client who is using enterprisedb ( Redwood version).This database claims the stable performance and index searching same like Oracle does. It’s installation is more difficult since it’s using a GUI installer which requires separate “tmp” partition to start the GUI launcher. very sad thing – 🙁

Here are the few examples […]

Check the run level currently running on Linux

[root@rc-040 installation]# who -r run-level 5 2010-02-19 22:12 last=3

How do I syncronize the FTP files/ incremental FTP backup

I want to backup all the files on the live server to keep on my backup server. How I can do this ?

This help you to reduce the download files locally and then upload it to server. Using this we can do this at the server side itself.

I prefer lftp to do this. […]

How Do I enable ffmpeg extension, flvtool2 and Mplayer + Mencoder

I’m using PHP 5.2.9 on Centos5.3 server where php is installed from the source compilation.

First I added the diag repository on my yum path,

#rpm -Uhv #yum clean all #yum update #yum install ffmpeg ffmpeg-devel #yum install mplayer mencoder

1. How to test ffmpeg is installed ?

[root@rc-149 ffmpeg-php-0.6.0]# ffmpeg FFmpeg version […]