Black Friday hosting deals · every offer with its renewal price

// wordpress & cpanel how-tos

How to download files from cPanel File Manager

Sometimes you need to delete a plugin, download a theme or back up one folder of your WordPress site by hand. If it's your first site, cPanel can look confusing, but the whole job takes a few minutes.

Open File Manager

Log in to cPanel and click File Manager in the Files section. It works like the file explorer on your computer, but for your site's files on the server.

WordPress uses hidden files like .htaccess. To see them, click Settings at the top right of File Manager, check Show Hidden Files (dotfiles) and save. Then open your site's folder, usually public_html, where you'll see wp-admin, wp-content and wp-includes.

Download a single file

Click the file once to select it, then click Download in the toolbar, or right-click the file and choose Download. Your browser saves it to your computer.

Download a whole folder

File Manager can't download a folder directly, so the Download button stays grey when you select one. Compress it first:

  1. Select the folder and click Compress in the toolbar.
  2. Choose Zip Archive, the easiest format to open on Windows and Mac, and click Compress File(s).
  3. Close the results window and click Reload. The new zip file appears in the same folder.
  4. Select the zip and click Download.

When you're done, delete the zip from the server. A zip of your site left in public_html can be downloaded by anyone who guesses its name.

Upload and extract a folder

Uploading works the other way round. Single files upload as they are, but zip a folder on your computer first. In File Manager, open the folder where it should go and click Upload; a new tab opens, and the upload starts as soon as you choose the file.

Go back to File Manager and click Reload, select the zip and click Extract. The files are placed in the folder you chose. Delete the zip afterwards.

Only upload files you trust. A theme or plugin from an unknown source can carry malware, so scan it first. If you prefer a desktop program for big transfers, use FileZilla with WordPress instead.

For a full backup, use the backup tools

Downloading folders is fine for one theme or plugin. For a full site backup, use cPanel's Backup or Backup Wizard (or JetBackup, if your host offers it), which also include your database. Your files alone don't contain your posts; those live in the database, as I explain in how to move a WordPress database.

FAQ

How do I download a folder from cPanel?

Select the folder in File Manager, click Compress, choose Zip Archive, then reload, select the new zip file and click Download. File Manager can only download files, not folders.

Why can't I see .htaccess in cPanel File Manager?

It's a hidden file. Click Settings at the top right of File Manager, check Show Hidden Files (dotfiles) and save.

Does downloading public_html back up my WordPress site?

Only the files. Your posts, pages and settings are in the database, so use cPanel's Backup tools or export the database in phpMyAdmin too.

Keep reading

WRITTEN BY

Fathi Arfaoui

Fathi Arfaoui has helped people choose web hosting, start blogs and build WordPress sites since 2013. He founded SiteHostingFinder to replace opinion-based hosting reviews with real prices and public data. He has been a HostGator customer since 2013 and has hosted 40-50 WordPress sites on Pressable since 2017.