Every account has a home directory (e.g., /home/youruser/). The important folders inside it:
public_html— the document root for your primary domain. Anything here is served on the web. Your site'sindex.htmlorindex.phplives at the top of this folder.public_html/subfolderor a separate folder — document roots for addon domains and subdomains (see "Managing Domains in cPanel").mail,etc,logs,ssl— system folders. Don't move or delete these.- Files above
public_html(directly in your home directory) are not web-accessible, which makes the home directory the right place for app code, secrets, and.envfiles.
Security tip: Never store passwords, API keys, or application source code that shouldn't be public inside
public_html. Keep it one level up in your home directory.