XinSpace

SharePoint, Drupal and Other Random Notes

Browsing the topic Linux

yum install mlocate

yum -y install pcre-devel

Tagged with

yum install php-devel.i386

Tagged with

echo 1 > /proc/sys/xen/independent_wallclock
ntpdate -b pool.ntp.org
Should detaching from the wallclock resolve this issue, you can make this change permanent by adding the following line to your “/etc/sysctl.conf” file:
xen.independent_wallclock=1
Thanks to Danny@linode

Tagged with , ,

use the following before you start your query
mysql_query(“SET CHARACTER SET utf8″, $connection);

Tagged with ,

http://www.cyberciti.biz/tips/force-iptables-to-log-messages-to-a-different-log-file.html
According to man page:
Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. Several different tables may be defined. Each table contains a number of built-in chains and may also contain user defined chains.
By default, Iptables log message to a /var/log/messages file. However you can [...]

this is caused by the cartage return on the ending of first line. To fix this, you can
1. add -w to the end of the line. make it #!/usr/bin/perl -w
or
2. $ perl -pi.bak -e ’s/ 15//’ *.pl

Tagged with

Recent two weeks my website’s email system has a lot of emails returned. And the error messages are exactly the same.
The error message is
“551 User not local; please try <forward-path>”
All emails returned have same characters: The recipients’ email servers are located in China. sina, yahoo.cn, 163, and sohu, no exceptions.
I did some googling and found [...]