Managing Files with cPanel File Manager
Upload, edit, move, and set permissions on your hosting files, all from the browser.
cPanel’s File Manager lets you work with your hosting files without needing FTP or SSH. You can upload, edit, move, and delete files directly from your browser.
Opening File Manager
- Log into cPanel (or go to Services → My Services → Login to cPanel in the client area)
- Under the Files section, click File Manager
- You’ll land in your home directory (
/home/yourusername/)
Your website files live in public_html. That’s the document root: anything in there is publicly accessible via your domain.
Directory Structure
Here’s what the important directories do:
| Directory | Purpose |
|---|---|
public_html/ | Your website’s document root. This is what visitors see |
mail/ | Email data. Don’t touch this manually |
logs/ | Access and error logs |
tmp/ | Temporary files |
ssl/ | SSL certificate files |
.well-known/ | Used by Let’s Encrypt and other verification systems |
Uploading Files
- Navigate to the directory where you want the file (usually
public_html/) - Click Upload in the toolbar
- Drag and drop files or click Select File
- Wait for the upload to finish, then click Go Back to File Manager
File size limit: cPanel File Manager handles files up to around 500 MB. For anything larger, use FTP or SSH instead.
Uploading a ZIP: Upload the archive first, then right-click it → Extract to unpack it on the server. This is much faster than uploading hundreds of individual files.
Editing Files
- Select the file
- Click Edit in the toolbar (or right-click → Edit)
- Choose your encoding (UTF-8 is almost always correct)
- Make your changes and click Save Changes
The built-in editor handles PHP, HTML, CSS, JavaScript, and plain text files. It has line numbers and basic syntax awareness but it’s not a full IDE. For heavy editing, work locally and upload.
Setting File Permissions
- Select the file or folder
- Click Permissions in the toolbar (or right-click → Change Permissions)
- Set the numeric permission value
Common permission values:
| Permission | Use For |
|---|---|
644 | Files (owner read/write, everyone else read-only) |
755 | Directories and executable scripts |
600 | Sensitive config files (like wp-config.php) |
777 | Never use this. It makes everything writable by anyone |
Never set permissions to 777. It makes your files writable by any process on the server. If your app “requires” 777, the app has a security flaw. Fix the ownership instead.
If your site shows a 403 Forbidden error, permissions are usually the first thing to check.
Working with .htaccess
The .htaccess file controls URL rewrites, redirects, and access rules for Apache/LiteSpeed. It’s hidden by default.
To see it:
- Click Settings (top right of File Manager)
- Check Show Hidden Files (dotfiles)
- Click Save
Now .htaccess will appear in public_html/.
.htaccess. A syntax error in this file can take your entire site down. Always make a backup copy first.Compressing and Extracting Files
To compress: Select files/folders → click Compress → choose ZIP format → name the archive.
To extract: Select the archive → click Extract → choose the destination directory.
Use this when moving sites or creating manual backups. Compressing before download is much faster than downloading individual files.
What to Do Next
- Setting Up Email Accounts in cPanel: create email addresses for your domain
- Creating and Managing MySQL Databases: set up databases for WordPress, Laravel, or any app
- Backups and Restores: understand how your files are backed up
Last updated 05 Apr 2026, 00:00 +0200.