Use cPanel's File Manager
cPanel's File Manager gives you access to your hosting's files from your browser, with no software to install. It is enough to publish a site, replace a file or change a setting.
Before you start
- Have your cPanel credentials ready: see Log in to cPanel.
- Know where your files go: your site's files belong in the domain's web folder, called
public_htmlfor the main domain (the folder of each additional domain is shown on cPanel's Domains page). - Prepare the files to upload. For a site made of many files, first create a
.ziparchive on your computer: uploading is faster and the File Manager can extract it. - The File Manager only appears if your hosting provider has enabled it for your account. Otherwise, use an FTP account (see Create additional FTP accounts).
- The labels below come from cPanel's official documentation, in English; the French version of your cPanel may translate some of them.
Steps
Open the File Manager and pick a starting folder
- In cPanel, open Files › File Manager.
- Click Settings to choose the folder that opens by default: Home Directory (the account's main folder), Web Root (public_html or www), Public FTP Root (public_ftp) or Document Root for: (the folder of the domain picked in the menu).
- Tick Show Hidden Files (dotfiles) if you need to see hidden files such as
.htaccess. Click Save.
Upload files
- Open the destination folder (for example
public_html). - In the toolbar, click Upload.
- Drag and drop your files, or click Select File.
To upload a folder, note that the File Manager does not accept one directly: compress it on your computer, upload the archive, select it, then click Extract in the toolbar.
Create, copy, move, rename
- Create: click + File or + Folder, enter the name and location, then click Create New File or Create New Folder.
- Copy: select the file, click Copy, enter the destination path, then click Copy File(s). You cannot copy an item into its own folder.
- Move: select, click Move, enter the path, then click Move File(s). You can also drag the file onto the folder.
- Rename: click the name, enter the new name and press Enter.
Edit a file
- Select the file, then click Edit (or right-click).
- If cPanel asks you to confirm the character encoding, pick the file's encoding in the menu, then click Edit. A wrong encoding can corrupt the file: if the text shows strange characters, cancel without saving.
- Make your changes, then save.
The File Manager does not edit a file larger than 1 MB: download it, edit it on your computer, then upload it again.
Compress and extract
- Select the items to compress, then click Compress: cPanel creates an archive (
.zip,.gzor.bz2) in the folder you specify. - To extract, select the archive then click Extract.
The .zip format only works if the server has the Zip feature: otherwise, ask your hosting provider.
Change a file's permissions
- Select the file or folder, then click Permissions.
- Tick the permissions you want or enter the value, then click Change Permissions. The default is
0644.
Delete and restore
- Select the item, click Delete, then Confirm. The item is not deleted for good: it is moved to the Trash folder.
- To get it back, click View Trash, select the item, click Restore, then confirm.
- To free the space, click Empty Trash: deletion becomes permanent.
Find a file
Use the Search box at the top right: choose All Your Files, only public_html or Current Directory, enter the file name, then click Go.
Expected result
Your files appear in the chosen folder. For a site, open your domain's address in the browser: the page that matches your index file shows up. If the old page still appears, clear your browser cache and check that your domain points to this hosting (see DNS propagation).
If something goes wrong
- Upload fails on a large file: compress it or send it with an FTP account, and check your disk space (see Disk space full in cPanel).
- You cannot edit a file: it is larger than 1 MB, or you selected several files (only the first one is taken into account). Select a single file.
- Hidden files do not show: open Settings, tick Show Hidden Files (dotfiles), then Save.
- A toolbar action is grayed out: the action is not available for the selected item (for example Extract on a file that is not an archive).
- A folder contains a Git repository: cPanel advises against changing files there by hand, to avoid problems with the repository.
FAQ
Where should I put my site's files?
In your domain's web folder: public_html for the main domain. Each additional domain has its own root, shown on cPanel's Domains page.
Can I upload a whole folder?
Not directly: the File Manager accepts files. Compress your folder as a .zip, upload it, then extract it.
How do I recover a file I deleted by mistake?
Click View Trash, select it and click Restore, as long as you have not emptied the trash. Otherwise, see Back up your site.
File Manager or FTP software?
The File Manager suits one-off uploads and quick edits. To send many files regularly, an FTP account with a dedicated client is more convenient.
Related articles
- Log in to cPanel: address, credentials and a tour of the interface
- Create additional FTP accounts in cPanel
- Back up your site, emails and databases in cPanel
- Disk space full in cPanel: find what takes up space
A site to put online? Discover our web hosting plans.