Click to See Complete Forum and Search --> : HTTP not starting


woodyak
08-15-2001, 04:31 PM
HTTP doesn't start on a clean install of RedHat 6.2. The message reads "httpd: cannot determine local host name. Use the ServerName directive to set it manually." What do I do?

woodyak
08-15-2001, 04:46 PM
Nevermind. I needed a static IP address. It doesn't work with DHCP.

ferrol
08-15-2001, 05:17 PM
Yer it does

Just set ServerName to localhost then restart it it should be fine

tecknophreak
08-15-2001, 06:15 PM
That should be in linuxconf if you don't know that already

Rob 'Feztaa' Park
08-15-2001, 09:51 PM
I had this problem myself, the solution for me was simple (not sure if this will help you).

If, during the install, you specified a hostname that doesn't actually exist (if you're a home user and your ISP doesn't give your IP a hostname), then you can solve this problem in two ways:

1. get a service like DynDNS to give you a hostname, and set your machine's hostname to that.

or

2. put your machine's hostname and ip address into /etc/hosts

The problem with #2, though, is that Apache will report it's hostname incorrectly in any error messages that it gives to users. For example, when I was using solution #2, people would access my website at feztron.mine.nu, but if they got a 403 error (from snooping where they shouldn't be... :), Apache would say it was running on feztron.ed.shawcable.net, but if anybody tried to go there it wouldn't let them. Then I discovered solution #1 :)

Hope this helps.