Click to See Complete Forum and Search --> : Web server problem


Candy
06-30-2000, 03:00 AM
I'm currently working through some tutorials on PHP and MySQL.
I installed the latest version of Apache. But when I went to Netscape to see if the server (localhost) was running OK it gave me the following errors...

Error #1
"Warning, the following hosts are unknown:

home.netscape.com
home6.netscape.com
internic.com

This means that some or all hosts will be unreachable.
..."

Error #2
"Netscape is unable to locate the server keyword.netscape.com.

Please check the server name and try again"

I installed the newer version of Red Hat but still got the same result.

Is there something simple I am missing???
Please help.

Thanks

Dexter
06-30-2000, 05:05 AM
I would help you but I am not 100% sure and I don't want to lead you in the wrong direction. However, if you check here (http://www.linuxnewbie.org), you may get a quicker response.

furrycat
06-30-2000, 01:38 PM
The first message is just telling you that DNS isn't working. The second is Netscape trying to be quote helpful. Because DNS isn't working Netscape can't find localhost. Because Netscape can't find localhost, Netscape tries to initiate a query on the string "localhost" at keyword.netscape.com. And because DNS isn't working, Netscape can't do that.

You're going to have to get DNS working but you should also edit the file /etc/hosts and put in a line like this:

127.0.0.1 localhost

The /etc/hosts file is consulted before DNS queries are made to resolve hostnames. You can also put in other addresses viz:

212.23.10.116 goblin.furrycat.net goblin

This would allow you to type just http://goblin/ in Netscape without having to lookup the address in DNS. Useful, but it can cause problems if the real address changes or a real host called goblin pops up...