Before you place a site on a hosting, make sure that the domain is connected to the hosting. In most cases, the site consists of one or two components:
1. These are site files in HTML or PHP format and content files (images and other information);
2. A database in SQL format (not all sites have it)
Therefore, to place a site in the hosting cPanel, you need to connect the domain to the hosting service, then upload the archive of site files to the main directory (in the root directory) and also import the site database (if your site has one).
How to place site files in the hosting cPanel?
3. A list of all your registered domains will open.
4. Next to the desired domain, you will see its main directory public_html and open it. You will be taken to the main directory of the hosting dedicated to this domain.
5. Delete all files except the cgi-bin folder.
6. Click the Upload button.
7. In the window that appears, use the Select File button to upload files (pre-archive all the site files in .ZIP format - mysite.zip)
8. Highlight the uploaded archive in the cPanel window and open it with the Extract command.
9. Make sure that all files are downloaded directly to the main directory, this is important.
How to import a database into cPanel?
If your site has a database file in SQL format, then you need to create a database in cPanel and import the database file. If the site you are looking for is a simple visitor site in HTML format only, then such a database will not work.
1. First, create a database.
2. Then import the database;
3. Correct the database configuration.
Ready! You have uploaded the site to the hosting cPanel. If you did everything correctly, then the site will be accessible on the Internet.