CDNShark Documentation

Web Hosting

← Back to Documentation

Folder Structure of a Hosting Account

When you connect with SFTP or open the File Manager, you start in your home folder. It looks like this:

/                          your home (read-only at the top level)
├── domains/
│   ├── example.com/
│   │   └── public_html/     ← the website for example.com
│   └── blog.example.com/
│       └── public_html/     ← one folder per domain or subdomain
├── logs/                    ← PHP error logs
├── tmp/                     ← temporary files, PHP sessions and uploads
├── repositories/            ← Git repositories (only if you use Git)
└── backups/                 ← a prepared backup download (only after you request one)

public_html is the web root

Everything inside public_html can be requested by visitors (apart from a few blocked file types, see Files and Paths Blocked for Security). Files outside it, for example domains/example.com/config/, are never served.

That's a good place for things your site needs but visitors shouldn't see, such as a framework's source code or a config file. Your PHP code can read anything under domains/ and tmp/.

Logs

PHP errors are written to logs/php8.3.error.log (the number matches your PHP version). Slow PHP requests are logged to logs/php8.3.slow.log. Check these first when a page shows an error; see Troubleshooting Hosted Websites.

Default page

A new domain gets an "Under construction" index.html. If you upload an index.php, it's served first; you can delete the index.html.