Uploading website files with cPanel File Manager

File Manager is useful for a small deployment or a single file change without installing an FTP client. The correct destination matters: each domain can have its own document root, and uploading into the wrong folder will not update the intended website.

What you need before you begin

Open Domains and confirm the target’s Document Root. Keep a backup of anything you will replace. For a larger release, use a deployment or file-transfer workflow that lets you inspect many changes and retry failed transfers.

01 Upload website files with cPanel File Manager

  1. Open File Manager and navigate to the verified destination. The primary site often uses public_html, but do not assume every domain uses that folder.
  2. Select Upload and choose the local file. Read any overwrite prompt carefully; replacing a file changes the live site immediately.
  3. Wait for the upload to complete, return to the file list and refresh it. Check the filename, size and destination.
  4. For a folder of files, upload a suitable archive and inspect its contents and extraction path before extracting. Avoid creating an unintended extra top-level folder.
  5. Remove temporary installation archives from public access after confirming the deployment. Keep backups in protected storage rather than beside publicly served pages.

02 Example: avoid an extra folder during extraction

Suppose a static-site package is intended to place index.html in the domain document root, but the archive contains a top-level folder called site-build. Extracting that archive as-is may place the file inside site-build/index.html instead of the intended root.

Inspect the archive structure before extraction and compare the resulting directory with the verified document root. Correct the package layout through the planned deployment process, then test the exact public address. Do not move unrelated application folders simply because their names look similar.

Confirm the expected result

Visit the exact public URL and test the changed function. If the browser shows old content, compare the uploaded file and relevant application/CDN cache before repeating the upload.

Why did the File Manager upload fail or break the website?

A failed upload may reflect quota, upload-size limits or permissions. Do not broadly change permissions to make an upload succeed. If the site breaks, restore the replaced file from your backup and review the package before trying again.

Sources and further reading

  • 0 Users Found This Useful
  • cpanel-whm, web-hosting
Was this answer helpful?

Related Articles

Creating files and folders in cPanel File Manager

Create a folder to organise website assets or a file for a specific application task. An empty...

Editing a text file in cPanel File Manager

File Manager can make a focused change to a website text or configuration file. Saving writes...

Finding and editing .htaccess in cPanel

The .htaccess file can control redirects, access restrictions and application rewrite rules on...

Creating a restricted cPanel Web Disk account

Web Disk provides WebDAV access to server files. An additional Web Disk user can manage a...

Connecting a computer to cPanel Web Disk

A WebDAV client can connect to cPanel Web Disk so remote files appear in a desktop...