In this tutorial we will learn about the different web hosting .
Web hosting refers to the service of providing storage space and access to websites and web applications on the internet. When you create a website or web application, you need a place to store all its files, such as HTML, CSS, images, videos, and databases. Web hosting companies offer servers that are specially configured to store and serve these files to visitors who access your website.
There are many type of web hosting such as.
1.Shared hosting
2.VPS hosting
3.Dedicated hosting
4.Cloud hosting
1.Shared hosting
In shared hosting each customer has to share space and resources on the server with every other customers, including CPU time,memoryand disk space.
it is cheaper and doesnot required much technical knowledge for hosting on shared hosting. similary there are limited software application, it is slow and security at risk because of shared resources.
simple example of shared hosting is like we live in a room with the many friends, we have limited resources and if one friend damage any resources(like bulb) then we all need to paid for that .
2.VPS hosting
it referes to virtual private server which offers a shared environment as well however, its technology partitions all its users. (like some cpu,memory,disk e.t.c are partition for a particular users)
it is affortable but quite expensive then the shared hosting, it required technical khowledge,it is fast and scalable as well.
it provide root access and you can install any software as well, similary it is suitablefor small and mid business.
simply example is like that you are in a house and each friends are living in each room . each are responsible for their resources,space. if some one damage then invividual are responsible not all the people living in the house.
3.Dedicated hosting
it is the server that is fully dedicated to one user who has the right to use all the resources available. it is quite expensive and also required technical knowledge as well. it is much faster and secure.
it is mostly used for the large busniess, which has high performance. it has full access to all setting and can customization.
simple example is like , yopu sit in own private house, you can do any things you want , used any resources at any time for any things . it is totally private.
4.Cloud hosting
it is cloud base hosting where we host resources on cloud server . we will learn more about it in future.
lets learn more about the shared web hosting.
For shared hosting firstly you need domain and the web server to host website and can make easily access for the public. so firstly you need to buy any domain and web hosting server according to the requirements. then web hosting will provide ypu cpanel , through which you can perform any task easily.
How to add unlimited domain in the shared hosting.
To add unlimited or new domain in the hosting you need to perform two things
Step1: Add domain in web hosting
.Go to the capanel dashboard then move to domains section then click on domains then you will seen create a new domain button , click on this, then following interface would come.

Then you can easily add new doamin or any sub domain as well (note: if you want multiple domain in shared hosting then you must have buy multiple hosting feature hosting), then click on submit button.
finally new domain (or new sub doamin ) is added in the hosting server.
Note: you can perovide document root for the newly added domain file management basically with the same make of the domain
Step 2: Change the Nameserver of domain , which is provided by Web hosting.
For this you need to go to the domain provider site , login on that , then you will seen domain Nameserver section on that you nedd to paste nameserver that is provided by web hosting company or it can found on their site as well (on name server details).
Other option is you can aslo add A and AAA records as well for the propagation, which is found in DNS management section , where you need to add two AA record details which is added in Namserver section. mostly this method is not follow in shared hosting.
This is connect the your domain with the server .
It will take 12-24hrs to ping your domain to the server . you can check it by writing ping domain name in cmd. if it is completed it will match the shared ip address provided by your hosting site.

How to access and manage multiple domain file in cpanel
In shared hosting you have single cpanel for the multiple domain. so the question is how to manage all these domain files.
it is quite simple when adding the domain in the hosting server you mention the document directory then file resoective to the domain is lies inside that directory. Main domain files are lies inside the public_html directory.
File management in cpanel
In cpanel you can upload the file and manage it in different ways , like you can zip project file and upload it, you can upload file with the help of FTP Accounts , through git nad lastly with the help of ssh access.
1. Through FTP Account
When to used FTP account to manage file ??
i. when you want to manage file / folder by using the third party tools like filezilla,core FTP , cyberduck
ii. if you work on a team, them teeam member need access in one domain or root then you can create FTP account and provide particular domain access to that account and provide the credential like username,server ,port and password then that particualr user can upload file through like filezilla.
Follow following step
. goto the cpanel dashboard , then move to files section there you will see FTP account click on it,
. then create FTP Account with the credentials mention there, Note : Directory play a vital role so that you need to mention it creafully. mention the directory where you wnat to uplaod the file (like api.amritpanta.com.np). Then click on Create FTP account button , it will create an accounts with the credentials.
. provide creadentail to particular user , then they can easily upload file with the help of filezilla.
2. with the help of ssh access
with the help of ssh you can login to the server and then access files and folders.
method 1: using PUTTY
. go to the https://www.putty.org/ then , download PUTTY file , install it on your system
. go the cpanel dashboard copy username,hostIP and password then, open PUTTY software and then enter hostIP and click on open button, then it will open terminal , on thet enter username and then password. it will open the server on the local computer , from here you can upload nad make chnages to the server file and folder as well.
method 2: if you set up key password would not asked
. go to the security section of cpanel dashboard then click on ssh access, click on manage ssh key
. then you need to generate new ssh key for that click on Generate new key button, unique name must be given every time and fill the form with the credentials. then click on generete key button. then it will create public and private key . Note that you need to make authorized the public key if not click on manage link and then make public key authorized.
. we need private key so click on view/download button and then it will show private ssh key, now you need to convert this key into ppk formate as we are going to used PUTTY for the access. so enter the password that you enter before while making generating ssh key and then click on button to convert.
. then click on download key button.
. then open PUTTY software. enter hostIP (must have select ssh radio button). on the left section of software click on ssh , then Auth inside it there is credential section , on thta browse the private key downloaded file on private key file on authentication section.
. then click on open button , it will orpn terminal , which ask for the username , then enter username and passphare(just like password ,it is one layer of security) that will enter while generating the ssh kry , after that it will open the server on local computer
3. with the help of git repo
you can also upload file with the help of github.
i. public repo
. to upload the public repo in shared hosting you need to go to files section of cpanel dashboard , click on git version control nad then click on create button.
. clone the public repo ,provide the repository path and give any repository name , then click on create button. it will clone all the file from the git repo to the directory you mention on repositoty path section.
. after that to pull the local changes to the server , you need to go to pull or deploy section and then click on update from remote button.it will update the erecent changes on github.
ii. private repo
To upload private repo on the eserver you need to mentain ssh key of server on github settings.
. go to the ssh access and then genereate the new key with unique key_name,password, then generate the key
. we need publick key here , make authorized the public key , then click on view/download then copy the public key from there
. go to the github repository and then settings section of repo, then deploy and keys, click deploy key button and paste the publick key on that and add it.
. then go to the github repo na d copy tthe ssh git link (not https) and paste on the clone url section of the cpanel git section.
.then to pull changes you can go to pull or deploy section and click on update from remote button.
Amanda Martines 5 days ago
Exercitation photo booth stumptown tote bag Banksy, elit small batch freegan sed. Craft beer elit seitan exercitation, photo booth et 8-bit kale chips proident chillwave deep v laborum. Aliquip veniam delectus, Marfa eiusmod Pinterest in do umami readymade swag. Selfies iPhone Kickstarter, drinking vinegar jean.
ReplyBaltej Singh 5 days ago
Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.
ReplyMarie Johnson 5 days ago
Kickstarter seitan retro. Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.
Reply