Dreamweaver - developing PHP/MySQL site locally

alpha2zee

Registered
I am trying to develop a PHP/MySQL-based website using Dreamweaver MX 2004 on a Mac OS X (10.3.5) machine which also runs Apache 1.3, MySQL 4 and PHP 4.3. I use the Mac as an admin user.

I start by making a new folder ('mysite') inside the webserver root folder (Library/Webserver/Documents, or Users/'username'/Sites; I have tried both locations). Then I start Dreamweaver > Sites > Manage sites > New site... and set 'local root folder' by browsing to the 'mysite' folder. Then I set 'remote folder' for 'local/network' access by browsing to the same 'mysite' folder. Then I set the testing server location as the webserver root folder. I have tried both 'localhost' and '127.0.0.1' in the URL field.

But when I am 'done' with the site management panel, Dreaweaver shows me a message saying '...could not set up local folder...' or '...local folder does not exist...' or 'remote folder does not exist...'

What am I doing wrong? Can local and remote folders be not the same? Is it a file permissions issue?
 
I have done this, although I stopped a little bit after getting MySQL working. I found hand-coding PHP much easier.

My recommendation would be just to use the /Library/WebServer/Documents folder, but you can go your way. Try it via the Advanced menu.

I left the Remote panel at Remote Server: None. The Remote folder was empty on mine. My PHP and my MySQL worked.
 
I think I had something similar when I first tried setting it up in DMX. I think the problem might be locating your testing folder. I had to put any of my dynamic sites into my user "sites" folder and then set the testing server to /127.0.0.1/~users_folder_name/my_website_folder_name/

Ian
 
Oh yeah, and I don't bother setting a remote folder when working on a local server. I just leave this set to none.

Ian
 
Back
Top