My setup is as follows:
Operating System:
OS X Tiger 10.4.3
Processor:
Dual 2 GHz Dual Core G5
Memory:
2.5GB
Using:
Dreamweaver 8
If you are a website designer and have recently switched from Windows to a Mac, you probably want to read on. This article details my experience of getting Macromedia Dreamweaver to preview websites on new Mac just as it did on my PC. Specifically, this relates to the ability (or should I say inability?) of the Mac platform to use the browser preview function if you use absolute pathnames like I do.
As I already mentioned, this is really directed to website designers, particularly those who maintain several sites. If you work only with one site, then the Mac is ready to work for you right out of the box.
I’m assuming that you’re familiar with how the browser preview function works on a PC. You press F12 and see what the page you’re working on will look like in your default browser minus any dynamic content. Structure is pretty accurate and the page shows the images, Flash files or whatever else even if you use absolute path names.
This is NOT the case with OS X and Dreamweaver. I go back to approximately 20 sites on a fairly regular basis. I assumed that my transfer to a Mac would be relatively painless, and thankfully it has been, with the exception of setting up Dreamweaver for previewing. I found it next to impossible to find all of the information I needed in one place on the web, and I hope that my documentation can prevent someone else the frustration I experienced when I first set up my Mac for web design.
The instructions below outline setting you’re your folder structure; configuring Apache, your local host, and Dreamweaver; and turning Apache on. I’ve created a client named Foobar for my example below.
Firstly, as far as I can tell, you must have the websites you are maintaining in the Users/YOUR USERNAME/Sites folder if you want to eventually be able to preview with absolute pathnames working.
On a PC, you can save your website files wherever you’d like – in [My Documents], or a file you name yourself, for example. You just need to point Dreamweaver in that direction and you’re ready to preview. On a Mac, your computer is a server, which has many benefits but requires a lot of setup if you’re maintaining multiple sites. The first step is setting up your folder structure.
Your websites must be stored in the Users/YOURUSERNAME/Sites folder. You can create whatever sub-directories you need in the sites folder, but you must start there.
This is the file path I would use for my Foobar client on my Linear Design account:
Users/lineardesign/Sites/clients/foobar/projects/website/content
Once you’ve set up your directory – congratulations! You’ve just completed the easy part. Take a deep breath and read on.
With a Mac, your computer is your server, and Apache is your pre-installed web hosting software. It’s a great program, and it’s pre-installed, but you have to make quite a few adjustments to make it work with multiple sites.
You’ll need a third-party text editor to modify some config files that need root user access. I found a free one called TextWrangler from Bare Bones. You can download it here: http://www.barebones.com/products/textwrangler/download.shtml
The next steps guide you through the config file adjustments.
You just finished the hardest part! Give yourself a pat on the back.
Now you need to set up your Mac so that your browsers will automatically direct to your local directory should you wish to preview outside of Dreamweaver.
This isn’t much different than setting up Dreamweaver on PC. Finally, a part of this process looks familiar!
This is the last part of the process. If you’ve made it this far, don’t give up now!
Note: You have to turn this off and on again for any changes you made to your httpd.conf file to work.
I hope this information is helpful. Good luck!
by James.
Post filed under: Website Design / View All Posts