One way to develop your website is to create web pages using a program on your computer. Then, you upload the HTML to your website, specifically the public_html directory. If you decide to upload your own code, there are two recommended methods: using File Manager in cPanel or using the SSH File Transfer Protocol (SFTP). In this article, we'll cover using File Manager. File Manager in cPanel is great for uploading individual files or compressed files to your domain. It could take a longer time to upload than SFTP, but you can access File Manager anywhere you have an internet connection.
1-Log into your domain's cPanel account. If you don't have a cPanel account, read Creating a cPanel User Account.
2-On the cPanel home page, click File Manager.
3-Take a look at all the directories and files on your domain. Click around and get familiar with the types of files you already have on your domain. Each folder has specific information:
Name The name of the folder or file. On your server, files and folders are case-sensitive. So, Mywebsite.html is a completely different file than myWebsite.html.
Size: How much space the folder or file is taking up.
Last Modified: The last time a file was modified on your server.
Type: This shows the different types of directories on your server. All directories that are HTTP/Unix directories are related to Apache, and other types usually correspond to the directory name.
Permissions: Who can access and edit your files? Your server uses a system called octal permissions to decide how files are accessed and changed.
The important folder for your web pages is public_html. If you want a file to be shown on your website, you upload it here.
4-Click on public_html to open the folder. Inside, you should see a directory called CGI-bin. This directory is only for scripts and putting files in this folder is an advanced technique.
5-You'll be uploading your code directly into the public_html folder. Click Upload in the top menu of File Manager and choose the files you'd like to upload.
6-When your upload is finished, click Go Back to /home/mysite/public_html.