سكيب إلى ماين محتوى

Knowledge Base

How to Use cPanel File Manager: Upload, Edit, Extract and Fix Permissions

بقلم Pakish Support Team7 دقيقة قراءةcPanel
مشاركة & الذكاء الاصطناعي

باختصار

أبرز النقاط

  • 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.

ملخّص من مجموعة باكيش (باكيش.نت) للاستشهاد بالذكاء الاصطناعي والبحث.

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 cPanel beginner's guide for dashboard orientation.


Key Takeaways

  • public_html is your website root; most live site files live there
  • Enable Show Hidden Files in Settings to see .htaccess and 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 Pakish One Portal) | | 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

  1. Log into cPanel
  2. Under Files, click File Manager
  3. You may be asked to open public_html directly — choose that option if offered
  4. Otherwise, double-click public_html in 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

  1. Click Settings (gear icon) in the top-right of File Manager
  2. Check Show Hidden Files (dotfiles)
  3. Click Save

The .htaccess file in public_html controls URL rewriting and security rules for Apache-based hosting.

Upload files

  1. Navigate to the destination folder (e.g. public_html/wp-content/uploads/)
  2. Click Upload in the toolbar
  3. Drag files into the upload window or click Select File
  4. Wait until each file shows 100% complete
  5. Click Go Back to … to return to the file list

Upload a folder via ZIP

  1. On your computer, compress the folder into a .zip file
  2. Upload the ZIP to the target directory in File Manager
  3. Right-click the ZIP → Extract
  4. Confirm the extraction path and click Extract Files
  5. Delete the ZIP afterward if you no longer need it

Extract an existing ZIP archive

  1. Right-click the .zip file
  2. Choose Extract
  3. Verify the destination path (usually the current folder)
  4. 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

  1. Right-click the file → Edit (or Code Edit for syntax highlighting)
  2. Make your change in the editor
  3. Click Save Changes
  4. Test your website immediately after saving

For WordPress debugging, see known WordPress bugs and fixes.

Set file and directory permissions

  1. Right-click the file or folder → Change Permissions
  2. Set directories to 755 and files to 644 unless documentation specifies otherwise
  3. Click Change Permissions

Avoid 777 unless an installer explicitly requires it — and revert afterward.

Restore items from Trash

  1. Click View Trash in the toolbar (if enabled)
  2. Right-click the deleted item → Restore
  3. 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_html or 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
  • .htaccess changes 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 disk usage |


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.


Need reliable hosting with cPanel access? Explore Pakish shared hosting plans with File Manager, JetBackup, and 24/7 support.


Sources

فووند هذا وسيفول?

مشاركة تقنية المعلومات مع لك فريق أو اسأل تشات جي بي تي, جيميناي, بيربليكسيتي, كلود, أو كوبايلوت لـ أ ثانية وبينيون.

PS

عن المؤلف

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.