On Thu, 7 Sep 2000, Bret Hughes wrote:

> "Smith, Jonathan" wrote:
> 
> > I was working on my redhat 6.2 box and I change the /etc/hosts file and also did 
>so calls to the domainname command trying to get openldap to work.  anyway.
> >
> > My sendmail and apache does not working anymore.  apache give me the following 
>error
> >
> > httpd: cannot determine local host name.
> > Use the ServerName directive to set it manually
> >
> > please keep inmind that I did not change any of the apache conf files so I did 
>something to the host
> >
> > PLEASE HELP ME ASAP
> 
> what does the hostname command return?  Perhaps apache uses it and if not there 
>looks to the servername directive?
> 

It's always good to find out where the "real" configuration files are, so
you can go and fix things by hand in the case that you either can't get a
utility (e.g. linuxconf) to work right, or you don't remember which
utility to use.

/etc/HOSTNAME is a file with your "real" ;-) hostname.  Or is it
/etc/sysconfig/network that has your "real" hostname? :-)
Or is it /etc/hosts?   

Make sure that it's the same in all three places.  It's likely that
something you did changed one of these, but not all.  Make them agree.

It's also possible that there are other conf files that have somehow
changed.  However, it's easier to find the one thing (e.g. /etc/HOSTNAME)
that changed and set it back to what it was so that everything else that
depends on it doesn't have to be changed in order to work, especially
when it comes to making changes in sendmail.cf (take great care there!!!)




-- 
***************************************************************************
Jerry Winegarden        OIT/Technical Support           Duke University
[EMAIL PROTECTED]            http://www-jerry.oit.duke.edu
***************************************************************************



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to