cPanel's File Manager is one of the most frequently used tools in the entire control panel. It gives you a full-featured, browser-based file explorer that lets you manage every file on your hosting account without installing FTP software, configuring SSH keys, or learning command-line operations.

In this guide, we'll walk through everything you need to know about cPanel File Manager: uploading files, editing code, managing permissions, working with hidden files, and organizing your website's directory structure like a pro.

Accessing File Manager

To open File Manager, log into your cPanel dashboard and either:

File Manager opens in a new browser tab showing your home directory. The default view includes:

Understanding the Directory Structure

Your cPanel account's file structure follows a standard layout. Here are the key directories:

DirectoryPurpose
public_htmlYour main website's document root. Files here are accessible at yourdomain.com
public_html/subdomainSubdomains are typically created as subdirectories within public_html
mailEmail storage for your email accounts
logsAccess and error log files
tmpTemporary files used by applications
etcAccount configuration files
.trashDeleted files (recoverable until emptied)

When you add addon domains through cPanel, each gets its own directory (either inside or outside public_html, depending on your configuration).

Uploading Files

Uploading Individual Files

  1. Navigate to the destination directory in File Manager
  2. Click the Upload button in the toolbar
  3. A new tab opens with a drag-and-drop upload interface
  4. Drag files onto the upload area, or click Select File to browse
  5. Files upload immediately. Close the upload tab when finished.
  6. Return to File Manager and click Reload to see the uploaded files

Uploading Multiple Files and Folders

For large uploads, the drag-and-drop interface handles multiple files simultaneously. However, there are practical limits:

Uploading and Extracting ZIP Files

This is the recommended approach for uploading entire websites or large file sets:

  1. Compress your files into a ZIP archive on your local computer
  2. Upload the ZIP file to the target directory in File Manager
  3. Right-click the ZIP file and select Extract
  4. Choose the extraction destination (usually the current directory)
  5. Click Extract Files
  6. Delete the ZIP file after extraction to save disk space

Uploading a single ZIP file and extracting it on the server is 5-10x faster than uploading thousands of individual files. This is especially true on MassiveGRID's high-availability cPanel hosting where NVMe storage makes server-side extraction nearly instantaneous.

Editing Files

File Manager includes a built-in code editor that supports syntax highlighting for HTML, CSS, JavaScript, PHP, and other languages.

How to Edit a File

  1. Select the file you want to edit
  2. Click Edit in the toolbar (or right-click and select Edit)
  3. Choose the character encoding (UTF-8 is correct for nearly all web files)
  4. The file opens in a code editor with line numbers and syntax highlighting
  5. Make your changes
  6. Click Save Changes in the top-right corner

Common Files You'll Edit

The HTML Editor

For HTML files, File Manager also offers an HTML Editor (WYSIWYG) option that provides a visual editing interface similar to a word processor. This is useful for quick content changes but not recommended for complex HTML or files containing PHP code.

Managing File Permissions

File permissions control who can read, write, and execute files on the server. They're represented as a three-digit number (e.g., 644, 755):

PermissionFilesDirectories
644Standard for most files (owner can read/write, others can read)Not typically used for directories
755Executable scripts (owner can read/write/execute, others can read/execute)Standard for most directories
600Private files (only owner can read/write)Not typically used
750Restricted executableRestricted directory access
777AVOID -- everyone can read/write/execute (security risk)AVOID -- serious security vulnerability

How to Change Permissions

  1. Right-click the file or directory
  2. Select Change Permissions
  3. Check or uncheck the permission boxes, or type the numeric value directly
  4. Click Change Permissions to apply

Important: Never set files or directories to 777. This is a common but dangerous suggestion found in outdated tutorials. If an application needs write access, use 755 for directories and 644 for files. If a specific file needs to be writable by the web server, 664 or 666 is the maximum you should consider, and only for that specific file.

Working with Hidden Files

Files and directories that start with a dot (like .htaccess, .user.ini, and .well-known) are hidden by default in File Manager. To show them:

  1. Click the Settings button in the top-right corner of File Manager
  2. Check Show Hidden Files (dotfiles)
  3. Click Save

This setting persists between sessions. You should enable it, as .htaccess is one of the most frequently edited files in web hosting.

Moving, Copying, and Renaming Files

Moving Files

  1. Select the file(s) you want to move
  2. Click Move in the toolbar
  3. Enter the destination path (e.g., /public_html/blog/)
  4. Click Move Files

Copying Files

Same process as moving, but click Copy instead. This creates a duplicate in the destination while keeping the original in place.

Renaming Files

Right-click the file and select Rename, or select the file and click Rename in the toolbar. Type the new name and press Enter.

Bulk Operations

To select multiple files:

Once selected, you can move, copy, delete, or compress all selected files at once.

Compressing and Extracting Files

Creating Archives

  1. Select the files and/or directories you want to compress
  2. Click Compress in the toolbar
  3. Choose the compression type (Zip is most universally compatible, Gzip is more compact)
  4. Enter a name for the archive
  5. Click Compress Files

Extracting Archives

  1. Select the archive file (ZIP, GZ, BZ2, or TAR)
  2. Click Extract in the toolbar
  3. Confirm the extraction directory
  4. Click Extract Files

Extraction supports ZIP, GZ, BZ2, TAR, TAR.GZ, and TAR.BZ2 formats.

Practical Tips and Best Practices

Before Making Changes

Performance Tips

Security Tips

File Manager is your daily workhorse for hosting management. Once you're comfortable with it, explore the other essential tools covered in our 15 cPanel features guide. For WordPress-specific file management tips, see our guide on installing WordPress through Softaculous and optimizing cPanel settings for WordPress performance.

Frequently Asked Questions

Is File Manager a replacement for FTP?

For most tasks, yes. File Manager can do everything an FTP client can do, plus it offers built-in file editing and archive extraction. FTP still has advantages for very large transfers (multi-GB) and automated sync operations, but for day-to-day management, File Manager is faster and more convenient since it requires no software installation.

What's the maximum file size I can upload through File Manager?

The upload limit depends on your hosting provider's PHP and web server configuration, typically ranging from 256 MB to 1 GB. For files larger than the limit, use FTP/SFTP or upload a compressed archive in parts. You can check your limit in cPanel's MultiPHP INI Editor by looking at the upload_max_filesize value.

I accidentally deleted an important file. Can I recover it?

Check the .trash directory in your home folder -- File Manager moves deleted files there by default (similar to your computer's recycle bin). If the file isn't in trash, check with your hosting provider about backup restoration. MassiveGRID's cPanel hosting includes automated backups, so your provider's support team can typically restore deleted files from a recent backup.

Can I edit PHP files directly in File Manager?

Yes, File Manager's code editor supports PHP syntax highlighting and editing. However, be cautious -- a syntax error in a PHP file can take your entire site offline. Always create a backup copy of the file before making changes, and test your changes by loading your site immediately after saving.

How do I upload a file to a specific subdomain's directory?

Navigate to the subdomain's document root in File Manager before uploading. Subdomains typically have their own directories inside public_html (e.g., public_html/blog for blog.yourdomain.com). You can find the exact path by checking the Subdomains section in cPanel, which shows each subdomain's document root.