SimonHosting
  • Best Web Hosting
  • Reviews
  • Deals
  • Comparisons
  • Tutorials
No Result
View All Result
Best Web Hosting
SimonHosting
  • Best Web Hosting
  • Reviews
  • Deals
  • Comparisons
  • Tutorials
No Result
View All Result
SimonHosting
No Result
View All Result

How to Upload, Edit, and Organize Website Files in cPanel File Manager

Alfredo Vilar by Alfredo Vilar
October 17, 2026
in Tutorials
How to Upload, Edit, and Organize Website Files in cPanel File Manager
📋Editorial transparency: Some links in this guide are affiliate links; if you purchase, we may earn a commission at no extra cost to you. This never influences our recommendations or the instructions we publish.

The cPanel File Manager lets you upload, edit, move, and delete your website files straight from your browser, with no FTP client needed. This guide walks you through every common task, from your first upload to restoring a file you deleted by mistake.

It’s written for site owners on cPanel hosting, including WordPress users who need to edit a file like .htaccess or wp-config.php. Plan on 15-20 minutes to work through it all, or jump to the step you need.

The steps follow cPanel’s official File Manager documentation, which covers cPanel version 126 and later. If you’re still picking a host for a WordPress site, start with the best WordPress hosting providers we recommend.

What You Need Before You Start

  • A hosting account that uses cPanel, plus your cPanel username and password.
  • Access to the File Manager interface. According to cPanel, your host can turn this feature on or off for your account.
  • The files you want to upload, saved on your computer. Zip any folders first (Step 4 explains why).
  • A recent backup of your site before you edit, move, or delete anything important.

Not every host uses cPanel. SiteGround uses its own Site Tools panel, so its file manager looks different, as covered in our SiteGround review. The concepts below still apply, but the buttons won’t match.

The same goes for ScalaHosting, which builds most of its plans around its own SPanel control panel. You can read more in our ScalaHosting review.

ℹ️

Your screen may look slightly different

Hosts customize cPanel themes and control which features you see. If a button described here is missing or grayed out, your host may have disabled it, or the action may not apply to the item you selected.

Step 1: Open the cPanel File Manager

Most hosts give you a direct cPanel login link in your account dashboard. Many also support yourdomain.com/cpanel, but check your host’s welcome email for the exact address.

  1. Log in to cPanel.
  2. Find the Files section on the cPanel home screen.
  3. Click File Manager. It opens in a new browser tab.

The left sidebar shows your folder tree, and the main panel lists the contents of the folder you have open. The toolbar across the top holds every action covered in this guide.

Step 2: Set Your Default Folder and Show Hidden Files

By default, File Manager hides “dotfiles,” the files whose names start with a period. That includes .htaccess, one of the files WordPress users edit most often, so turn this setting on first.

  1. Click Settings in the top-right corner of File Manager.
  2. Under the default folder options, choose where File Manager opens: Home Directory, Web Root (public_html or www), Public FTP Root (public_ftp), or Document Root for: a specific domain.
  3. Check Show Hidden Files (dotfiles).
  4. Click Save.

Choosing Web Root saves you a click every time, since that’s where the files for your main website live.

Step 3: Find the Right Folder for Your Website Files

Your cPanel account has a home folder, usually /home/username, where “username” is your cPanel username. Inside it, the public_html folder is your main domain’s web root. Anything you place there can be reached from your domain.

For example, a file at public_html/images/logo.png loads at yourdomain.com/images/logo.png. Files in your home folder but outside public_html are not public.

  • public_html: files for your main domain’s website.
  • Addon domain or subdomain folders: each extra domain has its own document root. Use the Document Root for: setting from Step 2 to find it.
  • public_ftp: the folder for anonymous FTP files, which most sites never use.

Step 4: Upload Files to cPanel

Uploading works one file at a time or in batches of files. According to cPanel’s documentation, you can’t upload a folder directly through this interface, so zip it first.

Upload individual files

  1. Open the folder you want to upload into, for example public_html.
  2. Click Upload in the toolbar. An upload page opens.
  3. Drag your files onto the page, or click Select File and pick them from your computer.
  4. Wait for each progress bar to reach 100 percent.
  5. Return to File Manager using the link to go back to your folder at the top of the upload page.

Many cPanel versions show a checkbox on the upload page to overwrite existing files with the same name. Leave it unchecked unless you really mean to replace them.

Upload a whole folder as a ZIP file

  1. Compress the folder on your computer. On Windows, right-click it and choose the option to compress to a ZIP file; on macOS, right-click and choose Compress.
  2. Upload the .zip file using the steps above.
  3. In File Manager, select the uploaded archive and click Extract in the toolbar.
  4. Confirm the destination folder, then click Extract File(s).
  5. Delete the leftover .zip file once you’ve confirmed the extracted files are in place.

One archive is also much faster and more reliable than dozens of separate browser uploads.

Upload size limits

There is no single cPanel upload limit. Your host decides it through server settings. Bluehost’s help center, for instance, lists a 500 MB maximum per file, which we also cover in our Bluehost review.

cPanel also requires some free disk space to remain after an upload, 5 MB by default according to cPanel’s support documentation. For files larger than your host allows, use an FTP or SFTP client instead.

Step 5: Create New Files and Folders

Creating a file directly in cPanel is handy for small text files, such as a robots.txt file or a new folder for downloads.

  1. Click + File or + Folder in the toolbar.
  2. Type a name in the New File Name: or New Folder Name: box.
  3. Check the path in the New file will be created in: or New folder will be created in: box, and change it if needed.
  4. Click Create New File or Create New Folder.
⚠️

Back up before you edit

Editing wp-config.php, .htaccess, or any PHP file can take your site offline if you make a typo. Download a copy of the file to your computer before you change it, so you can upload the original again if something breaks.

Step 6: Edit Files in cPanel

The built-in editor is ideal for quick changes. According to cPanel, you can’t edit a file larger than 1 MB here; download it and use a local editor instead.

To keep a safe copy first, select the file and click Download in the toolbar. You can also use View to read a file without any risk of changing it.

  1. Select the file you want to change, for example .htaccess in public_html.
  2. Click Edit in the toolbar, or right-click the file and choose Edit.
  3. In the character encoding dialog, confirm the encoding. Most modern website files use utf-8.
  4. Click Edit to open the editor.
  5. Make your changes, then click Save Changes.
  6. Click Close to return to File Manager.

cPanel warns that choosing the wrong encoding can corrupt a file. If the contents appear as strange symbols, close the editor without saving and reopen the file with the correct encoding.

You’ll also see HTML Editor (Beta) for HTML files. It’s a visual, experimental editor, so the plain Edit option is the safer choice for code.

Step 7: Organize Files: Rename, Move, Copy, and Compress

Keeping your files tidy makes troubleshooting much easier later. Before moving or renaming files in a live site’s folders, remember that links pointing to the old location will break.

Rename a file or folder

  1. Select the item.
  2. Click Rename in the toolbar, or click the item’s name.
  3. Type the new name and press Enter (Return on a Mac).

Move files to another folder

  1. Select one or more files.
  2. Click Move in the toolbar.
  3. Enter the destination path, for example /public_html/archive.
  4. Click Move File(s).

You can also drag a file icon onto a folder in the sidebar to move it.

Copy files

  1. Select the files you want to copy.
  2. Click Copy in the toolbar, or right-click and choose Copy.
  3. Enter the destination path. cPanel won’t create a copy inside the same folder, so choose a different one.
  4. Click Copy File(s).

Compress files into an archive

  1. Select the files or folders to bundle together.
  2. Click Compress in the toolbar.
  3. Choose an archive type: .zip, .gz, or .bz2.
  4. Set the archive’s name and location, then confirm.
💡

Quick backup before big changes

Compress a folder before you rework it, then download the archive. It gives you a one-click restore point without waiting for a full account backup.

Find files fast with Search

  1. Use the Search menu at the top right to choose All Your Files, only public_html, or Current Directory.
  2. Type the file name.
  3. Click Go, then double-click a result to jump to its folder.

Step 8: Change cPanel File Permissions

Permissions control who can read, write, and run each file. Wrong permissions are a common cause of 403 Forbidden errors, so only change them when you know the value you need.

  1. Select the file or folder.
  2. Click Permissions in the toolbar.
  3. Tick the checkboxes or type the numeric value in the text boxes.
  4. Click Change Permissions.

cPanel defaults this setting to 0644. For WordPress, the official WordPress documentation recommends 755 for folders and 644 for files. Avoid 777, which lets anyone write to the item.

🚫

Deleting can take your site offline

Never delete files from public_html unless you know what they do. Deleting a core WordPress file, a theme folder, or .htaccess can break your site instantly. Take a backup first.

Step 9: Delete and Restore Files

According to cPanel’s documentation, deleting a file moves it to the Trash folder rather than erasing it. That gives you a safety net, as long as you don’t empty the Trash.

  1. Select the file or folder.
  2. Click Delete in the toolbar.
  3. Click Confirm.

Some cPanel versions also show a checkbox to skip the Trash and delete permanently. Leave it unchecked unless you’re certain.

Restore a deleted file

  1. Click View Trash in the toolbar.
  2. Select the item you want back.
  3. Click Restore and confirm.

Clicking Empty Trash permanently deletes everything in it. Deleted files still count toward your disk quota until you do.

How to Check It Worked

  • Uploads: open the file’s public address in your browser, for example yourdomain.com/images/logo.png.
  • Edits: reload your site in a private browser window to bypass your cache, and confirm the change appears.
  • Moves and renames: click through the pages that use those files and check for broken images or 404 errors.
  • Permissions: check the permissions column in File Manager, which shows each item’s numeric value.

If you use a caching plugin or a CDN, clear its cache too, or you may keep seeing the old version of a file.

Hosting offer: ScalaHostingMy #1 Hosting Pick
ScalaHosting logo

ScalaHosting

9.8/10 overall

The best all-around web host for performance, security, and support, independently owned and built around its own SPanel technology.

  • SPanel control panel
  • SShield security
  • Managed cloud VPS
  • Flexible scaling
  • Independent ownership
Up to
75% OFF

plans from $2.95/mo

Visit ScalaHosting↗ View offer on provider website

* Introductory price. Renewal rates apply. Anytime money-back guarantee.

Check out my ScalaHosting Review and grab the latest discount on my #1 web hosting pick for 2026.

Want the full picture first? Read our HostArmada review for its features, support, and renewal pricing.

Troubleshooting Common cPanel File Manager Problems

My upload fails or stops partway

The file is probably larger than your host’s upload limit, or your account is near its disk quota. Zip and split the files, free up space, or upload through FTP or SFTP. If it still fails, ask your host what its limit is.

I can’t find .htaccess or other dotfiles

Hidden files are switched off. Open Settings, check Show Hidden Files (dotfiles), and click Save. If the file still isn’t there, it may not exist yet; WordPress creates it when you save your permalink settings.

The Edit button is grayed out or the file won’t open

Make sure only one file is selected, since cPanel applies edits to a single file. Files over 1 MB can’t be edited in the browser, so download them and edit locally.

Extract or Compress doesn’t work with ZIP files

According to cPanel, ZIP actions only work if Zip support is installed on the server. Try a .gz archive instead, or ask your host to enable ZIP support.

My site shows a 403 error after changing permissions

The new permissions are blocking the web server. Set folders back to 755 and files to 644, then reload the page.

FAQ

How do I upload a folder in cPanel File Manager?

You can’t upload a folder directly, so compress it into a ZIP file first. Upload the ZIP file, select it, and click Extract to unpack it in the right location.

Where should I upload my website files in cPanel?

Upload them to public_html for your main domain. Addon domains and subdomains each have their own document root, which you can find with the Document Root for: option in Settings.

Can I recover a file I deleted in cPanel File Manager?

Yes, as long as you haven’t emptied the Trash. Click View Trash, select the file, and click Restore. Once the Trash is emptied, you’ll need a backup from your host.

What is the maximum upload size in cPanel File Manager?

It depends on your host, because the limit comes from server settings rather than cPanel itself. Check your host’s documentation, and use FTP or SFTP for very large files.

Should I use cPanel File Manager or FTP?

Use File Manager for quick uploads, edits, and permission changes from any browser. Use FTP or SFTP for large files, big batches of files, or regular site updates.

Next Steps

Now that you can manage files in cPanel, make a habit of downloading a backup before every edit. If you’re weighing a move to a host that includes cPanel, see how HostArmada compares to SiteGround.

Read next

  • Best WordPress hosting providers
  • HostArmada review
  • HostArmada coupon and current deals

You might also like

How to Set Up a 301 Redirect in cPanel and Test the Destination

How to Set Up a 301 Redirect in cPanel and Test the Destination

October 17, 2026
How to Use the Zone Editor to Add or Edit DNS Records

How to Use the Zone Editor to Add or Edit DNS Records

October 17, 2026
How to Change Your cPanel Password and Update Contact Information

How to Change Your cPanel Password and Update Contact Information

October 17, 2026
How to Enable Two-Factor Authentication for Your cPanel Login

How to Enable Two-Factor Authentication for Your cPanel Login

October 17, 2026
Alfredo Vilar

Alfredo Vilar

Alfredo Vilar reviews web hosting, VPS, and managed cloud services. He has 10 years of expertise in WordPress and nearly a decade of experience as a cloud engineer. He focuses on real-world performance rather than marketing claims, and he has worked with many providers. He is experienced with cPanel, web development, AI-assisted coding, Astro, VPS setups, and hosting scalability. He also runs the YouTube channel SimonHosting (2K subscribers), where he has covered cloud, web hosting, and website development for over four years.

Related articles

How to Set Up a 301 Redirect in cPanel and Test the Destination

How to Set Up a 301 Redirect in cPanel and Test the Destination

by Alfredo Vilar
October 17, 2026

Editorial transparency: Some links in this guide are affiliate links; if you purchase, we may earn a commission at no...

How to Use the Zone Editor to Add or Edit DNS Records

How to Use the Zone Editor to Add or Edit DNS Records

by Alfredo Vilar
October 17, 2026

Editorial transparency: Some links in this guide are affiliate links; if you purchase, we may earn a commission at no...

How to Change Your cPanel Password and Update Contact Information

How to Change Your cPanel Password and Update Contact Information

by Alfredo Vilar
October 17, 2026

Editorial transparency: Some links in this guide are affiliate links; if you purchase, we may earn a commission at no...

How to Enable Two-Factor Authentication for Your cPanel Login

How to Enable Two-Factor Authentication for Your cPanel Login

by Alfredo Vilar
October 17, 2026

Editorial transparency: Some links in this guide are affiliate links; if you purchase, we may earn a commission at no...

Next Post
How to Increase the PHP Memory Limit for WordPress

How to Increase PHP Memory Limit in WordPress (4 Methods)

Recommended

ScalaHosting Review 2026 My Honest Test After 1 Year

ScalaHosting Review 2026: My Honest Test After 1 Year

ScalaHosting Coupon 2026_ Early Black Friday Deal

ScalaHosting Coupon 2026: Early Black Friday Deal

October 28, 2026
How to Create FTP Accounts and Connect with FileZilla

How to Create FTP Accounts and Connect with FileZilla

October 17, 2026
SiteGround Coupon

SiteGround Coupon 2026

November 4, 2026
Thamara Cloud Review

Thamara Cloud Review 2026: Pricing, Lifetime Plans and Real Risks

October 28, 2026
Best VPS for Astro in 2026

Best VPS for Astro in 2026: 10 Hosts for Node.js SSR

October 18, 2026
Best Blog Hosting in 2026

Best Blog Hosting in 2026: 7 Hosts Tested & Ranked

October 6, 2026
Black Friday Offer: ScalaHostingMy #1 Pick
ScalaHosting logo

ScalaHosting

9.8/10 overall

Managed Cloud VPS Hosting for bloggers, ecommerce, online businesses, and growing WordPress sites.

  • Dedicated CPU and RAM
  • Fully managed service
  • Free website migration
72% OFF

Entry Cloud plan

Claim 72% off↗ View offer on provider website

72% off the Entry Cloud plan. Check billing term, renewal pricing, and current provider terms.

  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions

No Result
View All Result
  • Best Web Hosting
  • Reviews
  • Deals
  • Comparisons
  • Tutorials