Forum Moderators: travelin cat

Message Too Old, No Replies

Trying to set up PHP & Apache

Error while setting up PHP and Apache

         

aaronjf

12:22 am on Aug 14, 2002 (gmt 0)

10+ Year Member



Hey all,

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%

ukgimp

9:21 am on Aug 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



www.firepages.com.au

I found this useful, it m ay help you as there are some simple to set up options

aaronjf

4:38 pm on Aug 14, 2002 (gmt 0)

10+ Year Member



Thanks I will check that out.

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?

jimbo_mac

2:19 pm on Aug 16, 2002 (gmt 0)

10+ Year Member



aaronjf

have you tried the stepwise site.

i used their tutorial a few months ago.

aaronjf

7:08 pm on Aug 18, 2002 (gmt 0)

10+ Year Member



Well, I have found a tremidous mount of help from the publishers and author himself of the book. I e-mailed them, and they got me directly in touch with the author how was nice enough to e-mail me a copy of his httpd.conf file and instructed me how to replace mine with the copy of his... I have to say that publisher and author have found a customer for life!

cbooth7575

2:06 pm on Aug 28, 2002 (gmt 0)

10+ Year Member



I used the PHP package that can be found at www.entropy.ch/software/macosx/php/

He's actually got a nice MySQL package as well.......