If you are using OpenBSD to host your wordpress installation, and using the Akismet plug-in to block spam, you may come across set-up problems with Akismet.
The errors that can occur could be either or both of these:
- There was a problem connecting to the Akismet server
- The key you entered could not be verified because a connection to akismet.com could not be established
There may be a couple of issues here.
Read the rest of this entry »
November 2, 2007 at 12:38 · Filed under openbsd

The official OpenBSD announcement states:
We are pleased to announce the official release of OpenBSD 4.2. We remain proud of OpenBSD’s record of more than ten years with only two remote holes in the default install. We dedicate this release to the memory of long-time developer Jun-ichiro “itojun” Itoh Hagino, who focused his life on IPv6 deployment for everyone.
So get to it people, buy a CD and support the project. While you are waiting for your CD to arrive, you can get the release off the mirrors.
I use this OS exclusively for all my servers, firewalls, www, db, dns and it is the quickest to set-up, easiest to administrate (great doco) and the most secure by default of any of the UNIX like operating systems out there.
read more | digg story
October 30, 2007 at 09:16 · Filed under perl, unix
I was trying to use someone elses script for logging dansguardian events to an RDBMS.The script was chewing up 99% of my CPU! I got chatting to a friend and a perl coder about this, and got some ideas. He showed me about the perl debugger using the -d switch. Awesome. I finally got my perl script working. Installing the DBI package on OpenBSD was a snap with pkg_add (pkg_add -v p5-DBD-Pg-1.47.tgz
). My logical debugging was as follows.
first I read that DBI was a memory hog so I wrote it out and put in a native postgres call, but the pgsql for perl was borked.
(comment from coding friend “DBI is fine man, works for the massess”). Next I changed the while loop over the the file to a Tail::File method, but the module was badly documenting and had issues.
I actually ended up using IO::File to tail the log and looped over the lines (in a mad loop), but it was still broken.
So I went back to DBI, which as my friend pointed out was never a problem. It worked!
It turned out the loop was the CPU hog and all I had to do was put in a sleep 1;
if there was no new line in the tail.
In the process I rewrote the whole script and it barely resembles the original except for the idea. Now it has 0.5% CPU load at best. A win for coding. I’ll post the script soon and also send it to dansguardian.
Comment from perl coding friend: of course – i guessed that after u left. 🙂
October 23, 2007 at 00:43 · Filed under openbsd
Having had aircon installed today, my headless web server did not recover from the scheduled power outage. It was stuck in a stupid “Press F1 to Boot” screen, and as such Tech Debug was down for the majority of the day. Now I have it all back online it is time to consider two things:
- A UPS
- A secondary Web/DB server running OpenBSD
Does anyone know they best way to have a failover apache+mysql+postgres OpenBSD server?
« Previous entries ·
Next entries »