Archive for the 'Apache' Category
Wordpress wp-cron.php and Bad Behavior Apache crash
Saturday, March 17th, 2007
Update: This is old info, and not correct anymore. The problem was a result of a bug in Apache2 (or Ubuntu’s version of it) in which apache processes swapped out to disk would not release, and would consume all memory and crash the server. After an ‘apt-get upgrade’ on 8/30/07, apache2 was upgraded to ‘2.0.55-4ubuntu2’ and the problem has disappeared. For users experiencing this issue, I recommend upgrading your version of apache to the latest.
I have just discovered the reason for the sporadic server crashes I’ve been seeing over the past month or so. The symptoms include: Server slowing to a crawl, Apache reaching max_clients and never releasing its connections, Apache processes getting “stuck” and never going away, and finally, all open requests are for Read the rest of this entry »wp-cron.php?check=[somelongnumber] (which you may find out through apache-status, which looks like this).
Convert Apache common logs to combined logs
Thursday, February 15th, 2007
I was setting up AWStats for my server a while ago and realized my Apache server log format was wrong for all my sites. It was in the “Common” format, which doesn’t include referrer or user-agent information. As soon as I caught that, I immediately switched the “Combined” log format, which gives all that information.
However, after switching formats, I didn’t want to lose all the old stats I had gathered. I had to find some way to convert the old Common-format Apache logs so that I could run my new log through AWStats without losing anything. Read on for how I did it…
Read the rest of this entry »







