File Manager
cPanel's File Manager lets you upload, edit, move, and delete files on your hosting account directly from your browser.
Opening File Manager
- Log into cPanel.
- In the Files section, click File Manager.
- By default, File Manager opens to your home directory. Your website files are inside the
public_htmlfolder.
public_html directory is your website's document root. Any file placed here is accessible at https://yourdomain.com/filename.
Navigating Files
The File Manager interface has two main panels:
- Left panel — A folder tree for quick navigation between directories.
- Right panel — Displays the contents of the currently selected directory.
Double-click any folder to open it. Use the path bar at the top to jump to a specific location. Click Up One Level to go back to the parent directory.
Showing Hidden Files
Files starting with a dot (like .htaccess) are hidden by default. To display them:
- Click Settings in the upper-right corner of File Manager.
- Check Show Hidden Files (dotfiles).
- Click Save.
Uploading Files
- Navigate to the folder where you want to upload files (usually
public_html). - Click Upload in the toolbar.
- Drag and drop files onto the upload area, or click Select File to browse your computer.
- Wait for the upload to finish, then click Go Back to return to File Manager.
Creating Files and Folders
Use the toolbar buttons at the top:
- + File — Creates a new empty file. Enter a name and click Create New File.
- + Folder — Creates a new directory. Enter a name and click Create New Folder.
Editing Files
- Select the file you want to edit by clicking on it once.
- Click Edit in the toolbar. Choose Edit for the code editor or HTML Editor for a visual editor.
- Make your changes in the editor.
- Click Save Changes when finished.
Moving, Copying, and Renaming Files
- Move — Select a file, click Move, enter the destination path, and click Move File(s).
- Copy — Select a file, click Copy, enter the destination path, and click Copy File(s).
- Rename — Select a file, click Rename (or right-click and choose Rename), type the new name, and press Enter.
File Permissions
File permissions control who can read, write, and execute files on your server. To change them:
- Select the file or folder.
- Click Permissions in the toolbar.
- Set the desired permissions using the checkboxes or by entering a numeric value (e.g.,
644for files,755for folders). - Click Change Permissions.
777 on a shared hosting environment. This gives everyone full read, write, and execute access and is a serious security risk. Use 644 for files and 755 for directories as a general rule.
Extracting Archives
You can extract .zip, .gz, and .bz2 archives directly in File Manager:
- Upload your archive file to the desired directory.
- Select the archive file.
- Click Extract in the toolbar.
- Confirm or change the extraction path, then click Extract File(s).
.zip archive and extracting it on the server is much faster than uploading hundreds of individual files. This is the recommended way to deploy a website through File Manager.
Compressing Files
To create an archive of files or folders:
- Select the files and/or folders you want to compress. Hold Ctrl (or Cmd on Mac) to select multiple items.
- Click Compress in the toolbar.
- Choose the compression type (Zip is recommended for compatibility).
- Enter a name for the archive and click Compress File(s).
Deleting Files
Select the file or folder and click Delete. Deleted items are moved to the Trash folder (.trash in your home directory). To permanently delete without moving to trash, check Skip the trash in the confirmation dialog.
To empty the trash, click Empty Trash in the File Manager toolbar.