File Manager is cPanel's built-in file browser. It runs in your web browser, needs no extra software and lets you upload, edit, move, unpack and delete the files that make up your website. For most day-to-day changes it is the quickest tool you have.
By the end of this guide you will know where your site's files belong, how to upload a single file or a whole website, how to edit safely, which permissions to use and what to check when the site misbehaves after an upload.
Open File Manager and find your way around
Log in to cPanel and open Files › File Manager. A new tab opens with three areas:
- The toolbar at the top: + File, + Folder, Copy, Move, Upload, Download, Delete, Restore, Rename, Edit, Permissions, Extract, Compress and more.
- The folder tree on the left, starting at your home directory.
- The file list on the right, showing the contents of the selected folder.
The folders that matter:
| Folder | What it is |
|---|---|
public_html | The document root of your main domain — what visitors see |
example.net/ or similar | Document roots of addon domains and subdomains |
mail, etc, tmp, logs, .cpanel | System folders for mail and settings — leave them alone |
If you are not sure which folder a domain uses, check Domains › Domains; the document root is listed next to each domain. Our guide to creating a website with cPanel explains how domains and folders fit together.
Show hidden files
Files like .htaccess and .user.ini start with a dot and are hidden by default. Click Settings in the top-right corner, tick Show Hidden Files (dotfiles) and click Save. You will need this for almost any configuration work.
Upload files
- In the folder tree, open the folder the files should go into, for example
public_html. Uploads always land in the folder you are in. - Click Upload in the toolbar. A new tab opens.
- If you are replacing files, tick Overwrite existing files.
- Drag files onto the page or click Select File.
- Wait until every progress bar is green and says complete, then click Go Back to "/home/USERNAME/public_html".
The upload page shows the maximum file size the server accepts.
Note: Uploading folder structures directly through the browser is unreliable. For anything with subfolders — a theme, a plugin, a whole site — use a ZIP file as described next.
Upload a whole website as a ZIP
This is the fastest way to move a complete site into place:
- On your computer, compress the site's files into
site.zip. - Upload
site.zipinto the target folder. - Select it and click Extract. Confirm the destination folder and click Extract File(s).
- Check the result. If the files ended up in an extra subfolder, such as
public_html/site/, select everything inside it, click Move and set the path to/public_html. - Delete
site.zip.
Warning: Don't leave ZIP files in
public_html. Anyone who guesses the name can download your entire site, including configuration files with database passwords.
Compress works the other way round: select files or folders, choose Zip Archive and you have a quick copy to download before you change something. For full backups with databases, see our guide to backups in cPanel.
Create and edit files
Use + File and + Folder to create new items in the current folder. To change a file, select it and click Edit. cPanel opens a code editor with line numbers and syntax highlighting. Keep the encoding at utf-8 so special characters like æ, ø and å come out right.
A typical small edit is adding a rule to .htaccess. This one stops visitors from browsing the contents of folders that have no index file:
Options -Indexes
And this one blocks direct access to a sensitive file:
<Files "config.ini">
Require all denied
</Files>
For redirect rules, see our guide to redirects in cPanel.
Tip: Before you edit an important file, select it, click Copy and save a duplicate such as
.htaccess.bak. One missing bracket in.htaccessorwp-config.phpcan take the whole site down, and having the old version one click away saves a lot of stress.
Set the right permissions
Permissions decide who may read, write and run a file. In File Manager, select a file or folder and click Permissions, or look at the Permissions column in the list.
| Value | Use for |
|---|---|
644 | Normal files: HTML, PHP, images, CSS |
755 | Folders |
600 or 640 | Sensitive configuration, such as wp-config.php |
777 | Never |
On modern shared hosting, PHP runs as your own user, so files do not need to be world-writable. 777 doesn't fix anything there; it opens a security hole, and many servers refuse to run PHP files with it, giving you a 500 error instead.
If you have Terminal in cPanel, you can reset a whole site in two commands:
find ~/public_html -type d -exec chmod 755 {} \;
find ~/public_html -type f -exec chmod 644 {} \;
Move, rename and delete
- Copy and Move ask for a destination path, such as
/public_html/old. - Rename changes the name. File names on Linux are case-sensitive:
Logo.pngandlogo.pngare two different files. - Delete moves items to the trash by default. Tick Skip the trash and permanently delete the files only if you are sure.
- View Trash lists deleted items; select one and click Restore to put it back. Empty Trash clears it for good.
Files in the trash still count towards your disk space. Empty it once you are sure. If you need to find what is using space, Files › Disk Usage shows the size of every folder. The search box at the top right of File Manager finds files by name across your home directory, public_html or the current folder.
File Manager or FTP?
| File Manager | FTP client | |
|---|---|---|
| Installation | None | FileZilla or similar |
| Built-in editor | Yes | Uses your own editor |
| Folders with subfolders | Via ZIP | Directly |
| Large or interrupted transfers | Limited | Resumes |
| Access for a developer | Needs your cPanel login | Separate account for one folder |
Use File Manager for quick edits and single uploads, and FTP for bulk work or when someone else needs access. Our guide to FTP accounts in cPanel shows how to set that up safely.
Common problems after an upload
| Problem | Likely cause and fix |
|---|---|
| The old version still shows | Uploaded to the wrong folder, or browser or page cache — check the path, then clear the cache |
| 403 Forbidden | No index.html or index.php in the folder, or wrong permissions |
| 500 Internal Server Error | Error in .htaccess, or files with 777 — restore your backup copy |
| Images missing | Upper/lower case in the file name doesn't match the HTML |
| Blank page | PHP error — check error_log in the site's folder |
The 500 error has its own guide: how to fix a 500 Internal Server Error.
In short
- Open Files › File Manager, go to the right folder first, then upload.
- Turn on Show Hidden Files (dotfiles) to see
.htaccess. - Upload whole sites as a ZIP, Extract, then delete the ZIP.
- Copy a file before you edit it.
- Use
644for files and755for folders — never777.
File Manager on Hostigan hosting
Hostigan web hosting comes with cPanel and its File Manager, so you can manage your site's files straight from the browser. Running WordPress? Our WordPress hosting adds a one-click install on top.
Frequently asked questions
The limit depends on the server's configuration and your free disk space; the upload page shows the maximum. For very large files, or thousands of small ones, a ZIP archive or an FTP client is more reliable.