Uploading and managing files with File Manager Print

  • file manager, zip, files, upload, public_html
  • 0

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

  1. Log into cPanel.
  2. 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.html or index.php.

Anything outside public_html (and other document roots) can't be seen by website visitors.

Uploading files

  1. Open the folder you want to upload to, for example public_html.
  2. Click Upload in the toolbar.
  3. Drag your files onto the page, or click Select File.
  4. 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:

  1. On your computer, put all the files into a single .zip file.
  2. Upload the .zip file to the correct folder.
  3. Right-click it and choose Extract.
  4. 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 .htaccess or wp-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.


Was this answer helpful?

« Back