Mailing List Archive

Support open source code!


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

Apache fails to start under RH7.1



>>>>> "Jean-Christian" == Jean-Christian Imbeault <jean_christian@example.com> writes:

    Jean-Christian> I have noticed that netstat -A -l inet doesn't
    Jean-Christian> have an entry for httpd though. I assume this
    Jean-Christian> means there is a problem with my xinetd setup.

Apache can be run from [x]inetd, but it is designed to run as a
standalone server.  It is almost surely set up as a standalone by the
package manager's configuration, so adding it to [x]inetd will confuse
things badly.

You should be seeing an entry for the httpd service from netstat, but
it should be provided by the httpd, not by [x]inetd, in the standalone
case.

    Jean-Christian> Basically I removed my machine's host name and
    Jean-Christian> gave it the generic one (localhost).

You removed the host name from where?

There are a number of places where you might find the host name on any
given system.  In /etc/hosts, the 127.0.0.1 "loopback" entry should
_never_ be given the host name, always localhost.  There may be a file
/etc/hostname which has the host name in it.  /etc/mailname may also
exist, but it will have a fully-qualified domain name in it.

Try "fgrep $HOSTNAME /etc/* /etc/sysconfig/*".  (You may have to
replace $HOSTNAME with the literal name if HOSTNAME isn't defined in
your environment.  That should catch most of the likely places.

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences       Tel/fax: +81 (298) 53-5091
_________________  _________________  _________________  _________________
What are those straight lines for?  "XEmacs rules."


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links