For PHP 5.1...
httpd.exe: Syntax error on line # of .../conf/httpd.conf: Cannot load
.../php5apache2.dll into server: Cannot find the module.
For PHP 4.4
httpd.exe: Syntax error on line # of .../conf/httpd.conf: Cannot load
.../php4apache2.dll into server: Cannot find the module.
The official releases of PHP 5.1 and 4.4 are built/compiled against the Apache 2.0 codebase, not Apache 2.2 -- and this is the problem...
http://www.apache.org/dist/httpd/Announcement2.2.html
This release has been through extensive testing, including live at some of the world's busiest sites, and is now considered stable. This means that modules and applications developed for Apache 2.2.2 will be both source- and binary-compatible with future 2.2.x releases. This release builds on and extends the Apache 2.0 API. Modules written for Apache 2.0 will need to be recompiled in order to run with Apache 2.2, but no substantial reworking should be necessary.
There are three ways around this problem for PHP 5.1...
1) Build PHP 5.1.x yourself against Apache 2.2 codebase.
http://www.php.net/manual/en/install.windows.building.php2) Use PHP 5.2 (or 5.2-dev until 5.2 comes out) which includes php5apache2_2.dll...
Download
php5.2-win32-latest.zip from
http://snaps.php.net/Use...
LoadModule php5_module .../php5/php5apache2_2.dll
3) You can also just copy php5apache2_2.dll from snapshot PHP5.2 to your PHP5.1 directory -- instead of using the unreleased PHP5.2 canidate.
The only way around this problem for PHP 4.4 is to compile PHP 4.4 against Apache 2.2 yourself or to get someone to do it for you.
Update: DeveloperSide.NET now provides Apache 2.2 apache2handler DLLS for PHP 5.1 and PHP 4.4 -- read the post below and check the download page.