How to create a website, make website with home web hosting Hello, step by step tutorial shows you how to Create Website, and home web hosting for multiple websites make website with free domain name and free SSL Certificate, using Xampp server, and WordPress I divided tutorial into subheadings you can find all helpful links below in the description But I strongly recommend to follow tutorial step by step to achieve full result and get full functional website Every step in the video ends with a test, anyway feel free to ask me any question These are the main steps, to Create and host a website from your home computer Step 1 Set a static local IP address for your server Step 2, Install Xampp server, Configure and secure Xampp Step 3, Get free domain names Step 4, Change ‘localhost’ to a domain name, Setup virtual hosts on Xampp Step 5, Point domain name to your server IP address, port forward your router Step 6, Create simple PHP page, and connect to MySQL database, using PHP Step 7, Download and install WordPress, manual WordPress installation with high security Step 8, Get free SSL certificate and install SSL certificate on Xampp Server Step 9, Redirect HTTP to HTTPS OK before we start lets download helpful tools Notepad ++, it is free, fast, and cool file editor As I mentioned, you can find all helpful links below in the description Next lets download and install, Opera web browser its comes with free VPN, so we can test our website from different network Enable VPN on Opera Web Browser Go to Operas settings In Advanced tab Select Privacy & security Scroll down and find VPN Tick the button to enable the VPN Done, now you can see a blue VPN badge on the left side of the address bar my IP address has been replaced with a virtual one you can change virtual location at any time OK, let’s start Step 1 Set a static local IP address for your server Right click on computer icon and open network and Internet settings Go to Ethernet Under Related settings click on Change adapter options Go to your local adapter properties Find and open Internet Protocol Version 4 (TCP/IPv4) Now, we need to find network configuration Open (CMD) command prompt and type ipconfig /all Hit Enter This is all info what we need IP Address, Subnet Mask, Default Gateway and DNS server Select Use the following IP address enter your new IP address, Subnet mask, and Default gateway that corresponds with your network setup Also type DNS server IP address thats all, Lets check it OK, IP address has been changed successfully So, this is my server IP address Step 2, Install Xampp server, Configure and secure Xampp OK, lets download and install xampp server We got a Warning So, just make sure, that User Account Control (UAC) is disabled on your system Type msconfig in the search field, to open System configuration Go to tools tab select Change UAC Settings and click launch make sure its turned off if not, drag the slider down to Never notify and click OK then you can ignore the message Here, just clear the components you do not want to install for Server leave Apache and MySQL for Program Languages just leave, PHP and phpmyadmin If you need to install another component, its up to you You can change the path, but Its better to leave Xampp installation folder by default It takes some time, so I will speed up the installation process OK, its very Important, to allow access for apache http server and also for mysqld to communicate through windows firewall So, if you will get this message, make sure to check both networks Private and Public and click allow access If not, you need to add it manually OK lets see, how to allow apps to communicate through windows firewall Open Windows Firewall Go to allow an app or feature through windows defender firewall As you see, Apache HTTP server is already in the list If not, you should add both apps manually httpd and mysqld both file formats are executable Here is the path for both apps OK, let’s do it Click on Change settings Click allow another app and browse an app which you want to add here is httpd file, but to make sure its executable, we need to change some options Open Windows file explorer and click on View Go to Options and click on Change folder and search options Choose View tab And uncheck box for, hide extensions for known file types OK, now we can see the file type OK, I already have this file in the list So let me quickly add a second one Click on Network types to choose both networks Select the file and click add Done, both files added, if you are using any antivirus firewall you should do the same for it OK, lets configure and secure Xampp server Start Apache and mysql and test Xampp server Open your web browser and type localhost Works fine You can also find all PHP info here lets test HTTPS OK, the web browser blocks https access, its ok for now because we havent install the valid SSL certificate yet OK, let me quickly explain what is http and https If we go in Xampp control panel and open config service and port settings we can see apache ports Main port 80 And SSL Port 443 the HTTP works on Port Number 80 the HTTPS works on Port Number 443 (HTTP) Hypertext Transfer Protocol is Unsecured information exchange protocol (HTTPS) Hypertext Transfer Protocol Secure is Secured information exchange protocol HTTP and HTTPS are protocols being used to transport information over the Internet OK lets secure Xampp server Open web browser and type localhost/phpmyadmin Go to User accounts Here, you can find all users First of all, delete unwanted users By default, the MySQL database provided by XAMPP contains 2 users, root and pma Root is the super user, with all privileges, and highest access rights The pma user is used by the phpMyAdmin application So we should set passwords for both users to secure database access Go to Edit privileges Then click on Change password Type your password twice and click Go make sure your password is strong, it must contain Symbols, Numbers, Lowercase and Uppercase Characters So, go back to User accounts, and do the same for all users Then when you try to access the phpmyadmin page, you will get the following errors So, lets fix it Go to phpmyadmin folder open config.inc.php file with Notepad Under the Authentication type and info make this changes change config to cookie here, enter the same password, which we just created for the root user Scroll down and find, User for advanced features And enter the same password which we created for the PMA user Then scroll up, and find blowfish_secret replace Xampp, with something else Enter any string, which has to be not less than 32 characters It may contain numbers and special characters OK, save the file, and try to access phpmyadmin page Enter your user name and password and click go OK, all errors are fixed Lets check User accounts As you see, passwords are set for all users Make sure you remember the root password we will use it later to install WordPress OK, lets, secure phpmyadmin, change slug and allow or restrict remote access to phpmyadmin Open httpd-xampp.conf file with notepad Press Ctrl+F on your keyboard and Search for phpmyadmin Along the Alias, replace phpmyadmin, with something else Save the file and restart Xampp server Then try to access phpmyadmin page Object not found, because we change it to mmkphp So, lets try with new slug Works fine OK now lets try to access phpmyadmin page remotely Access forbidden So, if you want to allow special user to access php my admin page remotely you need to know the user’s IP address Go back to your server, Open httpd-xampp.conf file under Alias, find Require local add Require IP and IP address of remote computer, that you want to allow You can do this with both private and public IP addresses Save the file and restart Xampp OK, lets check it OK, you can also allow access for all, by replacing Require local to following lines, but its security risk So, I do not recommend it Step 3, Get free domain names In this step just showing, how to get subdomain and domain name for free from different websites First website is noip.com for sub domain and second website is freenom.com for domain I am going to Create Websites, and home web hosting for multiple websites So I need two domains, but, of course, you can register two domains on one of them, its up to you OK, Let me quickly register domains for my websites OK ones you register and sign in Go to Dashboard In Hostname section, type your hostname its will be your website name in domain section, under free domains, choose a domain name And click on add hostname button OK your domain name has been created So, this is my first domain After 30 days I just need to update it OK, let me quickly register second domain on freenom I recommend to get free domain from Freenom website Type your website name and check availability Get one of these domains, they all are free Click on Use DNS Along IP addresses you have to enter your public IP address we can also choose the period, how long we need free domain Ok, then just continue your account registration Done, this is my second domain Step 4, Change ‘localhost’ to a Domain Name, Setup virtual hosts on Xampp Once you type localhost in your web browser This would bring you a web page that lists XAMPP related details So, how it works Under XAMPP root directory, there is a folder called htdocs htdocs is the document root directory, that is stored on your host’s server and that is designated for holding web pages When someone looks at your web site, this is the location they will be accessing So, thats where you should put your web site related stuff For each web site you create OK, delete default files from htdocs folder and create new folders for your domains Lets index both domains The index page is the URL or local file that automatically loads when a web browser starts In a standard website the index file is usually the page that your domain URL points to In other words, Index is the main or home page of a website or an app the index file extensions, have to be PHP or HTML, depends on which language code is used You can find download links of all helpful codes below in the description We will talk about the details of this code later OK, let’s add a temporary index page for a WordPress website also OK, now we need to redirect a static local IP address to domain name Open hosts file with notepad Type your localhost, loop-back IP address Then, press Tab key on keyboard and type your domain name Do the same with servers local IP address and repeat step for second domain Save hosts file the notepad may ask you to relaunch it in administrator mode just click yes and save it again lets check what we have OK, now we have to create the virtual hosts for each domain Open httpd-vhosts.conf file with notepad Delete everything in the file and add the following code remind you, that you can find download links of all helpful codes below in the description OK, let me quickly explain this code We have two parts of code First part of code is for http And second is for https OK first line is VirtualHost with port 80 Most web servers use port 80 as their default port If your Internet Service Provider blocks port 80, you can find tutorial how to change port in Xampp on my channel or link below in the description DocumentRoot: The folder where files of a site will exist In our case, these are two folders that we created in the htdocs folder and named them domain names ServerName: It is the URL for our virtual host The ErrorLog directive sets the name of the file to which the server will log any errors it encounters The CustomLog directive is used to log requests to the server Directory: It is the directory of our virtual host In second part for https VirtualHost use secure port 443 These four lines are used for SSL certificate As you see I comment it by putting hash-mark in front of the lines To disable any configuration instruction or add your own comments just include a hash-mark at the start of each line To enable one of these configuration instructions all you have to do is remove the hash-mark So, we activate it later, when we install the SSL certificate For now, we just need to replace YourDomain to our domain name press control + F on your keyboard Type YourDomain in a search bar Click on find next Then select replace tab And replace all selected YourDomain, to your domain name Let me quickly do the same for second website OK, I need to copy the code for the second website again and enter my second domain name instead of YourDomain done, save the file Restart Xampp server and lets check what we have First website is OK Lets check second website second website okay also Step 5, Point domain name to your server IP address, Port Forward Your Router If you remember we configure opera web browser to use VPN So, let’s try to access our website from outside, using VPN As you see, we cant reach the website So, to fix this, we need to forward port 80, and port 443 As I mentioned port 80 is for http and port 443 is for https OK, first of all, you need to access your router Open command prompt, type ipconfig find Default Gateway IP address copy and paste it into your web browser If you dont know default user name and password of your router you can find it on this website: portforward.com Click on router passwords Scroll down and find your router model, mine is ZTE Scroll down and you will find default Username and password list of your model If Default username and password doesnt work You may need to reset router, to default settings Here is a step by step guide Also you can find guide, how to correctly forward port for your router Ok, let me quickly forward ports Open ports are used, to allow a connection in to your home network from the Internet Done! Lets check it Port 80 is open successfully Lets check port 443 Port 443 is open successfully Lets visit websites now First one is ok As you see, we successfully published both websites So, now everyone with internet, can access both websites To make sure lets test websites from another computer This is my second virtual machine, with different network I will use my android hotspot Step 6, Create simple PHP page, and Connect to MySQL Database, using PHP Ok, we have already created a PHP page, this is our index page OK, let me quickly explain this code A PHP file normally contains HTML tags, and some PHP scripting code Here is an example of a simple PHP file with a PHP script that uses a built-in PHP function “echo”, to output the text “Hello World!” on a web page The declaration defines this document to be HTML5 The element is the root element of an HTML page The
element contains the visible page content TheCreate Website – Make Website with Home Web Hosting & SSL

Categories:
Tags: build website, certificate, create a website, create website, create website free, domain, free domain, free hosting, free ssl, free ssl certificate, free web hosting, free website, free website hosting, host, host website, hosting, how to create website, how to make a website, html, http to https, make website, make your own website, PHP, server, site, ssl, ssl certificate, WEB, web design, web developer, web host, web hosting, Website, website hosting, wordpress, xampp server
Related Post
Blog 2Blog 2
Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod.

✅ Best Cheap Web Hosting Providers With Lowest Price 🔥 Top 3 Picks | 2021 Review✅ Best Cheap Web Hosting Providers With Lowest Price 🔥 Top 3 Picks | 2021 Review
hey guys taylor here and if you’re interested in getting into the world of website hosting there is a ton of options available to you the problem is they have

How To Host Your Own Website Completely for FREE – (Making a Website from Scratch Part 4)How To Host Your Own Website Completely for FREE – (Making a Website from Scratch Part 4)
hey guys welcome back if you haven’t seen the first three lessons on how to attain your own website you can go check them out in the specific characteristics or