Cpanel directory question

Discussion in 'Site & Server Administration' started by cyclo394, Feb 5, 2008.

  1. #1
    I have a question, maybe someone can help me out. I want to install wordpress on a domain. I've done this before and it was accessible on the web, however, I don't know if I did it the proper way.

    Below is my directory info and the Wordpress installation instructions.

    It appears that I just want to leave the field blank and the wp theme will be installed on the root directory. But I keep seeing that my files should be in public html so they be can accessed on the web. Is my public_html a category within my root directory and when the wp theme uploads to the root directory it is automatically available in the public_html?

    Any clarification would be much appreciated. Thanks.


    WWW Directory /home/username/public_html
    Root Directory /home/username

    Install on domain mydomain.com

    Install in directory blank field

    Leave empty to install in the root directory of the domain (access example: http://domain/).
    Enter only the directory name to install in a directory (for http://domain/name/ enter name only). This directory SHOULD NOT exist, it will be automatically created!
     
    cyclo394, Feb 5, 2008 IP
  2. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #2
    /home/username is your User root directory. While /home/username/public_html is your User's web root directory.

    Ok, far as WordPress themes goes, those don't go in either root. Those should be installed inside /wp-content/themes/ . Maybe you mean, I want WordPress installed to be the HomePage? If so, yes you did it right by leaving it blank. So when you go to www.domain.com , WordPress will show.
     
    shallowink, Feb 5, 2008 IP
    cyclo394 likes this.
  3. cyclo394

    cyclo394 Peon

    Messages:
    305
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Shallowlink,

    Thanks for taking the time out to help me with this, much appreciated.

    Yes you are correct, I am attempting to make a WP theme my homepage.

    In regards to what you typed, which is below bolded. You are saying that I personally have a root directory and the public_html is just accessible to the visitors of my sites, that is what they can see on my website?

    /home/username is your User root directory. While /home/username/public_html is your User's web root directory.
     
    cyclo394, Feb 5, 2008 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    Yes, anything above /public_html should not be visible by web users. It is your user account's directory on the webserver(usually a unix/linux system). Any files placed there the webserver if configured properly will not display or serve them.
     
    shallowink, Feb 5, 2008 IP