In which directory do my files go?
Your public_html folder
The web root for your primary domain name is the public_html. This means that when someone types your main domain (the one you provided when you signed up for hosting), public_html is the folder which contains all the website files/content that will appear.
You can also create Addon domains and Subdomains, and these will use a folder inside public_html.
e.g. You can create an Addon domain called hoasted1.com and it will use a subfolder similar to /public_html/hoasted1/
- The public_html folder should always have 0750 permissions.
- All folders inside the public_html folder should have 0755 permissions.
- All files inside the public_html folder should have 0755 or 0644 permissions.
A domain's document root, also known as the home folder, is the main folder that contains all of the files for either a domain or a subdomain is known as a domain's document root, or the home folder.
- Main Domain -The document root for your main domain name is your public_html folder. This means when someone visits your main domain, the server returns files that are located in the public_html folder.
- Subdomains - The document root for a subdomain is a bit different. If your subdomain is http://store.example.com, then the document root folder would be public_html/store.
- Addon Domains - Addon domain document roots are very similar to subdomains. If there is an addon domain on your account, the main folder is also under the public_html folder. For example, if you have an addon domain named www.hoasted.com on your account.
Uploading your files via FTP
1. Open web browser and enter ftp://firstname.lastname@example.org in the address bar.
2. Enter the user name in the User Name text entry box.
3. Enter the password in the Password text entry box.
The Authentication dialog will be displayed.
You will be logged in to the server location from where you can upload or download files. To upload files to the server, simply drag the files on your computer to this server location.
Uploading your files via the File Manager (cPanel)
You may want to upload your files directly through cPanel. You can do this through the File Manager.
Note: There is a 25MB upload limit through File Manager. If you need to upload a larger file, please use FTP.
1. Log into cPanel.
2. Navigate to Home > Files > File Manager.
Select where you wish to like to start in. In the example
Web Root option - which is
public_html folder is selected.
Since we are uploading to the public_htmlfolder we do not need to navigate
3. Click Upload.
The File Upload page will be displayed.
4. From here, you can drag and drop files to start uploading.
Select the file you want to upload on your local computer by clicking the Select File button.
The standard Open dialog will be displayed. Select the file you wish to upload and click Open.
The selected file will be uploaded.
5. Once the file is finished uploading you can click on the link in the center of the screen to return to the folder you uploaded the file to.
Now, in a web browser, you can verify that it is uploaded to the location correctly.