Skip to main content
Participating Frequently
Mar 23, 2017 8:17 AM UTC
Question

Issue with testing server, mamp pro, dreamweaver 2017

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 is closed to new replies. Start a new post to keep the conversation going.

16 replies

BenPleysier
Community Expert
Community Expert
Mar 23, 2017 9:03 AM UTC

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

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participating Frequently
Mar 23, 2017 11:12 AM UTC

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

Translate
BenPleysier
Community Expert
Community Expert
Mar 23, 2017 11:31 AM UTC

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.

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