Apache + php compatibility

is apache 2.2 compatible with php 4.3?

i recently downloaded both following instructions from Kevin Yank’s Database Driven Website book.

the apache server is failing to start, but the /localhost/ says it works…it failed to start only after i donwloaded php 4.3.

any tips on how i should go about troubleshooting this??

Yeah, it should work fine. Does apache give any error messages (or anything relevant in apache’s error.log) when it fails to start?

the error: the apache config file (httpd.conf) cannot locate the php5apache2.dll module in the C:/php/php5apache2.dll directory…

but the funny part is that i checked the folder and i saw the php5apache2.dll file. then i checked the httpd.conf and the code there was fine too (LoadModule php5_module c:/php/php5apache2.dll)…

any other reasons why it might have failed??

Does quoting it make any difference?
LoadModule php5_module “c:/php/php5apache2.dll”

no…and thats not what the book says so…

And “the apache config file (httpd.conf) cannot locate the php5apache2.dll module in the C:/php/php5apache2.dll directory” is the exact error?

yes

Yeah, I experienced this too. Apache is unable to load the php5apache2.dll module, even if it’s in the right directory and the correct path is in htaccess.

I might be wrong, of course, but I think Apache 2.2 and PHP don’t play together yet.

I had the same problem so I downgraded to Apache 2.0.x and it worked fine.

Well for PHP 4.x you should be loading php4apache2.dll, not php5apache2.dll. Or am I wrong?

PHP5 has compatibility issues with Apache 2.2.x
You need a modified php5apache2.dll, microsoft visual c++ redistributable package, and an httpd.exe.manifest, instructions are on http://www.apachelounge.com/ somewhere