I recently had the “pleasure” of installing PHP on a Win 2003 Server and ran into some odd problems here and there. The one that annoyed me the most was the manual installation of PHP/Apache - something that everyone complains about. Since this was a kind’a’sorta test environment and not a local development install, I couldn’t use XAMP or like products.
So, when you install Apache and it displays the neat & purdy “Weclome!” page, you’re halfway home. When you install PHP the manual way, you’ll sometimes run into the following error after activating PHP inside Apache (even though things look alright):
Cannot load c:/php/sapi/php4apache2.dll : The specified module could not be found.
So, what do you do? For starters, rip your hair out trying to verify that everything is alright and as it should be, then do the following:
Copy php4ts.dll from the root PHP directory into the to sapi directory or php4apache2.dll from the sapi to the php root. I personally go with the first option. After that, restart Apache and *poof*, it works. Don’t know why, but I hope it helps you…
