Skip to content
HOSTIGAN
cPanel

How to upload files to your website with File Manager

Upload, edit and organise your website's files in cPanel File Manager. Upload whole sites as ZIP, set safe permissions and fix errors after an upload.

Beginner 6 min read Updated November 24, 2026

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:

FolderWhat it is
public_htmlThe document root of your main domain — what visitors see
example.net/ or similarDocument roots of addon domains and subdomains
mail, etc, tmp, logs, .cpanelSystem 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

  1. 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.
  2. Click Upload in the toolbar. A new tab opens.
  3. If you are replacing files, tick Overwrite existing files.
  4. Drag files onto the page or click Select File.
  5. 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:

  1. On your computer, compress the site's files into site.zip.
  2. Upload site.zip into the target folder.
  3. Select it and click Extract. Confirm the destination folder and click Extract File(s).
  4. 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.
  5. 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 .htaccess or wp-config.php can 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.

ValueUse for
644Normal files: HTML, PHP, images, CSS
755Folders
600 or 640Sensitive configuration, such as wp-config.php
777Never

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.png and logo.png are 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 ManagerFTP client
InstallationNoneFileZilla or similar
Built-in editorYesUses your own editor
Folders with subfoldersVia ZIPDirectly
Large or interrupted transfersLimitedResumes
Access for a developerNeeds your cPanel loginSeparate 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

ProblemLikely cause and fix
The old version still showsUploaded to the wrong folder, or browser or page cache — check the path, then clear the cache
403 ForbiddenNo index.html or index.php in the folder, or wrong permissions
500 Internal Server ErrorError in .htaccess, or files with 777 — restore your backup copy
Images missingUpper/lower case in the file name doesn't match the HTML
Blank pagePHP 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 644 for files and 755 for folders — never 777.

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.

Next in “Your hosting in production” · 5 of 11How to create and manage FTP accounts in cPanel