How to Manage Your Files with cPanel File Manager Print

  • cpanel, file manager, files, upload, ftp
  • 0

How to Manage Your Files with cPanel File Manager

cPanel File Manager is a browser-based file explorer that gives you full access to everything on your hosting account — without needing an FTP client. You can upload files, edit code, create folders, set permissions, compress and extract archives, and more.

Prerequisites

  • Access to cPanel at yourdomain.com/cpanel

Opening File Manager

  1. Log in to cPanel at yourdomain.com/cpanel
  2. In the Files section, click File Manager
  3. File Manager opens showing your home directory

Understanding the Directory Structure

Your home directory contains several important folders:

  • public_html — this is your website's root folder. Files here are publicly accessible via your domain. Your WordPress installation lives here by default.
  • public_html/wp-content — WordPress themes, plugins, and uploaded media
  • public_html/wp-content/uploads — all images and files uploaded through WordPress
  • mail — stores your email messages (do not modify)
  • logs — server and error logs
  • .cpanel — cPanel configuration files (do not modify)

 

⚠️ Warning

Do not delete or rename the public_html folder. This will take your website offline.

Also avoid modifying any folder outside of public_html unless you know what it does.

Uploading Files

Upload individual files

  1. Navigate to the folder you want to upload to (e.g. public_html)
  2. Click Upload in the top toolbar
  3. Click Select File and choose the file from your computer
  4. The file uploads and appears in the folder

Upload multiple files or folders (as a zip archive)

  1. On your computer, compress the files into a .zip archive
  2. Upload the .zip file to cPanel File Manager using the Upload method above
  3. Right-click the .zip file and choose Extract
  4. Confirm the extraction path and click Extract File(s)
  5. Delete the .zip file after extraction if you no longer need it

 

???? Tip

Uploading a zip file and extracting it in File Manager is much faster than uploading

many small files individually — especially for themes or plugin folders.

Creating and Editing Files

Create a new file or folder

  1. Navigate to the desired location
  2. Click New File or New Folder in the toolbar
  3. Enter the file or folder name and click Create

Edit a file directly in the browser

  1. Right-click the file you want to edit
  2. Choose Edit (for text/code files) or HTML Editor (for .html files)
  3. Make your changes in the editor
  4. Click Save Changes

 

???? Tip

The Code Editor in File Manager supports syntax highlighting for PHP, HTML, CSS, and JavaScript.

For quick edits (e.g. fixing a .htaccess file or editing wp-config.php) it works well.

Common File Manager Tasks

Edit the .htaccess file

  1. Navigate to public_html
  2. If .htaccess is not visible, click Settings (top right) and enable Show Hidden Files
  3. Right-click .htaccess and choose Edit
  4. Make your changes and save

 

⚠️ Warning

The .htaccess file controls URL structure, redirects, and security rules.

An incorrect edit can take your site offline. Always back up the file before editing.

Change file permissions (chmod)

  1. Right-click the file or folder
  2. Choose Change Permissions
  3. Set the permissions using the checkboxes or by entering the numeric value
  4. Click Change Permissions to save

 

???? Note

Recommended permissions: Folders = 755, Files = 644, wp-config.php = 600.

Do not set folders or files to 777 (full permissions) — it is a serious security risk.

Rename or move a file

  1. Right-click the file and choose Rename to rename it in place
  2. To move a file, right-click and choose Move, then enter the destination path

Delete a file or folder

  1. Right-click the file or folder and choose Delete
  2. Tick Skip Trash to delete permanently, or leave unticked to move to trash first
  3. Click Confirm

 

⚠️ Warning

Permanently deleted files cannot be recovered from File Manager.

If you need to recover deleted files, you will need to restore from a backup.

Verify It Worked

  • Uploaded files appear in the correct folder in File Manager
  • Edited files reflect your changes when viewed in the browser or re-opened in the editor
  • Changed permissions show the correct numeric value next to the file

Related Articles

  • How to Access and Navigate cPanel
  • Understanding Your Storage and Bandwidth Usage
  • How to Use WordPress Toolkit — Staging, Cloning & Auto-Updates (WordPress category)

Was this answer helpful?

« Back