I have a similar configuration problem.
After installing PHP on my Mac system, I get this error showing in my httpd.conf file:
Syntax error on line 257 of /Library/Apache2/conf/httpd.conf:
Cannot load /Library/Apache2/modules/libphp5.so into server: Library not loaded...