Click to See Complete Forum and Search --> : Configure Install problem PHP on Apache2 Tiger


cliffowl
09-09-2005, 02:41 AM
I am trying to get php running on a Tiger OS with Apache2 but my conf fails.

I get Invalid command as here:

theadmin$ /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
AddModule mod_php5.c

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

cyber1
09-09-2005, 04:55 AM
You do realize that Tiger comes with PHP already installed?
You don't need to install anything additional.

Alll you need to do is enable it in your http.conf file.
Heres a step by step from O'Reilly:
http://www.oreillynet.com/pub/ct/49
-Bill

cliffowl
09-09-2005, 08:00 AM
Hi Bill,
I've read the O'Reilly articles. They are very good.
BUT I need Apache2. Tiger comes with Apache 1.3x and PHP4. Hence my problem remains. Thanks for the input though. - Ollie

cliffowl
09-13-2005, 02:40 AM
for solution see http://www.entropy.ch/phpbb2/viewtopic.php?t=2115