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.