Monday, October 31, 2011
Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - libmysqlclient.so.15
/usr/lib64/mysql
https://bugzilla.redhat.com/show_bug.cgi?id=176353
Tuesday, April 12, 2011
fix exception Unknown relation alias Translation in Doctrine
method:
rm model/*Translation*
Saturday, February 26, 2011
Wednesday, June 23, 2010
eAccelerator install
or
wget http://bart.eaccelerator.net/source/0.9.5/eaccelerator-0.9.5.zip
phpizecp eaccelerator.ini /etc/php.d/
./configure
make
make install
vi /etc/php.d/eaccelerator.ini
mkdir /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
Saturday, May 29, 2010
php 5.2.13 configure sample
Tuesday, May 11, 2010
clear sendmail queue
If you ever felt the need of flushing the sendmail queue then this post will be handy to you.
How to flush sendmail queue under linux sendmail mailq command in linux how to flush mail queue in sendmail under linux
If u r worried about sendmail pending mail flush do the following 2 things.
1) manually method –>
delete /var/spool/mail/*.* files in this dir –>
delete /var/mqueue/*.* files
delete /var/spool/mqueue/*.* files
then check if all mail gone using mailq command. all mail will be deleted.
2) using command:
use simple command sendmail -v -q in root prompt. it will flush all pending mails. rest to confirm u can run mailq command if all are really gone !!….
3) if u want perticular domain or user or recepitience mail to delete use this command
sendmail -qS -v test.com it will delete all mail from *@test.com
sendmail -qR -v hotmail.com it will delete all mail from recepient of hotmail….
Tuesday, January 19, 2010
mysql performance optimization -- add filter
FROM question
WHERE id <> 8668
AND deleted=0
AND status = 'resolved'
ORDER BY created_at DESC
limit 0,10;
43814 lines
0.26s
SELECT id
FROM question
WHERE id <> 8668
AND deleted=0
AND status = 'resolved'
AND created_at > '2010-01-18'
ORDER BY created_at DESC
limit 0,10;
40 lines
0.01s