Static site upload using cPanel's File Manager Print

  • 1

How to Upload Your Website Using cPanel File Manager (Zip Method)

If you have built a website on your computer and are ready to put it live on the internet, uploading the files one by one can take forever.

The fastest and most reliable method is to compress all your website files into a single .zip file, upload that one file, and then unpack it directly on the server. Here is how to do it in just a few minutes.


Step 1: Prepare Your Zip File Correctly

Before you upload anything, you must zip your files the right way.

⚠️ The Most Common Mistake: Do not right-click the main folder holding your website (e.g., the "MySite" folder) and zip that. If you do, your website will load at yourdomain.com/MySite/ instead of just yourdomain.com.

The Correct Way:

  1. Open the folder on your computer that contains your website.
  2. Select all the individual files and folders inside (including your index.html file).
  3. Right-click the selected files and choose Compress (Mac) or Send to > Compressed (zipped) folder (Windows).
  4. This will create a new .zip file containing your site.
Demonstration of selecting individual files to zip, rather than the parent folder Select all individual files before zipping to ensure they extract into the correct directory.

 

Step 2: Log into cPanel & Open File Manager

  1. Log in to your cPanel account.
  2. Scroll down to the Files section and click on the File Manager icon.
The cPanel dashboard highlighting the File Manager icon

 

Step 3: Navigate to the Public Folder

File Manager shows you all the files on your hosting account, but the internet can only see files placed in one specific folder.

  1. In the left-hand menu of the File Manager, look for the folder named public_html.
  2. Click on public_html to open it.

(Note: If you are uploading a site for an Addon Domain or Subdomain, you will look for a folder with that specific domain name instead of public_html).

The File Manager sidebar highlighting the public_html directory

 

Step 4: Upload Your Zip File

  1. With the public_html folder open, click the Upload button found in the top menu bar. A new tab will open.
  2. Click the Select File button, find the .zip file you created on your computer, and open it.
  3. Wait for the progress bar to reach 100% and turn green.
  4. Click the link at the bottom that says "Go Back to..." to return to the File Manager.
The File Manager top menu highlighting the Upload button

 

Step 5: Extract (Unzip) Your Website

  1. You should now see your .zip file sitting inside the public_html folder. (If you don't see it, click the Reload button at the top of the screen).
  2. Right-click on your .zip file and select Extract from the menu.
  3. A popup box will ask you where you want to extract the files. Leave the default path as /public_html and click the Extract File(s) button.
  4. An "Extraction Results" window will pop up showing a list of all your files. Click Close.
The right-click context menu showing the Extract option on a zip file

 

Step 6: Test and Clean Up

  1. Open a new tab in your web browser and type in your domain name. Your website should now be live!
  2. Go back to the cPanel File Manager. You no longer need the .zip file taking up storage space on your server. Right-click the .zip file, select Delete, and confirm to permanently remove it.

Need Help?
If your website isn't showing up, ensure your main homepage file is named exactly index.html or index.php (all lowercase). The server will not recognize "Index.html" or "home.html".


Was this answer helpful?

« Back