Server root


#1

I have been looking all over the wiki and site for info on this but cannot find it anywhere. does the dreamhost server root look like this:

/home/content/u/s/e/username/html/mydomain.com

if not which i dont believe it does what is the correct root?


#2

/home/username/domain.com/

Where username is the name of the user who ‘owns’ your domain. (check in the panel > Domains > Manage Domains > Edit) and domain.com is the name of the folder you place your site files in.

–Matttail
art.googlies.net - personal website


#3

Thanks!


#4

The foolproof way of getting this information (if you are using PHP), is to use this:

$path = $_SERVER['DOCUMENT_ROOT'];That variable should be available on any Apache-based system.


Simon Jessey | Keystone Websites
Save $97 on yearly plans with promo code [color=#CC0000]SCJESSEY97[/color]