Click to See Complete Forum and Search --> : Can't find server or DNS error


Anon
09-01-2001, 09:00 AM
When I ran the PHP scripts under the HTTP://localhost after I had started APACHE server, the IE showed "Can't find server or DNS error" ,but MS-DOS command line showed the APACHE was OK as "APACHE/1.3.20 (Win32) PHP/4.0.6 runing"
THE OS is Win98 SE and PWS has been diabled.

PLEASE give me any advice!
Thanks

mithril
09-01-2001, 01:51 PM
Try making sure you add the tailing slash to the URL (ie. http://localhost/) since IE can sometimes be twitchy about little details like that. Or, just use Netscape or Mozilla....... I've never had them give me troubles over something as straight-forward as a localhost URL..... IE on the other hand.... well, IE just plain sucks either way. HTH.

geoff

Anon
09-01-2001, 09:26 PM
I have tried HTTP://localhost or http://127.0.0.1 , both don't work.
PHP WORKED as a module.
did the DNS need any configuration?

mithril
09-01-2001, 11:50 PM
You're still getting that error message even adding the trailing slash? Basically, the webserver/browser needs to do an extra lookup if you provide the URL without that slash, and I've found that it sometimes breaks IE. Do you get the same sort of error using a different browser like Netscape? Finally, and this will sound stupid so accept my apologies in advance, is Apache started? You can look in your hosts and lmhosts files (probably in c:\windows\system\drivers\etc) to make sure that a localhost entry does exist, but localhost is usually added by default so I doubt that's your problem. HTH.

geoff

Anon
09-02-2001, 03:11 AM
The error occured because I edited the httpd.conf instead of http.default.conf , so the problem has been resolved.
Thank you all!