[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: apache help



Andrew Schaeffer wrote:
That was the problem.. my /etc/hosts read like this
127.0.0.1  localhost.localdomain  localhost

it was just switched!
thank you guys, Steve, Scott and Rick.  Thank you.
You guys are the best.

Thanks. It's strange because it _should_ work either way. I suspect there was an odd character in there or the items weren't separated properly.

In fact, the way your file was set up is the "correct" way.  The format
of the file is supposed to be:

address<blanks>fully-qualified-host-name<blanks>aliases

where <blanks> is any number of spaces or tabs. E.g.

127.0.0.1 localhost.localdomain localhost

The format is in the "hosts(5)" man page ("man hosts").

Weird. Ah, well, it works and that's what matters.

On Tue, 29 Oct 2002, Rick Stevens wrote:


Andrew Schaeffer wrote:

Same thing happens, connection was refused when trying to connect to
127.0.0.1  error_log reports the same error.

Tue Oct 29 16:02:55 2002] [alert] (22002)Name or service not known:
mod_unique_id: unable to find IPv4 address of
"localhost.localdomain"
Configuration Failed

First off, look at your /etc/hosts file and verify that there's a line in there that reads:

127.0.0.1 localhost localhost.localdomain

If not, add it. That should solve _that_ problem.


just so i know... whats the difference between
/usr/sbin/apachectl start
and
service httpd start

The first one starts the apache program using the apache startup program, apachectl. apachectl will report an error and not do anything if you try to stop apache and it ISN'T running. Ditto if you try to start it and it's ALREADY running. It's a more user-friendly program in that if there's a problem, it tells you in English what that problem is.

The second one tries to start apache via brute force.  It simply
runs the actual apache daemon, httpd, and depends on it to report
whether it starts or not.  If it doesn't start, httpd returns a non-zero
result code and the error message shows up in the apache error_log file
and you have to go get the message.

"service httpd start" does this via the /etc/rc.d/rc[1-6].d directory
tree that is executed when your system boots.  The actual file that
does the work is a shell script, /etc/rc.d/init.d/httpd.

---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens vitalstream com - - VitalStream, Inc. http://www.vitalstream.com - - - - If it's stupid and it works...it ain't stupid! - ----------------------------------------------------------------------





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]