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
- Log in to cPanel at yourdomain.com/cpanel
- In the Files section, click File Manager
- 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
- Navigate to the folder you want to upload to (e.g. public_html)
- Click Upload in the top toolbar
- Click Select File and choose the file from your computer
- The file uploads and appears in the folder
Upload multiple files or folders (as a zip archive)
- On your computer, compress the files into a .zip archive
- Upload the .zip file to cPanel File Manager using the Upload method above
- Right-click the .zip file and choose Extract
- Confirm the extraction path and click Extract File(s)
- 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
- Navigate to the desired location
- Click New File or New Folder in the toolbar
- Enter the file or folder name and click Create
Edit a file directly in the browser
- Right-click the file you want to edit
- Choose Edit (for text/code files) or HTML Editor (for .html files)
- Make your changes in the editor
- 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
- Navigate to public_html
- If .htaccess is not visible, click Settings (top right) and enable Show Hidden Files
- Right-click .htaccess and choose Edit
- 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)
- Right-click the file or folder
- Choose Change Permissions
- Set the permissions using the checkboxes or by entering the numeric value
- 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
- Right-click the file and choose Rename to rename it in place
- To move a file, right-click and choose Move, then enter the destination path
Delete a file or folder
- Right-click the file or folder and choose Delete
- Tick Skip Trash to delete permanently, or leave unticked to move to trash first
- 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)