There are two primary ways to upload your website files to cPanel: using the built-in cPanel File Manager (best for single zip archives and quick uploads) or using an FTP Client such as FileZilla (best for large site migrations or frequent edits).
Prerequisites
-
Compress your website files on your local computer into a single .zip file before uploading via File Manager.
-
Your homepage file must be named
index.html,index.php, orindex.htmfor the server to load it automatically.
Method 1: Using cPanel File Manager (Recommended)
-
Log in to cPanel.
-
Scroll to the Files section and click File Manager.
-
In the left sidebar, double-click to open the
public_htmldirectory.(Note: If uploading for an Addon Domain, open
public_html/youraddon domain.comor the specific document root folder created for that domain). -
Click the Upload button located in the top toolbar menu.
-
Click Select File and choose your website's
.zipfile from your computer. -
Once the progress bar turns green (100%), return to the File Manager tab.
-
Select your uploaded
.zipfile, click Extract in the top toolbar, and confirm the extraction path as/public_html. -
(Optional) Delete the uploaded
.zipfile to free up disk space.
Method 2: Using FTP (FileZilla)
-
Download and open an FTP client like FileZilla.
-
Connect using your FTP credentials:
-
Host:
ftp.yourdomainnameor your server's IP address -
Username: Your cPanel username
-
Password: Your cPanel password
-
Port:
21
-
-
Navigate to the
public_htmlfolder in the remote site window (right panel). -
Drag and drop your uncompressed website folders and files from your local computer window (left panel) into
public_html.
Tip: If your site requires a database (such as WordPress or custom PHP applications), upload your web files first, create a MySQL database via cPanel > MySQL Databases, and import your SQL file using phpMyAdmin.