Skip to main content
Participant
May 11, 2010
Question

Dreamweaver could not find the server "localhost"

  • May 11, 2010
  • 6 replies
  • 42168 views

Win7,32bit, Dreamweaver 5, xampp 1.7.3  (worksfine, http://localhost/xampp/index.php)

I want to make a site and therfore i have a small timetest.php  script.

The script is inside the local folder.

c:\xampp\htdocs\php_test\timetest.php

I defined the site with the following parameters

Site Name :  php_test

Local Site Folder : c:\xampp\htdocs\php_test\

Servers:

Server Name : testing

connect using: local/Network

Server Folder:  c:\xampp\htdocs\php_test\

Web Url:  http: //localhost/php_test/

Advanced Settings:

Local Info:   Links relative to      Site Root

The problem is that DW5 always saying : server localhost  not found-

Internet browsing is ok, and the localhost server is working normal.

Please help.

Thank you very much.

Server Not Found

The page "http://localhost/php_test/timetest.php" was not loaded because Dreamweaver could not find the server "localhost". Please make sure you are connected to the internet and the server name is correct.

This topic has been closed for replies.

6 replies

January 23, 2013

I had the same problem. Turns out i had to change my "Web URL:" to "http://localhost/" for some reason (i don't know why) it had changed mine to just "http://". And i think you have to change yours 1 folder up to just "http://localhost/" because now it's looking for a folder "php_test/" inside "http: //localhost/php_test/" what would make it "http: //localhost/php_test/php_test/" and that folder doesn't existe. Just keep it "http://localhost/" and it should be fine.


Also make sure as (as posted above) that testing server is active, connection set to local/network and address set to your web servers root folder (remote can be active but is not necessary for this problem).

Let me know if that solves it!?!

PS: If that doesn't work you can try to change the "Web URL:" to your active IP adres.

              http: //"your ip adres"/              Without the quotes

March 29, 2012

I had the same problem.  What is strange is I have been using Dreamweaver for 4 years now.  On my present windows 7 system I did not encounter this problem until last night.  I have read that it could be the firewall blocking the local preview. I "allowing" the Dreamweaver software in Norton but that did not help.  One other post I read said to go to manage sites, edit your site, then to test server, then change the test server folder location to go one level deeper into the directory path.  I did that by going to my images folder.  This worked for previewing the pages but then all the pages that can be view in the right panel in dreamweaver were gone.  What I actually could see in the panel to the right in dreamweaver was everything in my Images folder.  What I finally did was to change url prefix block from the original "http://localhost/" to hard code the entire directory path to the root directory level as follows:   file:\\\c:\Users\jimjl\website\myrootdirectory\

This worked for me.  What bugs me the most is why the problem after all this time.  I am using Dreamweaver CS3.

joaosilvapt
Participant
December 15, 2010

My problem is already diagnosed.

The Apache Server is configured to manual start, and I like it so.

That way, when I launched Dreamweaver in a PHP page, it looked for the Localserver and obviously didn't find it.

The action of lauching PhpMyAdmin automatically started Apache.

And then, Dreamweaver worked fine.

PHP is a CGI script and application. It works in the server side. So, we must have one server started.

Thanks for your answers.

If you need some  help just ask.

PS: The PHP Site must be in the folder WWW from WAMP

        Or in the folder HTDOC from XAMPP

December 15, 2010

I had this problem too, and it had nothing to do with DW. Check your firewall. You're likely blocking Dreamweaver from accessing 127.0.0.1. I use ZoneAlarm, and it was blocking DW from accessing localhost, preventing the loopback. It was also blocking DW from acting like a server, preventing downloads from updates, etc. The block was happening at the application level, so you may be missing it if you're looking at inbound/outbound traffic on your firewall.

June 7, 2010

I'm probably the last person who should offer to help, since I'm having similar problems. However, in my research of tutorials, I see advice to "check Links Relative to Document" rather than "Links relative to Site Root".  Hope that helps. Meanwhile, I hope someone can help me.

joaosilvapt
Participant
June 26, 2010

I have just the same problem and your sugestion did not help. That is not the problem. Curiously my problem is too with a php test site. Dreamweaver doesn't recognise the testing site even, because it can't find localhost server.

I'm noticing a problem with CS5 that I didn't with CS4. At least the applications I am using more for the moment are frequently stopping, with that nice and always desired message from windows that the application stopped working and Windows is trying to find a solution for the problem. InDesign and Dreamweaver are frequently doing this.

So, one more with that same problem with Localhost and asking for a solution if somebody can help.

BenPleysier
Community Expert
Community Expert
June 27, 2010

Make sure the following has been set inSite Setup

I hope this helps

Ben

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participant
May 12, 2010

If i open the testtime.php in firefox or ie

everything works fine, but in liveview there is

always an error e.g.

an unknown error occured while dynamically -resolved ..

Please help.

Thank you very much.