Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Whats the difference between the www and public_html folder?

Discussion in 'General Discussion' started by Envision5000, Nov 18, 2005.

  1. Envision5000

    Envision5000 Active Member

    Joined:
    Jul 5, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    Whats the difference between the www and public_html folder?

    There has to be a reason for the 2 folders to exist?
     
  2. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    www is not a folder, its just a symlink that points to the public_html folder. Looks like this is just there to make things a little more simpler for those that might be confused where to put their webdocs.
     
  3. Envision5000

    Envision5000 Active Member

    Joined:
    Jul 5, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    But when I ssh into the www folder it gives me colorfull words. Public_html does not do that
     
  4. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    318
    The color is because it is a symlink.

    Go to:

    /home/username/

    And then type:

    ls -la

    You will then see the www listed showing what it links to. The www folder is just a link like the icons on a windows desktop.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Envision5000

    Envision5000 Active Member

    Joined:
    Jul 5, 2005
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice