image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Design & Media

Reply
 
Thread Tools
  #1  
Old September 2nd, 2004, 12:49 AM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
alpha2zee is on a distinguished road
Dreamweaver - developing PHP/MySQL site locally

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?
Reply With Quote
  #2  
Old September 2nd, 2004, 05:55 AM
UN*X G33k
 
Join Date: Jun 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
shorty114 is on a distinguished road
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.
Reply With Quote
  #3  
Old September 4th, 2004, 12:29 PM
It all started at 3......
 
Join Date: Feb 2004
Location: San Jose, Costa Rica
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
ian27 is on a distinguished road
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
__________________
http://www.360designstudios.tv
Reply With Quote
  #4  
Old September 4th, 2004, 12:36 PM
It all started at 3......
 
Join Date: Feb 2004
Location: San Jose, Costa Rica
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
ian27 is on a distinguished road
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
__________________
http://www.360designstudios.tv
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 06:43 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.