Tiger Apache2 Php5 Won't Configure


I am trying to get php running on a Tiger OS with Apache2 but my conf fails.

I get Invalid command as here:

muffadmin$ /usr/local/apache2/bin/apachectl configtest
Syntax error on line 11 of /usr/local/php5/httpd.conf.php:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration

My PHP is from Marc L (entropy)
and I included his php conf which is like this:

# Additional PHP Apache directives,
# part of the entropy.ch PHP package for Mac OS X
# For more information, go to http://www.entropy.ch/software/macosx/php/

LoadModule php5_module /usr/local/php5/libphp5.so

<IfDefine !APACHE2>
AddModule mod_php5.c

Isn't AddModule part of the core? Why won't it work? Looking forward to a fix.


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: /sw/lib/libiconv.2.dylib\n Referenced from: /Library/Apache2/modules/libphp5.so\n Reason: Incompatible library version: libphp5.so requires version 6.0.0 or later, but libiconv.2.dylib provides version 5.0.0

It seems as if the Apple Developers tools are out of date, even though I'm using the latest version that came with 10.4. Is this the case, or is it a configuration problem in my httpd.conf file? Thanks.


I didn't run into your problem Jamie. I did get the latest Dev tools from the MAC site before starting the process though. It's worth a try.