Windows IIS phpBB3 500 internal server errors

Just in case anyone else has a similar problem, I’ll post my experiences.

I’ve just upgraded the local biker forum that I look after, the upgrade was from an old version 2 phpbb to the current version (3.0.11).

The actual upgrade went fairly smoothly and everything seemed to be working fine so I renamed the old folder and changed the the new phpbb3 folder to phpbb2 (I know that’s kinda silly but I don’t want to break links).

Over the next 24 hours or so, I got a few 500 internal server errors with no idea what was causing the issue.  Googling gave me very little to go on, apart from a StackOverflow thread which reminded me how to get error logging working properly in PHP for windows.  So, I changed a couple things in php.ini (c:/php in my case); set “error_reporting  =  E_ALL”, I couldn’t seem to get “display_errors = On” to work correctly so left that to “Off” and instead went for “log_errors = On” and “error_log = c:/php/php_errors.log”.  One thing to point out here is, I’m pretty sure the ini file gets cached by php so make sure restart the website and recycle the app pool (I’m not sure if both are necessary, but worth doing anyway).

After changing the appropriate error bits (temporarily), I reproduced my error (simply trying to send a PM would throw it) and checked the log which showed –

[21-Nov-2012 20:24:06] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 1572864 bytes) in D:\….\includes\utf\data\confusables.php on line 1

Ah! A memory issue.  I headed back to php.ini and changed the default “memory_limit = 8M” to “memory_limit = 16M” (and restarted/recycled the site) and the random gremlins went away.

So, everything seems to be working well now.  Generally I’m pretty impressed with version 3 but have really struggled to get any kind of “spambot countermeasures” providing adequate protection.  All the various captcha options seem easily breakable by the bots (even though I can hardly read some of them myself).  In the end I’ve settled on the simple “Q & A” option which I guess is much harder to programmatically break.

Hope it helps!

Switched Theme

Unfortunately, I’ve had to move away from my old theme, which is quite sad as Dennis featured so prominently on the old one. I’ll probably have to go for the CSS upgrade and get him back in here that way.

I needed to switch in order to get away from fixed width, which was ruining any code I pasted. As I intend to start posting more code, the old them had to go.

Right, now I need to right some new posts..

Google sync on windows mobile 5 (wm5)

Google has (finally) launched a product (service) allowing you to sync your contacts and calendar from windows mobile device with gmail equivalents.

Google Sync for Windows Mobile

If however, like me, you’re running an old window mobile 5 device, you may find yourself stumped while following the instructions.  Specifically, it says –

8. Leave the Domain field empty.

Hmm, not so easy.. it’s a compulsary field!

The answer is to use m.google.com/sync for the domain 🙂

This google forum post pointed me to the answer.

Oh, one more thing, you may want to take a backup of your phone contacts/calendar first.  That’s easy grab PIM backup from DotFred, it works great.

add to del.icio.us :: Bookmark Post in Technorati :: Add to Blinkslist :: add to furl :: Digg it :: add to ma.gnolia :: Stumble It! :: add to simpy :: seed the vine :: :: :: TailRank :: post to facebook :: Bookmark on Google :: Add to Netscape :: Share on Yahoo :: Add this to Live

Goodbye my friend

Anyone who reads this blog, has simply dropped by at some time or knows me on other sites, may have noticed Dennis.  Dennis is the cat used in my avatar and also in the main image used at the top of this blog.

Unfortunately, this morning we buryed Dennis.  He was my pet and a great friend and I’ll miss him dearly.

RIP buster, we will all miss you 😦