File Manager is the browser-based way to work with every file on your hosting account - uploading, editing, permissions, compressing, searching and restoring. It is often quicker than an FTP client for a single change, and it can do several things FTP cannot. This guide covers the interface, the folders you will meet, and the housekeeping that keeps your account from silently filling up.

Opening it
Log in to cPanel from My Products & Services, then under Files click File Manager. It opens at your home directory, shown on the cPanel home screen under General Information as something like /home/username.

The folders in your home directory

Folder What it holds
public_html Your website. Everything here is served to the web. Your homepage must be index.html or index.php.
mail Your mailboxes. Do not edit by hand - manage mail through the Email tools.
logs / access-logs Server logs. Useful for diagnosis, and a common cause of unexpected disk usage.
ssl Certificate files. Managed for you - leave alone.
etc, tmp Account configuration and temporary files. Do not modify.
A folder named after a domain The document root for an addon domain or subdomain.
Anything above public_html is not served to the web. That is a feature, not a limitation - it is the right place for files you want on the server but not publicly downloadable. Equally, uploading your site one level too high is the single most common reason a new site "does not work".

The toolbar

Select a file or folder first, then use the top row:

  • + File / + Folder - create new, in the current directory.
  • Copy / Move - you type the destination path, so check it before confirming.
  • Upload / Download - transfers to and from your computer.
  • Delete - goes to Trash by default, recoverable.
  • Restore - brings an item back from Trash.
  • Rename - also the quickest way to disable something without deleting it.
  • Edit - plain text editor.
  • HTML Editor - visual editor. Avoid it for PHP or template files; it can rewrite your markup.
  • Permissions - set the numeric mode.
  • View - read-only preview, safer than opening the editor.
  • Extract / Compress - unpack and create archives on the server.

The second row handles navigation: Home, Up One Level, Back, Forward, Reload, Select All, Unselect All, View Trash and Empty Trash.

Showing hidden files

Files beginning with a dot - .htaccess, .env - are hidden by default, which is why people conclude their .htaccess has vanished.

  1. Click Settings at the top right.
  2. Tick Show Hidden Files (dotfiles).
  3. Click Save.

Uploading a site as an archive

Uploading two thousand files individually through a browser is slow and fails part-way. Upload one archive instead:

  1. On your computer, compress the contents of your site folder into a .zip - not the folder itself, or everything lands one level too deep.
  2. In File Manager, navigate into public_html and click Upload.
  3. Drag the ZIP in and wait for 100%.
  4. Click Go Back to…, then Reload.
  5. Select the ZIP, click Extract, confirm the path.
  6. Delete the ZIP afterwards. It counts against your disk usage and is publicly downloadable while it sits there.

Searching

The search box at the top right finds files by name. Set the dropdown to search all your files or just the current directory, type a fragment of the name, and click Go. It searches names, not contents - useful for locating a stray wp-config.php or every leftover .tar.gz.

Permissions

Select an item and click Permissions. The safe values on shared hosting:

Item Mode
Directories755
Files644
Config files holding credentials600
Anything at allNever 777

777 lets any process on the server write to the file. It is not required on Fast Hive servers, it commonly causes a 500 error, and it is a direct security risk. If a tutorial tells you to use it, the tutorial is wrong.

Trash

Deleted items go to Trash and still occupy disk space until it is emptied. View Trash lists them and Restore brings one back; Empty Trash frees the space permanently.

If your disk usage has not fallen after a big clear-out, an unemptied Trash is usually why.

Housekeeping that actually matters

Two things quietly consume most of the disk space on a typical account:

Old backup archives

Backup files you generated and never downloaded sit in the home directory forever. A couple of full-account archives can easily total several gigabytes. Search for .tar.gz, download anything you still want, and delete the rest - they also contain your database passwords.

A runaway error_log

A single repeating PHP error can grow error_log to hundreds of megabytes. Deleting it reclaims the space, but the file returns because the underlying error is still firing on every request - and that error is costing you CPU on every page load. Open Metrics → Errors, read the repeating line, fix the cause, then delete the log.

Use Files → Disk Usage to see which directories are largest before you start hunting.

Troubleshooting

Symptom Cause and fix
.htaccess is missing It is hidden. Enable Show Hidden Files in Settings.
Upload fails part-way Disk quota reached, or the file is too large for a browser upload. Clear old archives, or use SFTP.
Extract produces a nested folder The archive contained a top-level folder. Open it, Select All, and Move the contents up one level.
Site broke after editing a file Restore it from Trash if you deleted it, or from a backup. Always copy a file before editing it - a duplicate named file.php.bak costs nothing.
HTML Editor mangled a PHP file It is a visual editor and rewrites markup. Use plain Edit for anything that is not simple HTML.
Disk usage unchanged after deleting Trash has not been emptied. Use Empty Trash.
"Permission denied" editing a file Ownership is wrong, usually after a manual upload. Open a ticket with Technical Support to correct it.
File Manager is very slow to open a folder Too many files in one directory. Use search to reach what you need rather than browsing.

Frequently asked questions

File Manager or FTP?

File Manager for a quick edit, an archive upload, or a permissions change - nothing to install. SFTP for bulk transfers, repeated deployments and very large files.

Can I edit files directly on the live site?

You can, and sometimes you must. Copy the file first so you have a one-click way back, and avoid doing it at your busiest hour.

Is there a size limit on uploads?

Browser uploads are bounded by PHP settings and connection stability. Anything above a few hundred megabytes should go over SFTP, which also resumes after an interruption.

Can I recover a file I deleted last month?

If it is still in Trash, yes. If Trash was emptied, restore from your own backup, or ask Technical Support about the nightly snapshots - the sooner you ask, the more likely it is still available.

Why can I see folders I did not create?

etc, mail, ssl, logs and tmp are created by cPanel for the account to function. Leave them alone.

Can I give someone access to just one folder?

Yes - create a dedicated FTP account in Files → FTP Accounts with that folder as its directory. They cannot climb above it, and you can delete the account when the work is done.

Deleted something important? Stop making changes - further edits can overwrite what is still recoverable. Check Trash first, then open a ticket with Technical Support at My Support Tickets with the file path and roughly when it was last correct.
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution