eAccelerator
After getting somewhat annoyed with the slowness of my blog, and having nothing better to do, I decided to setup eAccelerator. I’m pretty sure I tried setting it up a long time ago, but for some reason, didn’t finish.
Following the path of logic, I went to the eAccelerator website in search of the appropriate files. Their Windows section directed me to SiteBuddy, which had a nice collection of binaries for various PHP versions. After determining my PHP version (5.2.9-2), I tried the closest match (5.2.9), and was greeted by the following error in the Windows event log:
Unable to start eAccelerator module in Unknown on line 0.
My initial reaction to the error: what the ****… (UPDATE: See this post for more details) After a quick Google search, I found that PHP modules must be built for the EXACT PHP version you plan to use them on.
Since I have just about every Microsoft C++ compiler, I figured compiling a new eAccellerator module for my version of PHP would be simple. I downloaded the archived PHP files I needed (now I understand why they keep archives), switched to the release configuration, and pressed build.
error C2466: cannot allocate an array of constant size 0
My reaction to this was about the same as the other one. After half an hour, I tracked down and fixed the problem, which was a broken Windows build configuration (which the PHP developers KNEW about, and marked as “Wont Fix”).
The solution was to make the changes suggested by sailormax.
In the end, everything compiled, and you’re reading my post through eAccelerator. I noticed that blog page loads are 2 – 3 times faster.