Mailing List Archive

Support open source code!


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

Re: Apache fails to start under RH7.1



Jc,

Under RedHat, the network configuration stuff is a rats nest
of shell scripts that do things "automatically".

As I understand it, the hostname is set in /etc/sysconfig/network,
via the "HOSTNAME" variable. This should just be the raw hostname,
without the domain name. 

The scripts call /bin/hostname to tell the system what the hostname
is and write the hostname to a file, /etc/HOSTNAME. RedHat doesn't
use an /etc/hostname file. 

RedHat gets the DNS domain name from the resolver, which is backed
by /etc/hosts and DNS (as configured by /etc/host.conf,
/etc/nsswitch.conf, /etc/resolv.conf). 
It is not strictly necessary to have the host/domain listed in the
/etc/hosts file if they are in DNS. It is better to do so, however,
to provide a fallback in case DNS is unreachable. 

If you want things like nslookup to work properly, you will probably
want to set up /etc/resolv.conf with a bit more information than
RedHad gives it by default.

As for Apache....you can probably figure out what the problem is
by starting it manually from the command line. The "Apache" way
to do this is via the "apachectl" utility (i.e. "apachectl start". 
I don't know if apachectl is included with RedHat. I always build
from source to avoid these kinds of hassles.....

Regards,
Jake



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links