what is the differences between public_html and www folder in cpanel?

Welcome to our community

Be apart of something great, join today!

jeanette

Newbie
Messages
1
Reaction score
0
Points
0
Hello, 

in these folders I have the same content and which is the real one and which one should I migrate?
 
  • Advertisement
  • Helsa

    Newbie
    Messages
    17
    Reaction score
    0
    Points
    0
    www is a symbolic link to public_html for this reason you see the same content in both.
     

    geniushost 

    Premium Member
    Messages
    38
    Reaction score
    2
    Points
    17
    The www folder is a direct access to the public_html folder, I recommend not to delete this access since it is used so that your site shows the same content when consulted with or without www. it is managed internally by your cpanel.
     

    MilesWeb

    Newbie
    Messages
    41
    Reaction score
    0
    Points
    6
    Hello, Jeanette:

    On our server, the public_html directory is where your website's default files are pulled from. The www directory is simply a symbolic link to the public_html one. So anything you place in either directory will be identical when viewed from the other directory on the server.
    If you have a local site setup, and all of the site files are in a directory called www, simply opening up that directory, and then uploading all of those files to the public_html directory on our server should be all you need to do.
    You'll need all of your local site files on the server, so I'd recommend any that you're seeing in your local www directory get uploaded to the server's public_html directory. Or you can put them in the www directory on the server as well, as again this is simply a pointer to the exact same files found in the public_html directory.
    The www folder is a direct access to the public_html folder, I recommend not to delete this access since it is used so that your site shows the same content when consulted with or without www. it is managed internally by your cpanel.
     
  • Advertisement
  • Terresce

    Newbie
    Messages
    3
    Reaction score
    0
    Points
    0
    Cpanel have alias set to point public_html to www ..both show the same files its just the mirror image this things are done for the apache config that cpanel uses ..so no need to worry about this one.
     

    Advertisement

    Top