How to Use cPanel’s File Manager: A Complete Guide for Managing Website Files

Managing website files is one of the most frequent tasks for anyone running a website, whether you are a system administrator, a WordPress site owner, or a developer. cPanel’s File Manager provides a powerful, browser-based interface that lets you upload, edit, move, delete, and secure files without ever touching an FTP client or SSH terminal. For many users, it is the first tool they open when something goes wrong or when they need to make quick changes to their site.

Unlike traditional FTP clients that require separate software and credentials, cPanel File Manager is built directly into your hosting control panel. This means you can access it from any browser on any device, making it especially useful for troubleshooting on the go or working from a machine where you do not have your development tools installed. In this guide, we will walk through everything you need to know to use cPanel File Manager effectively, from basic navigation to advanced features like permissions management and file compression.

Accessing and Navigating cPanel File Manager

Getting to File Manager is straightforward. Log into your cPanel dashboard and look for the Files section. Click the File Manager icon. A dialog box will appear asking you to choose the directory you want to open. For most users, selecting Document Root for your primary domain and checking Show Hidden Files (dotfiles) is the best starting point.

Once inside, you will see a two-panel layout. The left panel is a directory tree showing your folder structure, and the right panel displays the contents of the currently selected folder. The top toolbar gives you quick access to common actions like New File, New Folder, Upload, and Download.

Understanding the Directory Structure

Your website files live under the public_html directory (or a subdomain-specific folder for addon domains). Inside public_html, you will typically find core website files, .htaccess (for Apache configuration), wp-config.php (for WordPress), and any folders for themes, plugins, or uploaded media. Other important directories outside public_html include:

  • etc/ — Contains email-related configuration files
  • mail/ — Stores email messages in Maildir format
  • tmp/ — Temporary files; can be cleaned periodically
  • .cpanel/ — cPanel system data (do not modify)
  • ssl/ — SSL certificate files

Uploading and Extracting Files

Uploading files through File Manager is simple but has a notable limitation: individual uploads are capped at approximately 512 MB (though your host may set a lower limit). For smaller files, this is the most convenient method:

  1. Navigate to the target folder in File Manager
  2. Click Upload in the top toolbar
  3. Select files from your computer using the drag-and-drop interface
  4. Wait for the upload to complete, then click Go Back to to return to your folder

For larger files or entire site migrations, zip archives are far more practical. Upload a .zip file using the standard upload method, then right-click the archive in File Manager and select Extract. The files will decompress into the current directory, preserving folder structure. You can also compress files by selecting them and clicking Compress in the toolbar — File Manager supports Zip, Gzip, and Bzip2 formats.

Using the Upload Tool for Large Transfers

For especially large uploads, consider these alternatives:

  • FTP/SFTP client — FileZilla or WinSCP for files over 500 MB
  • cPanel Backup tool — For full site restores
  • WP Toolkit — If migrating a WordPress site specifically
  • Split archives — Upload a large zip in parts and reassemble via command line

Editing Files Directly in the Browser

One of the most valuable features of File Manager is the built-in code editor. You can edit text files — HTML, CSS, PHP, JavaScript, .htaccess, configuration files — without downloading anything. To edit a file, right-click it and select Edit (or Code Editor for syntax-highlighted editing).

The editor provides basic syntax highlighting, line numbers, and a save button. However, it is not a full IDE. For files larger than a few hundred lines or for complex debugging, use a proper code editor on your local machine and upload the final version. Always make a backup before editing critical files like wp-config.php or .htaccess — a single syntax error can take your site offline.

Editing with Code Editor vs HTML Editor

cPanel offers two editing options:

  • Code Editor — Plain text editing with syntax highlighting; use this for PHP, JavaScript, CSS, and configuration files
  • HTML Editor — A WYSIWYG interface; suitable for basic HTML files but avoid it for anything containing server-side code

A word of caution: the HTML Editor can strip out PHP tags and other non-HTML content. If your file contains any PHP code, always use the Code Editor instead.

Managing File Permissions and Security

File permissions control who can read, write, or execute your files. In cPanel File Manager, you can view and change permissions by right-clicking a file or folder and selecting Change Permissions. The standard permission values you should use are:

  • 644 — Files (owner can write, everyone else can read)
  • 755 — Directories (owner can write/execute, others can read/execute)
  • 600 — Sensitive config files like wp-config.php (owner only)
  • 444 — Read-only files you want to protect from accidental modification

Overly permissive settings like 777 are a serious security risk because they allow any process on the server to modify the file. If a plugin or script instructs you to set 777, try 755 or 644 first. If that does not work, set 777 only temporarily and revert immediately after the operation completes.

Using the Trash Feature

By default, cPanel File Manager sends deleted files to a Trash folder instead of permanently removing them. This is a lifesaver if you accidentally delete the wrong file. You can access the Trash from the top-right menu (gear icon) under Trash. Files remain there until you manually empty it or the retention limit is reached. If you prefer immediate permanent deletion, disable the Trash feature in File Manager Settings.

Copying, Moving, and Renaming Files

File Manager supports the essential file operations you would expect from any file system interface. Select one or more files by checking the box next to each filename, then use the toolbar buttons or right-click context menu to:

  • Copy — Duplicate a file to a new location; useful for creating backup copies before making changes
  • Move — Relocate a file or folder to another directory
  • Rename — Change the filename without affecting the content
  • Delete — Send to Trash or permanently remove
  • Download — Download the selected file to your local machine

When moving or copying files, a dialog box will prompt you to enter the destination path. You can type the full path (e.g., /home/username/public_html/new-folder/) or click the folder icon to browse and select the destination. Pro tip: you can also right-click a folder and select Copy Path to save its full path to your clipboard for later use.

Key Takeaways

  • cPanel File Manager is a browser-based tool for managing website files without FTP or SSH — accessible from any device with an internet connection
  • The public_html directory is where your website’s publicly accessible files live; subdomains and addon domains each have their own document root folders
  • Keep file sizes under 512 MB when uploading directly; use zip archives and the Extract feature for large or bulk file transfers
  • Use the Code Editor for PHP, JavaScript, and config files — avoid the HTML Editor for anything containing server-side code
  • Set file permissions to 644 for files and 755 for directories as a security baseline; never leave 777 permissions in place longer than necessary
  • Enable Show Hidden Files to see .htaccess, .htpasswd, and other dotfiles that are critical for server configuration and troubleshooting