Here's some basic instructions on setting up a server on your localhost -
this is assuming you're using a Mac with OS X 10.2 or later.
Your mac comes with the Apache webserver already installed on your machine. To turn it on, go to your System Preferences and choose the Sharing section under Internet & Network.
Inside Sharing there is a section for network services that can be turned on. Checking the box for Personal Web Sharing should turn on the webserver.
To test, open a browser and go to http://localhost/
If you see a web page with the Apache logo on it, you're golden.
Now that you have your local/test webserver running we need to do some additional setup for using the templates with them.
For the templates to work on your localhost, we need some additional template files that are on the server.
First create a directory/folder to store these files.
Through the finder open Library:WebServer:Documents and create a folder called 'unlpub'
Next, we need to copy some files into that directory... you can get these files from ftp://devgroup:email@example.com/
(Clicking that link from within the Safari browser should mount the ftp site so you can access the files within the finder... if you aren't using or don't want to use Safari you can go to the finder and choose Go, Connect to Server, and type in ftp://devgroup:firstname.lastname@example.org
Copy the templatedependents folder to the unlpub directory you just made on your machine. [NOTE: This step should be done periodically to update your localhost otherwise your pages could render different on your localhost than on your main server! Keep your files up to date!!!!]
In addition to having the files on your local hard drive, the apache webserver runs as a separate user which needs permission to read those files.
Through the finder, choose the /Library/WebServer/Documents/unlpub directory and select Get Info (Apple+i). Expand the Ownership and Permissions area and make sure that under the Details, Others (which the apache webserver would fall under) have 'Read Access'.... then choose Apply to enclosed items.
Now your local webserver ~should~ be ready for testing your files with the templates.
should bring up a web page with one directory in it called templatedependents).
Now you can place your files in the local root and view them through your localhost address.
In case you haven't figured it out already, the root of your local webserver is the folder on your hard drive /Library/WebServer/Documents/ and anything you place in there will be served out on the Internet. For ease of use you can always type in the address 'localhost' to get to your local web site ---- but keep in mind this is a special web address that points to your (THE) local machine. Which means you won't be able to send someone an address like http://localhost/index.shtml
, and have them take a look at your web page index.shtml. Externally accessible addresses are kinda outside the scope of what I'm trying to explain here, as this is to be used for local testing of the templates only.... if you're interesting in understanding more details about setting up publicly accessibly website, chat with someone about it.
Anyways, now that we've got your machine set up for testing the templates now let's move on to Dreamweaver:
For instance, say I'm working on the http://www.unl.edu/webdevnet/
Within Dreamweaver my Site is configured to locally store my files in the directory /Library/WebServer/Documents/webdevnet/
and my remote site is set up with my logon information to store my files in
So now I can test my file index.shtml by going to http://localhost/webdevnet/index.shtml
and once I have it ready, I'll put it to the server and it will be live as
Did it work?
Now, there may be some additional details I've forgotten about the default configuration of Apache, and some manual configuration we need to do... if this doesn't work, let me know and I'll revise this with the additional details needed.
(mime.types, adding .shtml? Options +Includes? can't quite remember as it's been a while)... Good luck.
As always, if anyone has additional comments please share.