What is the path for GoDaddy?

3 replies
  • WEB DESIGN
  • |
The path for including SSI files differs from hosting company to hosting company. However, you can usually find this information easily, but I can not for Godaddy hosting.

One example is:
Code:
<?php include('/var/www/vhosts/website.com/httpdocs/header.html')?>
Does anyone know the path when using Godaddy Linux hosting?

Thanks in advance.
#godaddy #path
  • Profile picture of the author Mohsin Rasool
    Hi Barbara,

    If i understand you correctly you are trying to find the actual server path for the files on your godaddy server?

    What about creating a php file and put some code like below and access that file...
    and it will output the path for that server...


    echo $_SERVER['DOCUMENT_ROOT'];
    {{ DiscussionBoard.errors[2217337].message }}
    • Profile picture of the author Barbara Eyre
      Mohsin,

      Thank you for that tip.

      The client will be doing his own hosting via Godaddy, so I have to wait for him to create his hosting account and buy the domain name ... but was hoping to have the site files coded correctly by the time he did that.
      {{ DiscussionBoard.errors[2217547].message }}
  • Profile picture of the author Steve Wells
    Originally Posted by Barbara Eyre View Post

    The path for including SSI files differs from hosting company to hosting company. However, you can usually find this information easily, but I can not for Godaddy hosting.

    One example is:
    Code:
    <?php include('/var/www/vhosts/website.com/httpdocs/header.html')?>
    Does anyone know the path when using Godaddy Linux hosting?

    Thanks in advance.
    Barbara, if I am not mistaken you are looking for the absolute hosting path. You will only know it once the account is created on Godaddy, but it will be similar to what I have below.

    If you go to your clients "hosting control center" on godaddy once they sign up, it will show up right on the page in hosting account and its titled "Absolute Hosting Path" its right under the domain name associated with the account:

    It will look somthing similar to this, I have changed the words but it will follow the same pattern:

    /home/content/1/2/3/123someword/html
    Signature
    Need Custom Graphics Work? - Message Me For A Design Quote!
    {{ DiscussionBoard.errors[2219116].message }}

Trending Topics