The dll is in the directory specified in the apache2.2 configuration file. Yet restarting the apache server generates this error message: "httpd.exe : syntax error on line 128 of C:/Program Files/Apache Software Foundation/Apache2.2…/conf/httpd.conf : Cannot load c:/php5/php5apache2.dll into server. The specified module cannot be found." Any thoughts on why it cannot be found where it actually is?

I'm being guided by W. Jason Gilmore's text who only specifies that after getting apache installed ("It Works!") all that remains after installing PHP is adding to the httpd.conf file the following (using my directory):
LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "c:\php5"

Clearly something else remains to be added/changed somewhere.

Can you confirm PHP is installed in C:\php5, and that the file php5apache2.dll is actually there (These are sometimes in a subfolder and need to be moved to the main directory)

PHP was all installed in ...\php5 and there's no subdirectory. Must continue any dialogue tomorrow 4/15.

I have no idea, but looking at the code shouldnt there be a ';' at the end:

LoadModule php5_module c:/php5/php5apache2.dll
AddType application/x-httpd-php .php
PHPIniDir "c:\php5";

This probably isnt it, so sorry. But give it a try as its a sytax error :)

Designer there is no need for the ; in the httpd.conf file.

However I do see another inconsistency that might be the problem. You're PHPIniDir statement uses the typical windows slash \ when it probably should use the forward slash / so basically the last line in your config should be

PHPIniDir "C:/php5"

Remember also that Apache is "Case-Sensitive" if you created the windows path as c:\PHP5 then apache will not find the directory if it is told to look for "c:/php5".

Also which version of Apache are you using? If it is Apache 2.2 then your dll call should be:
LoadModule php5_module c:/php5/php5apache2_2.dll

This article has been dead for over six months. Start a new discussion instead.