cPanel's File Manager lets you upload, edit and organize your website's files right in your browser, without installing any software.
Opening File Manager
- Log into cPanel.
- Under Files, click File Manager.
Where do my website files go?
- Your main domain's files go in the public_html folder.
- Addon domains and subdomains have their own folders. You can see each one's folder (the Document Root) in cPanel under Domains.
- Your home page should be named
index.htmlorindex.php.
Anything outside public_html (and other document roots) can't be seen by website visitors.
Uploading files
- Open the folder you want to upload to, for example public_html.
- Click Upload in the toolbar.
- Drag your files onto the page, or click Select File.
- When the upload finishes, click Go Back to return to File Manager.
Uploading a whole website
Uploading many files one by one is slow. Instead:
- On your computer, put all the files into a single .zip file.
- Upload the .zip file to the correct folder.
- Right-click it and choose Extract.
- Delete the .zip file once it's been extracted.
Security tip: Never leave backup files (.zip, .sql, .tar.gz) inside public_html. Anyone who guesses the file name can download them, including your database and passwords. Move them outside public_html or delete them.
Other useful actions
Right-click any file or folder, or use the toolbar, to:
- Edit a text file such as
.htaccessorwp-config.php - Rename, Copy or Move files
- Compress files into a .zip to download them
- Change Permissions
- Delete files (deleted files go to the Trash, which you can empty from the toolbar)
Can't see files that start with a dot?
Files like .htaccess are hidden by default. Click Settings in the top-right corner, tick Show Hidden Files (dotfiles), and click Save.
Correct file permissions
- Files: 644
- Folders: 755
Never set permissions to 777. On our servers, files or folders that are writable by everyone are blocked for security reasons and will cause a 500 Internal Server Error.
