Difference Between The "public_html" and "www" In Linux

There really is no difference; your web root (where you upload your web site files to) is the "public_html" directory. The "www" directory is just a symbolic link (i.e., an aliased name that points to the same place) as public_html. To upload/publish, you should use "public_html", however, since some FTP and other publishing software can complain about a symbolic linked directory. 
 
This is done for compatibility with the two default web roots hosting providers often use, to make migrating to our services easier by not having to change paths in scripts users might have from a previous provider that used another web root name. 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

5 Ways to Get a User’s Disk Usage

This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space...

500 Internal Server Error help

First remember that “Internal Server Error” does not mean a server problem. It implies an...

Adjust Email Quota

If you need to adjust your email mailbox quota, you can do so from within your cPanel account.1)...

Changing an FTP User’s Path

By default, your main FTP (cPanel) user will have and FTP path to the user’s home folder, and...

Common cPanel Commands List

Most Common Linux Cpanel Commands for Server Admins & Cpanel Users .Limit webuser resources...