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. 
  • 48 Users Found This Useful
Was this answer helpful?

Related Articles

I have not received my account Account Information email

If you have not received your Welcome email, please ensure that you have no Spam filters in place...

What is DNS Propagation? Why does it take so long to update?

DNS stands for Domain Name System and is essentially the act of converting your domain name into...

Windows or Linux Hosting Package?

Our Windows hosting and Linux Hosting Packages operate on different operating systems. They...

What is malware and how can we prevent it?

Malware is an abbreviated term meaning “malicious software.” This is software that is...

Shared, VPS and Dedicated Servers

Once you have developed a website or got it done from a web designing firm, you have to register...