Forum Moderators: travelin cat
I am trying to set up the PHP and Apache. I am using the instruction from the book "Dreamweaver MX : PHP Web Development."
I am running these following command to turn on the php module and then let Apache know that I have done so. However, I keep getting this error message and I have no idea what it is talking about. Hopefully someone can help...
[localhost:~] a2% cd /etc/httpd
[localhost:/etc/httpd] a2% sudo apxs -e -a -n php4 libexec/httpd/libphp4.so
Password:
[activating module `php4' in /private/etc/httpd/httpd.conf]
cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.bak
cp /private/etc/httpd/httpd.conf.new /private/etc/httpd/httpd.conf
rm /private/etc/httpd/httpd.conf.new
[localhost:/etc/httpd] a2% sudo perl -p -i.bak -e "s%#(AddType \S+-php[ -])%$1%i" httpd.conf
[localhost:/etc/httpd] a2% sudo apachectl graceful
/usr/sbin/apachectl graceful: httpd not running, trying to start
Syntax error on line 858 of /etc/httpd/httpd.conf:
Invalid command '.php', perhaps mis-spelled or defined by a module not included in the server configuration
/usr/sbin/apachectl graceful: httpd could not be started
[localhost:/etc/httpd] a2%
You know what is strange. I was configuring two of my G4 Towers and they both gave me the same error message. But when I ran the set up commands on my G3 Laptop I had no problems... Wierd
I guess the Apache files have become corrupted somehow. Anyone know how to reinstall it with jacking my whole system. Or if that is even what needs to happen?