How to host website on your own PC

2 Min Read

Hosting your website from your PC will give you little bit experience of how hosting services work.

You can try it for small website or personal work.

To run your PC as server there are lot of software but top most popular is WAMP server and XAMP server,Here i’m using XAMP server.

So,Let’s start our hosting:

Here I’m using XAMP server , you can download latest version form here

https://www.apachefriends.org/download.html

and install it, after then add the security exception for Apache in Windows Firewall when prompted.

Now after installation:

Now double-click on XAMP icon place in taskbar, the XAMP console will show up.

Click start on Apache and then click on explorer button.

Go to your browser and type localhost. Just only to make sure that you properly install and configured XAMP. (If localhost opens XAMP homepage in your browser it means you are ready to rock with your PC).

Now on your Explorer window, copy your website content and pages in htdocs directory, Example: I made a website with a folder  “mywebsite” and copied it in htdocs directory.

Now go back to your browser and type localhost/mywebsite (replace mywebsite with your website page) in URL bar, you will see your website show up.

Congrats your website is up and running.

But this is only works on LAN

If you want to host it on WAN then you need a static IP (i.e. A static IP address is a number (in the form of a dotted quad) that is assigned to a computer by an Internet service provider (ISP) to be its permanent address on the Internet.).

Use your IP in URL bar instead of localhost then it will works on WAN means you can access your website anywhere in the world.

Share This Article
By Vinay
Follow:
Lead software engineer with over 5 years in development and 7+ years in network engineering. Recognised educator, substantial online presence, and MSc. Cybersecurity from the University of Derby, UK, BSc. Information Technology from UEW Ghana, and a Higher Diploma in Network Engineering from NIIT India.
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version