Where do my website files go? Understanding public_html

Knowing where to put files makes it much easier to fix problems and keep things tidy. This article explains the folders in your hosting account and which one your website lives in.

Steps

If your cPanel uses the Jupiter theme

  1. Log in to cPanel and open Files > File Manager.
  2. Look at your home folder in the left panel. You will see folders including public_html, mail, and others.
  3. Click public_html. This is the document root of your main domain. Anything in this folder can be reached on the web.
  4. To see where another domain's files live, go to Domains > Domains. The Document Root column shows each domain's folder.
  5. Place your home page file, such as index.html or index.php, directly in the document root folder, not inside another folder.

If your cPanel uses the Meridian theme

  1. Log in to cPanel and click Files in the left sidebar.
  2. Open the File Manager tab and look at your home folder. You will see folders including public_html, mail, and others.
  3. Open public_html. This is the document root of your main domain. Anything in this folder can be reached on the web.
  4. To see where another domain's files live, click Websites in the sidebar, click Manage next to the domain, and look at the website folder (document root) on the Overview tab.
  5. Place your home page file, such as index.html or index.php, directly in the document root folder, not inside another folder.

Tips and troubleshooting

  • Do not put private files such as backups, passwords, or customer lists in public_html. Anyone who guesses the web address can download them. Keep them above it in your home folder.
  • Addon domains and subdomains usually have their own folders, such as public_html/yourdomain2.com or public_html/shop.
  • Do not delete or move folders you do not recognize. Folders such as mail, etc, and ssl are used by your hosting account.
  • If your website shows a list of files instead of a page, there may be no index file in the folder, or the files were placed in the wrong folder.
  • If you moved files from a different host, make sure they were not placed inside an extra folder.

Need help? Contact Barrett IT Support at support@barrettit.com or call 888.374.4632.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

How to use the File Manager: browse, upload, and extract files

File Manager is like Windows Explorer or Finder for your hosting account. You can use it to...

How to change file and folder permissions

Permissions control who can read, change, or run a file. If a website shows a Forbidden error or...

How to create an FTP account

An FTP account lets a person or program upload files to your website from a program on their...

How to connect to your website with an FTP program

FTP programs such as FileZilla or Cyberduck make it easy to upload many files at once. This...

How to check how much disk space you are using

Your hosting plan includes a set amount of storage. If you use it all, you cannot save files, and...