Skip to main content
May 9, 2008
Question

Issues setting up database connections in DWCS3

  • May 9, 2008
  • 1 reply
  • 445 views
Hi there,

I am experimenting with dynamic sites in DW, and I keep running into a problem. Whenever I try to create a MySQL connection, I get this 404 error:

1) There is no testing server running on the server machine.
2) The testing server specified to this site does not map to the http://127.0.01/_mmServerScripts/MMHTTPDB.php URL. Varify that the URL prefix maps to the root of the site.

I am running XAMPP (yes, it's on!) and DWCS3 on a Mac.

Advice, anyone? I've been all over the web with this and nothing I've tried has helped. Thanks loads!
This topic has been closed for replies.

1 reply

Inspiring
May 9, 2008
bec_wilson wrote:
> 1) There is no testing server running on the server machine.
> 2) The testing server specified to this site does not map to the
> http://127.0.01/_mmServerScripts/MMHTTPDB.php URL. Varify that the URL prefix
> maps to the root of the site.
>
> I am running XAMPP (yes, it's on!) and DWCS3 on a Mac.

XAMPP on a Mac? You like living dangerously. The front page of the XAMPP
site has this warning: "This version of XAMPP is still in the first
steps of development. Use at you [sic] own risk!"

If you want an all-in-one PHP/MySQL installation for a Mac, you're on
much safer ground with MAMP ( http://www.mamp.info/en/mamp.html).

Now, to your problem. Setting up a testing server is very simple. The
site must be inside the Apache DocumentRoot. The location of the
DocumentRoot depends on whether you're using XAMPP, MAMP, or the default
version of Apache that ships with Mac OS X. However, assuming you're
using either XAMPP or MAMP, it's a folder called htdocs. Your site must
be in a subfolder of htdocs.

The values of Testing server folder and URL prefix in the Dreamweaver
site definition should both point to the same place. The first is a
physical path; the second is a URL to the same location.

So, in the Testing server folder field, put /path/to/htdocs/mysite (use
the real path, not these actual words). In the URL prefix, put
http://localhost/mysite/.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
May 9, 2008
I will try MAMP as opposed to XAMPP, but I have had XAMPP running a testing server wonderfully for months. I double-checked all the paths, etc, and everything looks to be correct.

So, assuming that my local server is running (which it is), and the folders are there, and the file paths read what I assume to be correct (pointing to the htdocs folder), why would DW throw this error?
May 9, 2008
I uninstalled XAMPP and am now using MAMP. Tested it, it seems to be working fine. But now when I try to connect to a database, I get a 403 Forbidden! Please help? Thanks!