How To Manage Files in cPanel
NOTE. This guide is applicable for hosting products with cPanel (they are Linux Hosting, Business Hosting, Website Builder, eCommerce Builder, WordPress Hosting, and WooCommerce Online Store).
IMPORTANT. We recommend backing up your website files, before making any changes.
No matter how you created your website, all website files will be uploaded, stored, and maintained in the cPanel File Manager.
Access your cPanel File Manager
- Log in to your cPanel.
- Scroll down to the Files section and click File Manager.
Once you're in the File Manager, you can do the following actions:
- Change the File Manager settings
- Create files or folders
- Delete files or folders
- Rename files or folders
- Edit files
- Copy files or folders
- Move files or folders
- Upload files
- Download files
- Update files or folders permissions
- Compress files
- Extract a compressed file
Change the File Manager settings
To change the default folder to open when you access your File Manager, follow these steps:
- Click Settings on the upper right part of the File Manager interface.
- Select a folder to open by default:
- Home Directory — The main folder for your account.
- Web Root (public_html or www) — The most direct route to your files.
- Public FTP Root (public_ftp) — The folder for your FTP files.
- Document Root for: — The folder for the domain that you select from the menu (applicable if you have addon domains in your cPanel).
- On the same interface, you can also check the Show Hidden Files (dotfiles) option, so you will be able to see files with filenames that start with a dot (e.g., .htaccess, .well-known, .trash).
- Click Save.
Create files or folders
To create files or folders, follow these steps:
- Open the folder or directory where you want the new file or folder to be created.
- Click File or Folder on the File Manager toolbar.
- On the next interface, enter the new item's name in the New File Name: or New Folder Name: text box.
IMPORTANT. Just leave the New File will be created in: or New Folder will be created in: text box empty if you've followed step 1. If not, you need to specify the directory name where you want the file or folder to be created. It is spelling and case sensitive, so you need to get the directory name right.
- Click Create New File or Create New Folder.
Delete files or folders
To delete files or folders, follow these steps:
- Right click on the file or folder you want to delete.
NOTE. When you delete files or folders, the system does not permanently delete the files. Instead, the system moves the files to the Trash folder. Check Skip the trash and permanently delete the files to permanently delete the file or folders.
- Click Confirm.
Rename files or folders
To rename files or folders, follow these steps:
- Right click on the file or folder you want to rename.
- Select Rename from the options.
- Enter a new file or folder name.
- Click Rename File.
Edit files
To edit files, follow these steps:
- Right click on the file you want to edit.
- Click Edit from the options.
- Click the Edit button to open the file editor.
- Make the changes that you want.
- Click Save Changes at the top of the page when you're done.
Copy files or folders
To copy files or folders, follow these steps:
- Right click on the file or folder that you want to copy.
- Select Copy from the options.
- Enter the folder or directory name where you want to place the copied file or folder.
IMPORTANT. All files inside the folder will also be copied. If you accidentally put an incorrect directory or path name, the system will automatically create a new folder with the directory or path name you've indicated.
- Click Copy Files.
Move files or folders
To move files or folders, follow these steps:
- Right click on the file or folder that you want to move.
- Select Move from the options.
- Enter the folder or directory name where you want to move the file or folder.
IMPORTANT. All files and folders inside the folder you want to move will also be moved. If you accidentally put an incorrect directory or path name, the system will automatically create a new folder with the directory or path name you've indicated.
- Click Move Files.
You can also move files by dragging a file into a new destination folder.
Upload files
To upload files, follow these steps:
NOTE. You can only upload one file at a time. If you want to upload multiple files, compress them into one file first.
- Go to the folder or directory path where you want the files to be uploaded.
- Click Upload at the top of the page.
- On the next page, click Select File. This opens your computer's file explorer or file finder.
- Locate and select the file that you want to upload.
- Click Open or the relevant button in your file explorer or file finder to proceed with the upload.
NOTE. If you want to overwrite the existing files in your cPanel folder, check the Overwrite existing files checkbox.
Download files
To download files, follow these steps:
- Right click on the file that you want to download.
NOTE. You can only download one file at a time. If you want to download all the files inside a specific folder, compress them into one file first.
- Select Download from the options.
Update files or folders permissions
To update files or folder permissions, follow these steps:
IMPORTANT. cPanel will automatically assign a default file or folder permissions depending on the type of file and location you put them. Only do this action if you are an advanced user and know exactly what you are doing. You can read the cPanel blog about file and folder permissions to learn more.
- Right click on the file or folder you want to modify.
- Select Change Permissions from the options.
- Use the checkboxes or text boxes to change the item’s permissions.
- Click Change Permissions to save the changes.
Compress files
To compress files into one folder, follow these steps:
- Right click the folder that contains all the files you want to compress.
- Click Compress from the options.
- Select a compression type.
- Click Compress Files.
Extract a compressed file
To extract a compressed file, follow these steps:
- Right click the compressed file.
- Select Extract from the options.
- Click Extract Files.
To learn more about cPanel File Manager, read the cPanel File Manager documentation.