1829737 Members
2131 Online
109992 Solutions
New Discussion

Apache Startup

 
Ron Cornwell
Trusted Contributor

Apache Startup

I am having a problem with a new server getting apache to start. The error_log states that it is unable to resolve the server name. I can ping the server name, and complete a forward/reverse lookup of the name/ip. Does anyone have any ideas about this??
3 REPLIES 3
Patrick Preuss
Trusted Contributor

Re: Apache Startup

hi.

are you doing this on the new server?

seams a problem of name resulution on the server.

check the /etc/resolv.conf and /etc/nsswitch.conf


hth

regards

-PP

Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
Mike Hassell
Respected Contributor

Re: Apache Startup

Ron,

You may want to use the following parameter in your httpd.conf:

ServerName webserver.domain.com

It should however be able to pickup the server name via DNS. Check your /etc/nsswitch.conf to see how your are resolving hostnames. Also be sure your /etc/hosts file has the FQDN for this server.

Hope that helps.

-Mike
The network is the computer, yeah I stole it from Sun, so what?
Michael Tully
Honored Contributor

Re: Apache Startup

Make sure that you have your /etc/nsswitch.conf
file resolving to your local hosts files first.
This will save you a lot of grief. We use a simple ftp script to get the latest copy of DNS every 24 hours.

/etc/nsswitch.conf

hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns [NOTFO
UND=return UNAVAIL=continue TRYAGAIN=return]

# more /etc/resolv.conf
domain mydomain.com.au
nameserver 10.33.100.2
nameserver 10.43.100.3
Anyone for a Mutiny ?