"httpd.conf" Error - any one know how to fix?

Hi -


I'm trying to set up the development area. When I go to preferences to get to my computers website the following error shows up:


"Safari can’t open the page “http://10.0.1.4/” because Safari can’t connect to the server “10.0.1.4”.



So I opened monitor and did a config test and got an error message which I don't know how to fix:


agent-99:~ mac$ apachectl configtest

Syntax error on line 274 of /private/etc/apache2/httpd.conf:

LogFormat takes 1-2 arguments, a log format string (see docs) and an optional format name


Does anyone know how to fix this? I've been worKing on it all day and no luck! any advice would be appreciated!

Mac OS X (10.5)

Posted on Aug 30, 2011 8:02 AM

Reply
14 replies

Aug 30, 2011 8:39 AM in response to youbop

274 is blank. directly below it is:


275 # Note that from this point forward you must

specifically allow # particular features to be enabled - so if something's not working as

# you

might expect, make sure that you have specifically enabled it

# below.

#



#

# This should be

changed to whatever you set DocumentRoot to.

#

<Directory "/Library/WebServer/Documents">

Aug 30, 2011 9:03 AM in response to Lia_leaves

If the line breaks are in your conf file, that is probably your problem. If it starts with a #, then it will ignore anything else on that line. If you have lines in your conf file that say "might expect, make sure that you have specifically enabled it", there is no question you are going to get an error. How did these line breaks get into the conf file? I wouldn't trust the integrity of it at this time.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"httpd.conf" Error - any one know how to fix?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.