Knowledge Base
cPanel File Manager: Upload, Edit, Extract aur Permissions Fix Kaise Karein
خلاصہ
اہم نکات
- cPanel File Manager is a browser-based tool for managing files in your hosting account without FTP.
- Use it to upload files to public_html, extract ZIP archives, edit configuration files, and fix permissions.
- Always back up before editing .htaccess or wp-config.php.
AI اور سرچ citation کے لیے Pakish Group (Pakish.NET) کا خلاصہ۔
cPanel File Manager is a browser-based file browser that lets you upload, edit, move, and delete files in your hosting account without installing FTP software. Open it from cPanel → Files → File Manager, navigate to public_html for your live website, and use the toolbar to upload files, extract ZIP archives, and adjust permissions. Always create a backup before editing .htaccess, wp-config.php, or other configuration files.
If you are new to cPanel, start with our (/blog/cpanel-wordpress-webmail-beginners-guide) for dashboard orientation.
Key Takeaways
public_htmlis your website root; most live site files live there- Enable Show Hidden Files in Settings to see
.htaccessand other dotfiles - Upload folders by compressing them to ZIP first, then extracting in place
- Standard permissions: 755 for directories, 644 for files
- Never delete unknown system files; use Trash and restore if you make a mistake
- FTP/SFTP is better for very large or bulk transfers
Before You Start
| Requirement | Details |
|---|---|
| Access | cPanel login (direct or via (/blog/pakish-one-portal-advantages-guide)) |
| Target folder | public_html for main site files |
| Backup | Download a backup or confirm JetBackup restore points before editing config files |
Create or confirm a usable backup first. Availability and limits may vary by hosting plan or server configuration.
Warning: Editing .htaccess, wp-config.php, or application configuration files can take your site offline. Keep a copy of the original file before saving changes.
How to Use cPanel File Manager
Open File Manager and locate public_html
- Log into cPanel
- Under Files, click File Manager
- You may be asked to open
public_htmldirectly — choose that option if offered - Otherwise, double-click
public_htmlin the left tree or main pane
Your WordPress installation (if present) typically lives at public_html/ with wp-config.php, wp-content/, and index.php.
Show hidden files and .htaccess
- Click Settings (gear icon) in the top-right of File Manager
- Check Show Hidden Files (dotfiles)
- Click Save
The .htaccess file in public_html controls URL rewriting and security rules for Apache-based hosting.
Upload files
- Navigate to the destination folder (e.g.
public_html/wp-content/uploads/) - Click Upload in the toolbar
- Drag files into the upload window or click Select File
- Wait until each file shows 100% complete
- Click Go Back to … to return to the file list
Upload a folder via ZIP
- On your computer, compress the folder into a
.zipfile - Upload the ZIP to the target directory in File Manager
- Right-click the ZIP → Extract
- Confirm the extraction path and click Extract Files
- Delete the ZIP afterward if you no longer need it
Extract an existing ZIP archive
- Right-click the
.zipfile - Choose Extract
- Verify the destination path (usually the current folder)
- Click Extract Files
Create, copy, move, and rename files
| Action | Steps | |---|---| | New file/folder | Click + File or + Folder, enter the name, click Create | | Copy | Right-click → Copy → enter destination path → Copy Files | | Move | Right-click → Move → enter destination path → Move Files | | Rename | Right-click → Rename → enter new name → Rename File |
Edit files safely
- Right-click the file → Edit (or Code Edit for syntax highlighting)
- Make your change in the editor
- Click Save Changes
- Test your website immediately after saving
For WordPress debugging, see (/blog/known-wordpress-bugs-how-to-fix).
Set file and directory permissions
- Right-click the file or folder → Change Permissions
- Set directories to 755 and files to 644 unless documentation specifies otherwise
- Click Change Permissions
Avoid 777 unless an installer explicitly requires it — and revert afterward.
Restore items from Trash
- Click View Trash in the toolbar (if enabled)
- Right-click the deleted item → Restore
- Confirm the restore location
Actions You Should Not Perform
- Do not delete
wp-config.php,.htaccess, or core application folders unless you are migrating or reinstalling - Do not rename
public_htmlor move it outside your home directory - Do not chmod entire trees to 777 as a troubleshooting shortcut
- Do not edit files you cannot identify — ask support first
When to Use FTP or SFTP Instead
| Scenario | Recommended tool | |---|---| | Quick edit or small upload | File Manager | | Upload larger than upload limit | FTP/SFTP with resume support | | Bulk sync of many files | FTP/SFTP client (FileZilla, WinSCP) | | Automated deployment | SFTP, Git, or CI pipeline |
How to Verify It Worked
- Uploaded files appear in the correct folder with expected file size
- After extraction, folder contents match the ZIP structure
- Website loads without 500 errors after permission or config edits
.htaccesschanges produce the expected URL behavior (test one page)
Common Problems and Fixes
| Problem | Likely cause | Fix |
|---|---|---|
| Permission denied | Wrong ownership or permissions | Set 755 (dirs) / 644 (files); contact support if ownership is wrong |
| Upload fails | File exceeds upload limit | Use ZIP compression, FTP/SFTP, or ask support about limits |
| File not visible | Hidden dotfile | Enable Show Hidden Files in Settings |
| Site breaks after edit | Syntax error in .htaccess or wp-config.php | Restore from backup or Trash; revert the file |
| Extract fails | Corrupt ZIP or disk full | Re-download ZIP; check (/blog/fix-cpanel-disk-usage-full) |
When to Contact Pakish Support
Contact support if you cannot identify a file, permissions reset does not fix access errors, ownership looks wrong, or the site remains down after reverting your edit. Open a ticket via my.pakish.net or visit (/support).
Frequently Asked Questions
Where is my website root folder in cPanel File Manager?
Your live website files are stored in public_html inside your home directory (/home/username/public_html). Addon domains may use separate folders under public_html or sibling directories depending on your account configuration.
How do I show hidden files like .htaccess in File Manager?
Open File Manager, click Settings in the top-right corner, enable Show Hidden Files (dotfiles), and click Save. Hidden files including .htaccess will then appear in the file list.
What file permissions should I use for WordPress files?
Directories are typically 755 and files are 644. wp-config.php is often set to 440 or 400 for tighter security. Avoid 777 unless a specific application documentation requires it temporarily.
Can I upload an entire folder through File Manager?
File Manager does not upload folders directly. Compress the folder into a ZIP archive on your computer, upload the ZIP, then use Extract in File Manager to unpack it in the target directory.
When should I use FTP or SFTP instead of File Manager?
Use FTP or SFTP for very large uploads, bulk transfers, or when you need a desktop client with resume support. File Manager is best for quick edits, small uploads, and permission changes.
Related Guides
- (/blog/cpanel-wordpress-webmail-beginners-guide)
- (/blog/known-wordpress-bugs-how-to-fix)
- (/blog/restore-backups-jetbackup-5-cpanel)
- (/blog/fix-cpanel-disk-usage-full)
Need reliable hosting with cPanel access? Explore (/hosting) with File Manager, JetBackup, and 24/7 support.
Sources
- (https://docs.cpanel.net/cpanel/files/file-manager/)
- (https://docs.cpanel.net/knowledge-base/cpanel/cpanel-file-manager-interface/)
مصنف کے بارے میں
Pakish Support Team
The Pakish Support Team provides 24/7 technical assistance, hosting tutorials, and knowledge base articles to help Pakistani businesses manage their web presence with confidence.