Archive for May, 2006

WordPress PHP Session Errors

Monday, May 1st, 2006

If you get internal server errors from WordPress and see PHP errors like this in your CGI log:

PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.savepath is correct (/var/phpsessions) in Unknown on line 0 PHP Warning: Unknown(): open(/var/phpsessions/sess0454ff9df62216c3011888851ae9cdd1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

You may need to add something like this to wp-settings.php:

sessionsavepath(”YOURHOMEPATH/cgi-bin/tmp”); session_start();

(Courtesy of the PHP Session article in the PureHost KnowledgeBase.)

April Spam Brings…

Monday, May 1st, 2006

My spam actually seems to be dying down this year, and Thunderbird is being reasonably effective in catching it:

Year-Month Total Spam Effectiveness
2006-01 417 0.91
2006-02 283 0.83
2006-03 182 0.82
2006-04 152 0.85

Thunderbird is actually the second step in my spam solution; SpamAssasin runs at a relaxed level on the server first. There are a small number of false positives, but not enough that I track them.

This analysis is another fine work of Perl that parses the dates of spam messages caught in Thunderbird’s Junk folder and those I manually move to the Missed Junk folder.