How to Build Web Hosting Server from Scratch at home - Host your website for free!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey what's up guys so you want to set up your own hosting server at home maybe at your office well in this video guys i'm going to show it to you step by step guide until we get my website online here are the list of the things that we need one you need pc or laptop where you're going to install operating system control panel and that we are going to run your website or web app 2. pen drive 4gb minimum to create bootable centos usb stick 3. internet connection with static ip four full access of your wi-fi or router i have have full control of my router if you do not have access have call your internet service provider and get those access all right let's begin setup now we need to download centos 7 from official website installations of panel and whm on centos servers must use centos version 7. search centos 7 in google and enter into website the minimal installation image contains only the packages needed to have a functional centos system the dvd image contains all the packages that can be installed using the installer most likely you will want to download the minimal version so click and download centos 7 minimal version okay now we need to create bootable centos usb stick creating bootable centos usb stick on windows is a relatively straightforward process just follow the steps there are several different applications available for free use which allow you to flash iso images to usb drives in this tutorial we will create a bootable centos usb stick using etcher etcher is a free an open source utility for flashing images to sd cards and usb drives and supports windows mac os and linux once the installation file is downloaded double-click on it to launch the installation wizard follow the installation wizard steps to install etcher on your windows desktop creating a bootable centos usb stick with etcher is a pretty much straightforward process insert the usb flash drive into the usb port on your computer and launch etcher click on the select image button and locate your centos dot iso file if you downloaded the file using a web browser then it should be stored in the downloads folder located in your user account thatcher will auto select the usb drive if only one drive is present otherwise if more than one sd card or usb stick is attached make sure you have selected the correct usb drive before flashing the image to start the flashing process click the flash image button the process may take several minutes depending on the size of the iso file and the speed of the usb stick once completed the following screen will appear informing you that the image is successfully flashed click on the x to close the edger window that's all you have a bootable centos on your usb stick now you need to install centos 7 in your server machine before installation you need to connect ethernet cable to your server to boot operating system connect pendrive to server machine and start installation process after booting the installation usb drive select test this media and install centos 7 in the boot menu and press enter the installation summary is the central screen to set configuration options you can display and modify the individual options in any order if a configuration option was automatically configured correctly no further action is required however if items are marked with an exclamation point icon you must complete the configuration for these items before you can begin the installation select installation destination select the target disk a check mark is displayed next to the selected target the selected disk is partitioned automatically click done to return to the installation summary on the installation summary screen click begin installation the installation starts and the configuration screen is displayed during the installation select root password enter the password for the root user and confirm it click done and wait for installation complete once cento is successfully installed click reboot now enter username root and password for root user what you previously said on installation process set up network on centos 7 minimal first type nmcl id command in your terminal for quick list ethernet card installed on your machine type nmtui command in your terminal to open network manager after opening network manager chose edit connection and press enter use tab button for choosing options now choose your network interfaces and click edit choose automatic in ipv4 configuration and check automatically connect checkbox and press ok and quit from network manager after successful network setup we need to access this server from client machine for that we need to know server machine ip address open browser and client machine and type 192.168.1.1 and enter this will be your default router ip you will get router login screen like this enter your router username and password most of the internet providers use default router username and password if not working call your isp and ask login details of your router once you logged in check devices connected on your router here you can see my server is connected via ethernet card so connection type is ethernet or wired next to that you can find device i p address this is your device ip for local network you can connect this from local network you cannot access this device from other network like through internet connecting server using secure shell protocol ssh next we need to download putty and install it after installation open putty and enter server ip address like this and enter server connected now enter root username and password the first step you need to perform on a fresh installed centos system is to make sure the system is up to date with the latest kernel and system security patches software repositories and packages to fully update a centos 7 system issue the following commands with root privileges yum check update yum upgrade [Music] [Music] [Music] [Music] so [Music] do [Music] [Music] do [Music] [Applause] [Applause] [Music] [Applause] [Music] [Music] after the upgrade process completes install system utilities on centos 7. install required system utilities on centos 7 type following command and press enter after successful setup type of config and check it my current tip is 192.168.1.21 this hip assigned by my router and i can access server from this local network work i cannot access this server through internet so i need to connect this server to internet then only i can access this server from anywhere through internet now i going to assign my internet ip to the server open browser and type 192.168.1.1 and login check your public app this ip address provided by your isp my public app is 117.96.203.111 now we need to do port forwarding whatever requests comes to my public ip this setting will forward to based on setting i need to forward ports in order for outside traffic to get into your network think of your router as being a huge electric fence or wall with a few doors or openings this electric fence or wall serves as your barrier and security blanket from the scary outside internet world your router comes pre-configured with a few of those doors or ports open to let you access the internet but the others are closed tight so in order to run a mail server game server access your computer remotely etc you will need to open an extra door or two in your router in order for the outside traffic to get inside this is called port forwarding now i am going to open port 22 for ssh server connection then open your putty and enter your public ip address and click open here you can see that my server connected to public ip and now i can access this server from anywhere using internet next we're going to install cpanel most popular control panel for web hosting go to cpanel website and copy installation command and paste into ssh and enter i am getting cpanel installation error the error network manager is installed and running cpanel does not support network manager so i am going to stop and disable network manager using system ctl stop network manager and system ctl disable network manager run cpanel installation script again this will take some time complete [Music] [Music] [Music] so [Music] so [Music] so [Music] so [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] [Music] you [Music] so [Music] [Laughter] [Music] um [Music] so [Music] so [Music] [Music] my [Music] bye [Music] bye [Music] [Music] after successful installation copy one time auto login url from here and paste into browser and enter cpanel url is not opening because cpanel default installation port is 2086 and 2087. these ports are blocked by and rounder so i am going to do port forwarding in my router once you added port forwarding reload browser and check the one-time auto login url cpanel admin page loaded successfully log in using your root username and password on the new installation landing page read and then accept the terms and conditions by clicking the agree to all button on the get started with the free cpanel trial page choose login to login to the cpanel store you must sign into the cpanel store in order to associate your trial license to your account if you don't have a cpanel store account you should still choose login and you will be given the option to create one then the authorization request page that appears enter your email address or username and the password for your panel store account if you don't have a panel store account then choose create account and follow the prompts to create your nuke panel store account you will be asked to enter your email address and will be sent an email to set your panel store account password we recommend that you set your panel store account password using a new browser tab when your password is set you can close that tab and return to your instance to authorize your account and continue to the next step of this procedure after you authorize access your cpanel and whm instance will acquire a 15-day trial license that is associated with your cpanel store account next use server setup to continue next enter the email address you wish to use to receive status notifications then add name servers your domain will use once done click the finish button to confirm we successfully installed cpanel now in this video we covered 1. creating bootable centos 7 usb stick 2. installing centos 7 and server machine 3. converting local machine to public accessible server using port forwarding 4. installing cpanel on server in next video we will cover detailed cpanel configuration if you want any clarification please post your question in comment section thank you for watching my video if you like this video please press like button subscribe to my channel and press the bell icon for never miss an update
Info
Channel: RSC Prime Tech
Views: 64,304
Rating: undefined out of 5
Keywords: Server setup, web server, linux server, centos, centos installation, cpanel installation, port forwarding, server at home, build own server, dedicated server, hosting server setup, old pc to server setup, old laptop to server, host website free, build server at home, home server
Id: zKe8peCkcz4
Channel Id: undefined
Length: 57min 1sec (3421 seconds)
Published: Sun Feb 20 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.