Hi All,
I am using dreamweaver and have apache, php and mysql installed in order to help me develop my sites.
I'd like to be able to set up a testing server and at the moment have a folder G:\ApacheServer as my default server folder for PHP.
If I want to make a new site I add a folder to this path and start creating it inside that folder. Example: G:\ApacheServer\MySite.
What I'd like to be able to do though is create a folder that allows me to have a www folder inside that. Example: G:\ApacheServer\MySite\www\.
This way I can put my site files inside the www folder and any php files containing passwords outside the root folder like G:\ApacheServer\MySite\ folder in order to keep it secure.
How does one go about setting this up so that I can access files outside the www folder in dreamweaver. At the moment in the Edit Sites of dreamweaver under the Local Info tab I have G:\ApacheServer\mysite\www\ as the Local Root Folder.
The problem is that I only see inside this folder in the Site Files tab in dreamweaver and I cannot access any files in the G:\ApacheServer\mysite.
I hope I have made sense...i apologise if it sounds like gibberish as it is late. I'm interested in doing more developing and need to get into more standard practises but I'm not sure where to start.
Any pointers?
Brad
Setting up Dreamweaver Site to test development?
Moderator: General Moderators
Setting up Dreamweaver Site to test development?
Last edited by bradles on Mon Nov 01, 2004 11:55 pm, edited 1 time in total.
Ok...I thought I had this figured but for some reason I don't think I am doing this right.
I have set up a site with the following options:
LOCAL INFO
Local Root Folder = G:\ApacheServer\printedvisions\
Refresh Local File List Automatically = ticked
TESTING SERVER
Server Model = PHP MySQL
Access = Local/Network
Testing Server Folder = G:\ApacheServer\printedvisions\www\
Refresh Remote File List Automatically = ticked
URL Prefix = http://localhost/printedvisions/www/
So I have a site in G:\ApacheServer\printedvisions\www\ so I can put the database in the root directory G:\ApacheServer\printedvisions\ and that way users won't have direct access to it. The main index.php runs from G:\ApacheServer\printedvisions\www\
For some reason when I press F12 in dreamweaver to preview the page it creates a www folder inside G:\ApacheServer\printedvisions\www\ and puts TMPa53gj6jeg5.php in it...of which I believe is the file created by dreamweaver to show.
So the address bar shows http://localhost/printedvisions/www/TMPa53gj6jeg5.php
In theory I shouldn't be able to see behind the www but if I change the address to run a test file I put in the directory root, it runs. Example: http://localhost/printedvisions/test.php
Shouldn't this be impossible?
Am I doing something wrong? Or won't this matter when I upload it to my remote server?
Brad
I have set up a site with the following options:
LOCAL INFO
Local Root Folder = G:\ApacheServer\printedvisions\
Refresh Local File List Automatically = ticked
TESTING SERVER
Server Model = PHP MySQL
Access = Local/Network
Testing Server Folder = G:\ApacheServer\printedvisions\www\
Refresh Remote File List Automatically = ticked
URL Prefix = http://localhost/printedvisions/www/
So I have a site in G:\ApacheServer\printedvisions\www\ so I can put the database in the root directory G:\ApacheServer\printedvisions\ and that way users won't have direct access to it. The main index.php runs from G:\ApacheServer\printedvisions\www\
For some reason when I press F12 in dreamweaver to preview the page it creates a www folder inside G:\ApacheServer\printedvisions\www\ and puts TMPa53gj6jeg5.php in it...of which I believe is the file created by dreamweaver to show.
So the address bar shows http://localhost/printedvisions/www/TMPa53gj6jeg5.php
In theory I shouldn't be able to see behind the www but if I change the address to run a test file I put in the directory root, it runs. Example: http://localhost/printedvisions/test.php
Shouldn't this be impossible?
Am I doing something wrong? Or won't this matter when I upload it to my remote server?
Brad
I always found that when using DW that I never used it's own preview for php pages, I always had a seperate browser window that I kept refreshing to avoid all those tmp files that DM likes to make.
I don't have dm on my current machine so I can't run through the set up myself or I would to help solve your problem.
try playing with the file paths just a bit to see if it can't be elivated as well.
I don't have dm on my current machine so I can't run through the set up myself or I would to help solve your problem.
try playing with the file paths just a bit to see if it can't be elivated as well.