Skip to main content
Participating Frequently
March 23, 2017
Question

Issue with testing server, mamp pro, dreamweaver 2017

  • March 23, 2017
  • 1 reply
  • 1579 views

Hi,

I'm on Windows 10 running Mamp Pro for Windows. To preview a site I normally go to "http://domain/", however I'd like to setup a local testing server so I can use the real time preview in Dreamweaver as it seems useful. The document root set for my domain in Mamp Pro is "C:\Users\Name\Documents\Dreamweaver\domain". This is also where my local files are kept.

However, it's not working for me. When I preview a page it pulls the file url (C:\Users\Name\Documents\Dreamweaver\domain\wp-content\themes\mytheme\contacts.php) rather than the web url that I'd normally visit (domain/contacts) which I think is the issue -- though I'm not really sure.

Does anyone have any ideas what might be wrong?

Cheers

This topic has been closed for replies.

1 reply

BenPleysier
Community Expert
Community Expert
March 23, 2017

If your server is running, then your sites address will be localhost or 127.0.0.1. The URL would therefore read

http://localhost/sitename or

http://127.0.0.1/sitename

a link to contacts.php would read

http://localhost/sitename/contacts.php or

http://127.0.0.1/sitename/contacts.php

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participating Frequently
March 23, 2017

Thanks for your reply,

Actually that isn't the issue I'm having. I have a unique host name setup for each of my websites -- i.e., to get to "mywebsite" I visit "http://mywebsite/" not "http://localhost/mywebsite/".

The issue I'm having is that the Dreamweaver preview isn't working -- when I debug it I see it's trying to load "C:\Users\Name\Documents\Dreamweaver\domain\wp-content\themes\mytheme\contacts.php" http://mydomain/wp-content/themes/mytheme/front-page.php?v=513 into the iframe which I think is incorrect but I'm not certain about that and unsure how to fix it.

Cheers

BenPleysier
Community Expert
Community Expert
March 23, 2017

Sorry, but that is a remote server. I thought that you wanted a local testing server.

I am not sure, but I do not think that Real-time Preview works with a remote server due to all sorts of security problems that this causes. I could be wrong in this.

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