Public_html

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

redhippo

VIP Member
Impact
22
whats the difference in putting the main index.html in the /root

and in the public_html folder?

i have bought a few web sites that have this differences :(
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
public_html is for files you want to be public.. if you put the files into the root you will only be able to see them nobody else, this is different on some servers though.
 
0
•••
Alegend is right about public_html; on some servers you only have access to the public directory, so that's your base directory (sometimes called 'root' by the provider). In general, when you have access to directories below your public_html (or http_docs, or www...) it allows you to create safer storage for your binary files, and other files.
 
0
•••
some provided also just call it _public. It also allws you to have personal space that is not accessable by others. For instance, you make a big presentation with many a/v files in it and is too big for floppy and CD and you don't want tu burn a DVD and you have no external hard drive nor laptop (or just don't want to use them) you could upload it to the web that night, and login to your FTP the morning of the presentation and download it for use on site. then you just delete the file on site until you are ready to move onto the next site... I've doen this many times and it's a great side effect of having web space
 
0
•••
hmmm.. the website scripts must always be in the public_html?
and the stuff in the /root is private?

what about the www?
and public_ftp?

thanks for the info guys!
 
0
•••
www is usually a shortcut for public_html, I think people can download files but not upload in public_ftp..
 
0
•••
It is just the permisson access levels of different folders, I think files will be uploaded in the "www" directory
 
0
•••
The www directory on cPanel servers is just a symbolic link of the public_html folder. You can upload files to either/or, they are basically the same directory. Some hosts will instruct their users to upload files into the www and others into the public_html, but they are basically the same, and the public_html is the real directory while the www is just a symoblic link to the public_html directory. Other servers may have the public_html directory named something totally different such as httpdocs, htdocs, sitename, web etc.

You can't acess files via the web, or at least you shouldn't be able to, that are stored in your root (home) directory which is usually one directory up from your public directory. You can use your root (home) directory just for storing files that you don't want others to gain access to via the web or other reasons like others have said above and/or put configuration files for your scripts and things like that in it. It's usually also used for things like storing your webstats, mail, temporary files and configuration options for your account. The root folder would also be considered your home directory and the public_html directory may be considered your root directory for web accessible files.

The public_ftp directory is for anonymous ftp. If it's enabled, this will allow anyone to login to your site via ftp anonymously and depending on the settings users can view files that are stored in the directory, upload files to the directory, download files from the directory, or delete files from the directory. When a user logs in anonymously they would see the files that are stored in the public_ftp directory.
 
0
•••
well explained deadserious
 
0
•••
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover

NamePros updates

New in Parking: updated way to act on many domains or inquiries at once
Your domain list and inquiry list now have a bar above and below the list. Check the items you want, then choose an action in the bar...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back