Deploy a Website from a ZIP Archive on a Hosting Server
If you have a ZIP archive containing a WordPress, Joomla, static HTML, or PHP website, you can deploy it on your hosting server easily. Below are step-by-step methods for different hosting environments.
For the cPanel side of website setup that runs alongside this, see cPanel Hosting Login: How to Access and Add a Website; for the FTP-only side, phpMyAdmin guide covers the database half of a typical CMS restore.
Deploy ZIP Archive Using cPanel
If your hosting provider offers cPanel, this is the easiest method for deploying your website.
Step 1: Upload the ZIP File
- Log in to cPanel: Access your cPanel at
https://yourdomain.com/cpanelor the URL provided by your host - Navigate to File Manager: Find "File Manager" under the "Files" section
- Open the correct directory:
- For main domain:
public_html/ - For subdomain:
public_html/subdomain/ - For addon domain:
public_html/addondomain/
- For main domain:
- Upload ZIP file:
- Click "Upload" button in the toolbar
- Select your
.zipfile from your computer - Wait for upload to complete (progress bar shows status)
Step 2: Extract the ZIP Archive
- Locate the uploaded ZIP file: It should appear in your File Manager
- Right-click the ZIP file or select it and click "Extract" from the toolbar
- Choose extraction location:
- Extract to current directory (public_html/)
- Or extract to a subfolder if you prefer
- Click "Extract File(s)" and wait for extraction to complete
Step 3: Organize Files (If Needed)
If files extract into a subfolder (e.g., public_html/website/):
- Open the subfolder in File Manager
- Select all files and folders (Ctrl+A or Cmd+A)
- Click "Move" from toolbar
- Enter destination:
public_html/ - Click "Move File(s)"
- Delete the now-empty subfolder
Step 4: Test the Website
- Open your browser
- Visit your domain:
https://yourdomain.com/ - If the website doesn't load, check:
- Correct files are in
public_html/ - Main file is named
index.php,index.html, orindex.htm - No .htaccess conflicts
- Correct files are in
Deploy ZIP Archive Using FTP (FileZilla)
If your hosting doesn't have cPanel or you prefer using FTP, this method works with any hosting environment.
Step 1: Prepare Your FTP Client
- Download and install FileZilla: https://filezilla-project.org/
- Gather FTP credentials: From your hosting provider, you'll need:
- Host/Server: ftp.yourdomain.com or server IP
- Username: Your FTP username
- Password: Your FTP password
- Port: Usually 21 (default)
Step 2: Connect and Upload ZIP File
- Open FileZilla and enter your FTP credentials in the top bar
- Click "Quickconnect" or press Enter
- Navigate to website root:
# For main domain /public_html/ # For VPS/dedicated servers /var/www/html/ or /home/username/public_html/ - Upload the ZIP file:
- In the left panel (Local site), navigate to your ZIP file location
- Drag the ZIP file from left panel to right panel (Remote site)
- Monitor transfer queue at the bottom
Step 3: Extract the ZIP File
After uploading, you need to extract the ZIP file. Choose one method:
Method A: Extract via cPanel (If available)
- Log in to cPanel
- Go to File Manager
- Find and extract the ZIP file as described in previous section
Method B: Extract via SSH (If you have SSH access)
# Connect via SSH first
ssh username@yourdomain.com
# Navigate to website directory
cd /home/username/public_html/
# Extract ZIP file
unzip website.zip
# If unzip is not installed, install it:
sudo apt install unzip # Ubuntu/Debian
sudo yum install unzip # CentOS/RHEL
Method C: Extract locally and upload files individually
- Extract ZIP file on your computer
- Upload entire extracted folder via FTP
- This avoids extraction on server but takes longer


