How to Easily Upload Websites to Hosting, Here’s the Easiest and Latest Way

How to Easily Upload Websites to Hosting, Here's the Easiest and Latest Way

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

  1. Choosing a service
  2. Create database
  3. Determine how to upload a
  4. Upload and extract files
  5. Synchronize database
  6. Make sure the website files are in the Public_HTML directory
  7. Checking website uploads

Even though 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!

These are the steps you need to take to upload your website to :

1. Choosing a Reliable Hosting Service

Before going to the steps on how to upload a website to , make sure you have subscribed to a reliable service. 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. In addition, also prepare the website file that 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 the MySQL Database menu
  2. Enter the database name, then click the Create Database button
  3. Create new database
  4. Create a username and password in the Add New User section, then click Create User
  5. Add new user database
  6. Put a check button in the ALL PRIVILEGES section, then click Make Changes.
  7. Check the all privileges section

3. Choose How to Upload a Website as Needed

Before starting to upload, 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 is not more than 256MB.

Using FTP

FTP or File Transfer Protocol is a tool that you can use to upload websites 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.

4. Upload and Extract 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 the File Manager menu, in the Files column.
  2. Upload website to hosting via File Manager
  3. After entering the file manager, go to the public_html directory.
  4. Select the public_html file
  5. Click Upload in the public_html directory.
  6. Upload website files to hosting
  7. Upload files by clicking the Select File button or dragging files to the available area
  8. Upload by selecting a file or dragging a file
  9. Once the upload is complete, go back to the File Manager and you will see the files uploaded to the public_html directory. Right-click on the file, then select Extract.
  10. Extract files in the public_html file
  11. Make sure the file is extracted in the public_html directory as shown, then click the Extract File(s) button.
  12. Make sure the file is extracted in public_html
  13. Once extracted, all files will be visible in the public_html folder.
  14. 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.
  2. Upload website via Filezilla FTP
  3. 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.
  4. Upload and extract files via FTP Filzilla
  5. The website has been successfully uploaded to the hosting and can be accessed via a browser.

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. Ensure Files Are in the Directory Public_HTML

You must make sure the file you upload is in the public_html directory 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 Manager, then go to the public_html directory.
  2. You will see a subfolder containing the website files you uploaded in the public_html directory
  3. Move the website file to public_html
  4. Open the folder then check Select All
  5. Click select all to move the website file
  6. Right-click on the blocked area, then select Move
  7. Right click then click Move
  8. 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.

You May Also Like

About the Author: Reynerd Grown