DOCS

The public_html folder structure

What lives in which folder, where your site goes and where addon domains and subdomains go.

Mis à jour le 05.10.2026. 2 min de lecture

When you open File Manager, the starting point is your home directory. The most important folders are:

FolderPurpose
public_htmlThe web root of the main domain. Everything here is available over the web.
mailEmail data. Do not edit it manually.
etc, logs, tmpcPanel system folders.
sslCertificates and keys.
wwwA shortcut (link) to public_html.

Rules#

  • Put files that should be public in public_html. The home page is index.html or index.php.
  • Keep sensitive files (backups, database exports, scripts with passwords) outside public_html or protect them: Password-protecting a directory.
  • The folder name public_html stays the same when domains are added; you change nothing for the main domain.

Addon domains and subdomains#

When creating an addon domain or subdomain you choose the folder its site goes into. This is often a folder inside public_html, e.g. public_html/blog or public_html/seconddomain.com. See Adding an addon domain and Creating a subdomain.

Cet article vous a-t-il été utile ?

Articles associés

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.