I'm trying to install an Apache web server with PHP on my Windows XP Pro box, but I'm not having any luck.
I'm trying to mimic a production server, so I'd rather not have the latest. The prod environment uses 5.3.6; I'm settling for 5.3.5 on my Windows box.* For Apache, the prod environment uses 2.0.63; I've tried both 2.0.64 and 2.2.22 (I figure matching the language version is more important than the web server version) and gotten fundamentally the same failures.**
I've been following the instructions on this page, and they consistently fail when it's time to add this code to the httpd.conf file:
LoadModule php5_module "c:/php/php5apache2_2.dll" AddModule application/x-httpd-php .php PHPIniDir "C:/php"
The directory paths are correct, and
c:/php/php5apache2_2.dll is a real file. When I try to Restart/Start the Apache server, I get a "The requested operation has failed!" pop-up message. The
logs/error.log file is no help; nothing is getting written to it. (For this failure, I mean. The file exists and isn't empty.)
When I comment those three lines out the web server starts, so I'm quite sure the problem lives there.
I'm fairly sure the PHP install went just fine; I get the output I'd expect when I run
php -v from the command line.
Any advice on what I'm doing wrong is welcome and very much appreciated.
** -- Upgrading to 2.2.22 was my most recent attempt at solving this before coming here, so that's what I'm running at the moment. I'd gladly step back to 2.0.64 to better replicate the prod environment, but like I said, I figure the language version is more important than the web server.