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

Our discussions on Web Hosting that will tell you everything you need to know. Find advice, questions and answers on the who's, what's, when's and where's of the Web Hosting world.
Post Reply
jeanette
Newbie
Posts: 1
Joined: Fri Sep 29, 2017 9:49 am

Fri Sep 29, 2017 9:52 am

Hello, 

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


User avatar
Helsa
Junior Member
Posts: 17
Joined: Wed Sep 17, 2014 9:23 am

Fri Sep 29, 2017 9:54 am

www is a symbolic link to public_html for this reason you see the same content in both.
User avatar
geniushost
Junior Member
Posts: 22
Joined: Mon Nov 13, 2017 1:34 pm

Wed Nov 15, 2017 2:07 pm

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
Junior Member
Posts: 36
Joined: Fri Nov 17, 2017 6:57 pm
Location: Nashik

Wed Nov 22, 2017 8:40 pm

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.
Terresce
Newbie
Posts: 3
Joined: Fri Jan 19, 2018 4:33 pm

Fri Jan 19, 2018 5:14 pm

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.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests