- Choosing a hosting service
- Create database
- Determine how to upload a website
- Upload and extract website files
- Synchronize website database
- Make sure the website files are in the Public_HTML directory
- Checking website upload results
Although it looks quite technical, it’s actually quite simple to implement. Curious about the detailed explanation? Let’s see the guide on how to host this website to the end!
Complete Way to Upload Website to Hosting
These are the steps you need to take to upload your website to hosting:
1. Choosing a Reliable Hosting Service
Before going to the steps on how to upload a website to hosting, make sure you have subscribed to the service hosting reliable. Both in terms of speed, security and resource options that can be tailored to your needs.
Once your hosting is active, you will get access to cPanel to proceed to the next step. Besides that, prepare too website files which you will upload.
2. Setting Up Database Before Uploading Data To Hosting
The first step on how to upload a website to hosting is to create a database as a place to store all website files. Especially, for websites that have databases such as WordPress websites.
If the website to be developed does not use it, you can skip this step.
So, to create a database, here are the steps:
- Login to cPanel, then select menu MySQL Database
- Enter the database name, then click the button Create Database

- Create a username and password in the section Add New Userthen click Create User

- Put a check button on the section ALL PRIVILEGESthen click Make Changes.

3. Choose How to Upload a Website as Needed
Before you start uploading, you need to choose one of the tools for uploading website files to your hosting, namely:
- Using File Manager

File manager is a tool found in cpanel for file management, such as creating, editing, opening, moving, and deleting files.
You can use File Manager to upload website to hosting if the website file size no more than 256MB.
- Using FTP

FTP or File Transfer Protocol is a tool that you can use to upload a website to hosting. Unlike the File manager, FTP does not have a maximum upload file size limit.
There are several popular FTPs you can use, such as Filezilla, SmartFTP, CoreFTP, or an FTP client.
Read Also: How to Install Candy CBT on cPanel
4. Uploading and Extracting Website Files
Now, after knowing the tools for uploading websites, now we will discuss how to use them.
4.1. Upload Website to Hosting Via File Manager
Here’s how to upload a website to hosting with a file manager:
- Login to cPanel first, then click menu File Managerin column files.

- After entering the file manager, open the directory public_html.

- Click Upload in the public_html directory.

- Upload files with the click of a button Select File or drag files to the available area

- After the upload is complete, go back to the File Manager and you will see the files uploaded to the directory public_html. Right-click on the file, then select Extract.

- Make sure the file is extracted in the public_html directory as shown, then click the button Extract File(s)

- Once extracted, all files will be visible in the public_html folder.
- The website has been successfully uploaded and can be accessed via a browser!
4.2. Upload Website Via Filezilla FTP.
Here’s how to upload a website to hosting using FTP:
- Install and connect FTP with hosting first. Fill in the FTP details with the following data: Host = (your hosting server IP), Username = (your cPanel username), Password = (cPanel password), Port = 21.

- After successfully connecting to the server, click the website directory (in this example the WordPress directory). Then, also open the destination directory (public_html). Move all website files to the public_html directory.

- The website has been successfully uploaded to the hosting and can be accessed via a browser.
Also read: Infographic Tips for Choosing Web Hosting
5. Synchronize Database In MySQL
After all the files are uploaded, you need to synchronize the database configuration on the hosting. Usually the database file is named, config.php, connection.php, or database.php.
Modify and adjust the following data with your database data:
- db_name: (mySQL database name)
- db_user: (MySQL database username)
- db_password: (mysql user password)
6. Make sure the file is in the Public_HTML directory
You have to make sure the file you upload is in the directory public_html or document root. Because, if it turns out that the website files are in a subfolder, then your website will only display an index page like this:

If you find the website looks like that, you need to move the website to your main domain. Here’s how:
- open File Managerthen go to the directory public_html.
- You will see a subfolder containing the website files you uploaded in the public_html directory

- Open the folder then check Select All

- Right click on the blocked area, then select Move

- Once everything is done moving back to public_html. Then delete the files and folders that are already empty.
7. Checking Website Upload Results
If you have done all the steps above, now try to check whether your website is successfully online?
Please access your domain name via a browser. Well, in this tutorial example, you will see the default WordPress installation page. This means that the website upload process has been successful.

Let’s Immediately Upload Your Website to the Best Hosting!
Well, that was the way of hosting a website that you can try. Pretty easy, right? Make sure you do it right from database creation to placing files in the public_html directory.
Don’t forget to use the method of uploading a website to hosting according to the needs of your website. Can use File Manager as the easiest way. Or you can use an FTP client if your website files are big enough.