The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

correct location of files

Discussion in 'General Discussion' started by cr4u, Oct 20, 2013.

  1. cr4u

    cr4u Registered

    Joined:
    Jun 4, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Installed website for main domain and placed files directly in to public html and all worked OK.
    Created add on domains which installed folders for each domain in to public html.

    Is this correct to have main domain directly in public html (not in it's own folder) and the add on domains in their respective sub folders?

    All seemed OK until I uploaded files in to the add on domain folders. This appeared to replace the website on the main
    domain and it all got screwed up.

    On reflection, I think I must have used the same database for 2 different sites but would like to confirm the correct file locations before doing it again.

    Thanks
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, that's correct.
     
  3. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Account's main domain's webroot is /home/CPANELUSERNAME/public_html.
    If you create an addon domain cPanel suggest a subfolder of public_html, but you can change that. For example you can use /home/CPANELUSERNAME/addondomain.com.
     
  4. cr4u

    cr4u Registered

    Joined:
    Jun 4, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Thanks you

    - - - Updated - - -

    Thank you that's good to know
     
Loading...

Share This Page