Click to See Complete Forum and Search --> : please help? httpd exists, but httpd.conf doesn't


mstembri3
02-23-2001, 12:00 AM
I've read through the main linuxnewbie.org site, and several tutorials for installing apache.

I'm running Red Hat 7.0.

When I run httpd the following error appears:
'cannot determin local host name. Use the ServerName directive to set it manually'

I've tried using man & help servername - nothing found. I've searched with Yahoo, nothing explaining how to 'use the servername directive'. I've searched these forums, again - no information.

My last question went unanswered, though I provided what I thought was a decent amount of information. If I have come to the wrong place for assistance, please offer some suggestions on where newbies should go for assistance. Thank you.

error27
02-23-2001, 12:15 AM
Have you tried using LinuxConf to configure Apache?

To me this way seemed straight forward.

If that doesn't work try this.

type: hostname

does that give you your host name?

or look in /etc/hostname
that should have your hostname in there.

trekker
02-23-2001, 12:35 AM
The "ServerName" directive is found in httpd.conf It is not a command line input.

Look for it in the httpd.conf file (/etc/httpd/conf/httpd.conf) Usually it is commented out. But since you are having problems, you will need to uncomment it and use it accordingly e.g. "ServerName (whateveryourservernameiswithoutthebrackets)"

Hope this helps.