Using File Manager

Learn how to use cPanel File Manager to upload, edit, and manage your website files.

Managing Your Website Files

cPanel File Manager is a web-based file management tool that lets you upload, edit, and organize your website files without FTP software.

Accessing File Manager

  1. Log in to cPanel
  2. Scroll to "Files" section
  3. Click "File Manager"

Understanding Directory Structure

Key Folders:

  • public_html/: Your main website files (most important)
  • mail/: Email data
  • logs/: Access and error logs
  • tmp/: Temporary files
  • .htaccess: Server configuration (hidden file)

Inside public_html:

  • index.html/index.php: Homepage file
  • wp-content/: WordPress themes, plugins, uploads
  • images/: Image files
  • css/: Stylesheets
  • js/: JavaScript files

Common Tasks

Uploading Files

  1. Navigate to public_html folder
  2. Click "Upload" button
  3. Click "Select File" or drag files
  4. Wait for upload to complete
  5. Click "Go Back" when done

Upload Limits:

  • Maximum file size: 512 MB per file
  • For larger files, use FTP
  • Supports multiple simultaneous uploads

Creating Files/Folders

New Folder:

  1. Click "+ Folder" button
  2. Enter folder name
  3. Click "Create New Folder"

New File:

  1. Click "+ File" button
  2. Enter file name (include extension: .html, .php)
  3. Click "Create New File"

Editing Files

  1. Right-click on the file
  2. Select "Edit" or "Code Edit"
  3. Make your changes
  4. Click "Save Changes"
  5. Click "Close"

Editor Types:

  • Edit: Simple text editor
  • Code Editor: Syntax highlighting for code
  • HTML Editor: Visual HTML editing

Downloading Files

Single File:

  1. Right-click on file
  2. Select "Download"
  3. File saves to your computer

Multiple Files:

  1. Select files/folders (Ctrl+Click)
  2. Click "Compress"
  3. Choose ZIP format
  4. Download the ZIP file

Deleting Files

  1. Select file(s) or folder(s)
  2. Click "Delete"
  3. Confirm deletion
  4. Warning: Cannot be undone!

Moving/Copying Files

Move:

  1. Select file(s)
  2. Click "Move"
  3. Enter destination path
  4. Click "Move File(s)"

Copy:

  1. Select file(s)
  2. Click "Copy"
  3. Enter destination path
  4. Click "Copy File(s)"

File Permissions

  1. Right-click on file
  2. Select "Change Permissions"
  3. Check appropriate boxes or enter numeric value
  4. Click "Change Permissions"

Common Permissions:

  • 644: Files (readable by all, writable by owner)
  • 755: Folders and executable files
  • 600: Sensitive files (like wp-config.php)
  • 444: Read-only files

Extract Archive Files

  1. Upload ZIP file to public_html
  2. Right-click on ZIP file
  3. Select "Extract"
  4. Choose extract location
  5. Click "Extract File(s)"
  6. Delete ZIP file after extraction

Search for Files

  1. Click "Search" button
  2. Enter search criteria
  3. Select where to search
  4. Click "Search"

Tips & Best Practices

  • Show Hidden Files: Settings → Show Hidden Files (dotfiles)
  • Backup Before Editing: Always backup files before making changes
  • Use Code Editor: Better for editing code with syntax highlighting
  • Check File Sizes: Monitor disk usage regularly
  • Organize Files: Keep files organized in folders
  • Delete Unused Files: Remove old backups and unused themes/plugins
  • Be Careful with .htaccess: Small errors can break your site

Keyboard Shortcuts

  • Ctrl+A: Select all
  • Ctrl+Click: Select multiple files
  • Shift+Click: Select range
  • Delete key: Delete selected

Troubleshooting

Can't Upload Files?

  • Check disk quota in cPanel
  • Verify file size under 512 MB
  • Clear browser cache and try again
  • Use FTP for large files

Can't Edit File?

  • Check file permissions
  • Ensure file isn't locked
  • Try different editor (Edit vs Code Editor)

Uploaded File Not Showing?

  • Refresh File Manager (F5)
  • Check you're in correct directory
  • Verify upload completed successfully
Important: Always backup your files before making significant changes!
cPanel
Share: