Dreamhost document root for private servers
Posted by Matt Thommes on 10/4/2008
I recently switched to Dreamhost PS from a standard Dreamhost shared hosting account for all of my domains. Dreamhost claims the process is seamless and you shouldn't have to make any changes.
However, I noticed one thing, and I thought I'd document it here.
The absolute path to your document root changes when you switch to a Dreamhost PS. This immediately had an effect on all of my domains since I specify that path in top-level htaccess scripts that control content output.
Once the DNS resolved, all of my sites were showing an "internal server error" message.
The old, shared hosting format of my document root used to look like this:
/home/[username]/[domain name]
... where [username] is your Dreamhost username/account name, and [domain name] is the domain name. Here's an example:
/home/joe655/mysite.com
With Dreamhost PS, the format changes:
/mnt/local/home/[username]/[domain name]
Example:
/mnt/local/home/joe655/mysite.com
Dreamhost didn't specify this in any documentation when I converted to one of their private servers. Perhaps it's now listed somewhere, but a nice "word of warning" about this would have been helpful.
Turns out this is a relatively small change to make, but depending on how many places you specify that path, you may have a lot of tedious pasting to do.
Comments 
Comment preview:
Need help, or have a tip that could help someone else?
Email: remedy@paininthetech.com
Twitter: @paininthetech
Pain in the Tech is:
Recent Comments 
- jw on Integrate SMS in your web application using TextMarks
- gary on Backing up SMS: how do you do it?
- look on VLC media player for versatile listening and watching
- Brett on Using Paths to create smooth, rounded corners in Photoshop
- Mike on How to back up a DVD
Recent Tweets 
- MySQL add 2 hours to NOW, and format for datetime field: FROM_UNIXTIME(UNIX_TIMESTAMP(NOW()) + 7200, '%Y-%m-%d %H:%i:%s'). Got a better way? (4 hours, 14 minutes ago)
- Just discovered Remember the Milk smart lists! Useful for cross-organizing to-do's between different lists and tags. (5 days, 3 hours ago)
- explore the (1 week, 4 days ago)