Home
 

Customer Support

Search for keywords:

Browse by category:

What is the real full path to my home directory?

If you need this information for a PHP, CGI or other script, crontab, or shell/ftp prompt, the full path to your home directory is "/" (without the quotes) and the full path to your web documents is "/htdocs/www". The root directory is your home directory.

Read on for a different answer only if you a) need the real full path to your homedir for use with .htaccess/htpasswd files or Server Side Includes; or b) are reading Sbox error messages, which report full paths as described below. If you are NOT doing either, then the full path to your home directory is: /


  1. If you do not have your own domain and you are using a subdomain of modwest.com like "mysite.modwest.com" then the true path to your home directory is:

    /www/subdomains/modwest.com/[first letter of yoursite]/[yoursite]/

    For example, if we are hosting "mysite" for you (http://mysite.modwest.com or http://www.mysite.modwest.com) then the true full path to your home directory would be:

    /www/subdomains/modwest.com/m/mysite/

    Remember that your web files are only served from the htdocs/ subdirectory under your home directory.

  2. If you are hosting a 2 level international domain that ends in something like ".co.uk", "co.nz" (or any other one with a 2 part tld) then the true path to your home directory is:

    /www/international/[2nd part of tld]/[first letter of your domain]/[yourdomain].[1st part of tld]/

    For example, if your domain is yourdomain.co.uk (http://yourdomain.co.uk or http://www.yourdomain.co.uk) then the true full path to your home directory would be:

    /www/international/uk/y/yourdomain.co/

    Remember that your web files are only served from the htdocs/ subdirectory under your home directory.

  3. Otherwise, if you are hosting a regular domain with us like example.com, example.cc, example.org, example.info, etc, then the path would be:

    /www/vhosts/[first letter of domain name]/[fully qualified domain name]

    For example, if your domain is example.com (http://example.com or http://www.example.com) then the true full path to your home directory would be:

    /www/vhosts/e/example.com/

User-Contributed Notes

add a note
10-Jul-2007 22:32
If you run a script from cron, your script may pick up a server
environmental variable of 'HOME' that is set to the full path to your
homedir as Apache sees it. (It has nothing to do with Apache, just that
CronD needs to know the real full path to your home same as Apache does
if it is to do its job right.

add a note

Related Questions:


Why does it say "directory not empty" when I try to remove a directory?

How do I create subdomains?

How do I get telnet or SSH access to the server?

Where do I put my webpages and files?

How do I upload and edit my files?

Can I have a catch-all subdomain?

Why do I keep getting old copies of my pages when I just updated and changed my files?

How do I change my password?

When will my site be activated?

How do I get to one of my subdomains from a temp.modwest.com or secure.modwest.com URL?

Can I switch my domain name or alter my administrator username?

How do I recreate the "_" symlink that directs mydomain.com to www.mydomain.com?

Why do I Get an Error Page When Accessing Webmail with Internet Explorer?

What kind of resource limits do you have for your shared hosting environment?

Can I display a "Secured by RapidSSL" seal on my site?

Browse Categories:

Getting Started, FTP, Telnet/SSH, Moving Domains, E-mail, Traffic Reports, Mailing Lists, Apache, PHP, CGI, Other Server-Side Scripting, MySQL Database, Imaging Libraries, Other Software, Billing & Terms, Control Panel, E-commerce, Pre-Sales


Tiny Modwest Logo         Copyright 2000-2008 by Modwest, Inc.          About Us    |    Blog    |    Jobs    |    Web Design    |    Contact Us