Dreamhost document root for private serversPosted by Matt Thommes on October 4, 2008 | Post type: Gain 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:
... where
With Dreamhost PS, the format changes:
Example:
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. About the author(s)Matt Thommes is an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from a suburb of Chicago. Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us. Comments
|
Quick Link to this postTTIP.me/2056 |
I have just suffered the pain from this issue and found the best way to fix it is to go into the phpMyAdmin for your site, export the database, open it in a text editor, find and replace all instances of your servername and re-import it using phpMyAdmin.
For example, my old shared hosting document root was /home/.olenko/myusername/mysite.com
and my new one is just /home/myusername/mysite.com
So I did find and replace for /.olenko/ in the database and just replaced it with '/' (one forward slash). This did the trick.
I've had to do it for about 20 sites so I too would have appreciated a warning beforehand or some sort of automated script to do it for me...
Quick Link to this comment: http://TTIP.me/c5044