After purchasing hosting now its time to learn Uploading/Hosting Website. If you have not read our article about hosting kinds so read it ‘Types and Kinds of hosting‘.
If you are planning to develop website on WordPress, Joomla CMS or any other CMS, so don’t design website on localhost (Offline in local computer). But develop it live on hosting (CMSs like WordPress, Joomla could be install on hosting by one click. Details have been shared in our article ‘Hosting cPanel‘). However HTML/CSS, custom php, ASP.NET websites could be develop on local computer and then will be uploaded on hosting.
For static website (HTML/CSS website) there is no database. Only HTML, CSS, images and other files will be uploaded. While in Dynamic website there will be uploaded database also, so we will explain files uploading methods for both websites.
If you have developed HTML, Custom php, WordPress, Joomla website on your local computer and want to upload it on your hosting, so you can follow one of these two methods;
Method No.1 (Using file Manage)
Method No2. (Using FTP Account)
More in this article;
Now read about Method No.1
Step: 1 Login to cPanel
If you don’t know about hosting cPanel, read our article ‘Hosting cPanel‘. Login URL, login username and password for hosing cPanel will be provided by hosting company or usually cPanel could be access by typing /cpanel after domain name. For example http://yourdomain.com/cpanel
Once you login to your hosting cPanel, you can upload website data on hosting by two methods, (i) File Manager or (ii) FTP account. It is recommended that 1st read about both methods then decide to choose one of them. Now I will explain both.
Step: 2 File Manager
In Hosting cPanel under ‘Files‘ group Click on ‘File Manager‘, button.
Sometimes this ‘Files’ group collapse by default, so expand it first. When you will click on File Manager, it will open in a new tab and root directory of your hosting will open. Now click on ‘public_html‘ or ‘www‘ folder.
You are now in your website folder. Click on ‘Upload Button‘.
Now File uploader page will open. Click on ‘Select File‘ button. Your computer files browser dialog box will open. Start Uploading files and folders as they are in your local computer.
Recommendation: First zip all your website files and upload one zip file. After uploading zip file, unzip it in via File Manager.
In this method (File Manager) if internet connection disconnects, you could not resume uploading. Incomplete data file will be in ‘tmp‘ folder, which is in root directory.
For uploading file on hosting it is very popular way and resume-able in case of internet disconnection. For FTP files upload method you have to create FTP account first then install FTP client 2nd.
Step 1: Creating FTP Account:
In Files group click on ‘FTP Accounts‘ button (If you could not find this button, ask hosting company to enable FTP for your cPanel.
Now create FTP account. You can use your name in Login field (Don’t use capital letters or space for username). If you have add many domain names in cPanel, so select the domain name for which you are creating FTP account. Create Password (Remember this password for login via FTP client) and click on ‘Create FTP Account‘ button.
Once FTP Account created successfully, go back to FTP Accounts page and save FTP account details by clicking on ‘Configure FTP Client‘
Save FTP username, FTP server (Password will not be shown).
Step 2: Download/Install FTP client
After creating FTP account you need an FTP client software which will allow you to connect with your hosting files uploading directory.
There are many free FTP clients available on internet for example Filezilla, Core Ftp, WinSCP etc. you can download any of these (Ask your hosting company for best FTP client for your hosting). Download links have been linked with there names.
After downloading install one of them and open it. You will be asked for username, Host/Server Name, Port and Password. Enter login credentials which you have saved and login (Filezilla screenshot shared bellow)
After login you will see two columns. In left columns your local computer shown while in right column will be shown you hosting file uploading directory.
You can brows your website folder from left side. Open the folder where you have zipped your website (You can upload files one by one also but it is not recommended). Right click on zip file and click on ‘Upload‘.
In this FTP method files will be start uploading and could be resume uploading in case of internet dysconnectivity.
If your website files size is less then 200MB and you have good internet connection then use 1st method (File Manager) otherwise 2nd method (FTP files upload) is better.
3. Uploading/Hosting Static or Dynamic Websites:
Uploading/Hosting Static website:
There is some difference in Uploading/Hosting Website, if it is a static website so no need to worry about database, only HTML, CSS, XML, JPG etc. files will be uploaded (follow one of above methods). While in dynamic website there is need to upload database as well.
Uploading/Hosting Dynamic website:
To upload a dynamic website (which have a database also) you have to complete two tasks:
- Uploading website files (As told above)
- Uploading database and need to connect database with website.
This 2nd task need a complete article, so read following article: