Skip navigation
Currently Being Moderated

Creating a Testing Server

Nov 21, 2012 3:34 PM

I am using an Apple Mac and Dream Weaver.  I need to use PHP within HTML files.  While I have the Dream Weaver site working with, I am having a difficult time setting up a local test server.  I have installed MAMP and have the Apache and Mysql servers running.  My DreamWeaver file is stored as

User/rnharri/Documents/Sites/S/D/test.php.  When I configure the site I created


Servername: =localtest

Connect using: Local/Network

Server Folder: /Users/rnharri/Documents/Sites/s/d

Web URL: http://localhost/s/d


At first I got "can not find file:" now every time I run the file it it guides me thorugh setting up a local server and executes the HTML code but ignore the PHP code.


Can anyone tell me exactly what the Web URL: should include and how I can test on my mac to make sure the directories are what I am specifying.




  • Currently Being Moderated
    Nov 21, 2012 3:49 PM   in reply to

    I don't use MAMP.  But most Apache testing servers work best if you put your local site files inside the testing server's default folder.




    This way your local site and testing server site are one in the same.  It makes it much easier to preview files locally because all you have to do is Save them.


    If you keep your local site separate from your testing server site, you must PUT files to your testing server folder each time you want to preview. I believe this may be what you're struggling with.


    See this step-by-step tutorial (about half way down the page for MAMP):



    Nancy O.

    Mark as:
  • Currently Being Moderated
    Nov 21, 2012 4:29 PM   in reply to

    It doesn't really matter where you host your files and they can be the same location where you work on them as where you save them even if it's not the default location that Nancy eludes to.  Can you open MAMP and click on preferences and then Apache and confirm the Document Root is the "/Users" path you typed earlier and that MAMP is running when you test files in DW?

    Mark as:
  • Sudarshan Thiagarajan
    4,000 posts
    Oct 15, 2010
    Currently Being Moderated
    Nov 21, 2012 9:23 PM   in reply to



    MAMP defaults to Applications/MAMP/htdocs folder and considers this as localhost, unless otherwise you've changed the setting.


    You may want to create your site folder within /htdocs and then configure the definition in Dreamweaver. This way, your site will be localhost/s/d and your file path will be htdocs/s/d.


    I use MAMP PRO. But, the setting is more or less similar for MAMP (free version) too.


    Screen Shot 2012-11-22 at 10.52.26 AM.png


    Notice 'Disk Location'. You can change this to your Documents/Sites folder if you prefer working with files from there. Then, restart MAMP. localhost will now point to Documents/Sites folder instead of MAMP/htdocs.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points