To upload your website to cloud hosting, you need to transfer your files to the server using FTP, cPanel's File Manager, or Git. The fastest method for beginners is the cPanel File Manager; for more advanced workflows, FTP or Git are the professional choice.
This guide walks you through all three methods with clear instructions so your site goes live today, regardless of your experience level.
Before You Start: What You Need Ready
Before uploading any files, make sure you have:
- Hosting credentials: username, password, and server hostname. Your provider sends these by email when you activate your plan.
- Your site files: HTML, CSS, JavaScript, images, and any PHP or database files.
- Domain pointed to the server: DNS records (A or CNAME) must point to your cloud hosting IP. Changes can take up to 24 hours to propagate.
- Correct publish folder: on most hosting plans this folder is called
public_htmlorwww. Everything you upload there becomes visible at your domain.
If your site uses a database (WordPress, Joomla, an online store), you'll also need to import it. We cover that at the end.
Method 1: cPanel File Manager
This is the easiest method because it requires no additional software. Perfect if you have only a few files or make infrequent updates.
- Log in to cPanel (usually at
yourdomain.com/cpaneloryourdomain.com:2083). - Open File Manager.
- Navigate to the
public_htmlfolder. - Click Upload and select your files. You can upload a
.ziparchive and extract it there for speed. - If you uploaded a ZIP, select it, click Extract, and confirm the path
/public_html. - Delete the ZIP file once extracted to keep the server tidy.
Practical limit: the File Manager isn't ideal for large projects (more than 50 files). Use FTP in that case.
Method 2: FTP with FileZilla (Recommended for Full Projects)
FTP — or its secure version SFTP — is the standard for uploading complete websites quickly and reliably. The hosting specialists at elenlace.com always recommend SFTP to encrypt your transfer.
Setting Up FileZilla
- Download and install FileZilla (free).
- Open Site Manager (File → Site Manager or
Ctrl+S). - Create a new site and fill in:
- Protocol: SFTP (recommended) or FTP.
- Server: your hosting IP or hostname.
- Port: 22 for SFTP, 21 for FTP.
- User and password: from your hosting control panel.
- Click Connect.
Uploading the Files
- In the left panel (local), navigate to your project folder.
- In the right panel (remote), navigate to
public_html. - Select all local files and drag them to the right panel.
- Wait for the transfer queue to empty. FileZilla shows progress at the bottom.
Method 3: Git (For Developers)
If your cloud hosting supports Git — many VPS servers and some advanced shared hosting plans do — you can automate deployments and skip manual file uploads every time.
- On the server, initialize a bare repository:
git init --bare ~/repo/my-site.git - Create a post-receive hook that copies files to
public_html:#!/bin/bash GIT_WORK_TREE=/home/user/public_html git checkout -f - Make the hook executable:
chmod +x hooks/post-receive - On your local machine, add the server as a remote:
git remote add production user@IP:~/repo/my-site.git - Deploy with a simple:
git push production main
From that point on, every git push updates your site automatically. Find more developer resources in our cloud hosting article hub.
Importing the Database (If Applicable)
If your site runs WordPress, Joomla, or another database-driven CMS, you need to import the database in addition to uploading files.
- In cPanel, open phpMyAdmin.
- Select the database you created for the site.
- Go to the Import tab and upload the
.sqlfile exported from your local environment or previous host. - Update your configuration file (
wp-config.phpfor WordPress) with the new database name, user, and password.
Key Takeaways
- For small sites or quick changes, the cPanel File Manager is more than enough.
- For complete projects, FTP/SFTP with FileZilla is the fastest and most reliable option.
- Git automates deployments and is ideal for teams or frequent updates.
- Make sure DNS points to your hosting before uploading to avoid confusion.
- If your site uses a database, importing it is just as important as uploading the PHP files.
Ready to get your site online? The team at elenlace.com can help you choose the right cloud hosting plan and walk you through every step of the process.
FAQ
How long until my site is visible after uploading?
If DNS was already pointing to your hosting, the site appears within seconds. If you just changed DNS records, it can take between 1 and 24 hours to propagate globally.
Can I upload my site without cPanel?
Yes. On a VPS or dedicated server you can use SFTP directly or deploy via Git. Alternative control panels like Plesk or DirectAdmin also include their own file managers.
What happens if I upload files over existing ones?
Files with the same name are overwritten. That's why it's a good idea to take a backup before uploading a major update.
Do I need to upload the node_modules or vendor folder?
No. Those are local dependency folders. On the server, run npm install or composer install directly, or generate a production build locally and upload only the compiled output.
Compare providers
Other providers and guides worth comparing: