How to Upload Website to Hosting Quickly and Easily

3 min read

upload website to hosting

Want to make your website go online? If so, you must first know how to upload a website to hosting via cPanel, here are the steps:

  • 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:

  1. Login to cPanel, then select menu MySQL Database
  2. Enter the database name, then click the button Create Database
Create new database
  1. Create a username and password in the section Add New Userthen click Create User
Add new user database
  1. Put a check button on the section ALL PRIVILEGESthen click Make Changes.
Check the all privileges section

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:

  1. Using File Manager
Choose how to upload a website using a 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.

  1. Using FTP
Choose how to upload a website to hosting 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:

  1. Login to cPanel first, then click menu File Managerin column files.
Upload website to hosting via File Manager
  1. After entering the file manager, open the directory public_html.
Select the file public_html
  1. Click Upload in the public_html directory.
Upload website files to hosting
  1. Upload files with the click of a button Select File or drag files to the available area
Upload by selecting a file or dragging a file
  1. 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.
Extract files in the public_html file
  1. Make sure the file is extracted in the public_html directory as shown, then click the button Extract File(s)
Make sure the file is extracted in public_html
  1. Once extracted, all files will be visible in the public_html folder.
  2. 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:

  1. 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.
Upload website via Filezilla FTP
  1. 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.
Upload and extract files via FTP Filzilla
  1. 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:

Website display in the form of an index

If you find the website looks like that, you need to move the website to your main domain. Here’s how:

  1. open File Managerthen go to the directory public_html.
  2. You will see a subfolder containing the website files you uploaded in the public_html directory
Move the website file to public_html
  1. Open the folder then check Select All
Click select all to move the website file
  1. Right click on the blocked area, then select Move
Right click then click Move
  1. 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.

Website upload to hosting 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.