What is a domain?

/What is a domain?

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<a on your account.</a

Uploading your files via FTP

1.  Open web browser and enter ftp://username@domainname.com 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.

upload files via FTP

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.

hoasted cpanel file manager

Select where you wish to like to start in. In the example here, the Web Root option – which is the public_html folder is selected. Since we are uploading to the public_htmlfolder we do not need to navigate anywhere else.

file manager

3. Click Upload.

The File Upload page will be displayed.

file manager upload

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.

file manager upload overview

2018-08-01T10:36:51+00:00 juli 18th, 2018|Hosting|Reacties uitgeschakeld voor Which directory do my files go in?
Hoasted support

How can we help you?

We want you to ask us questions, because we love to help you in accomplishing your goals. We let no questions unanswered, provide you with high speed responses and leave no problem unsolved. What is important to you, is important to us. Shoot us a message and see for yourself.