A new patch for including response counters in the apache mod_status page is now available here.
This patch provides extra counters to mod_status that list different response codes and their counts since server start, along with the ability to clear stats. Useful for monitoring tools and notifications.
I’ve made available an experimental patch I was working on for Apache to cache file stat calls. Unfortunately it’s not very useful, but I’m posting it online in it peaks someone’s interest or perhaps finds another use.
One great thing to optimize out of any system is system calls, and especially any system call that access i/o or disk. In an attempt to exclude all stat calls from the Apache/PHP/APC stack, I created an Apache file stat cache that would cache all the stat calls in memory and never repeat a stat call…. As it turns out this patch isn’t really that useful, as the gains are pretty marginal if at all, and typically you’ll have heavier performance bottlenecks in PHP code than the one stat call that Apache is going to do per request… (full page here)
I’ve updated the Apache Source Defense patch to correctly match extensions. Prior to these changes any file that contained a ‘.php’ extension would be included, such as .php.txt etc. I’ve now corrected this so it will only match the last extension in a file. If you are currently using this and expect it to protect against these situations, please add additional extensions to the patch to make sure you’re protected (I hold no liability for this not working as advertised). If you run across any problem, bugs, missing features please let me know.