Web hosting is the process of providing storage and computing resources to make a website accessible. There are many different types of web hosting, including shared hosting, virtual private servers, dedicated servers, cloud hosting, and colocation.

The how to host a website from your computer for free is a question that has been asked many times. There are several ways to do this, but the easiest way is to use a service like

A domain and a host are needed to build a website. If I were to explain them in layman’s terms, domain refers to the name of your website, while host refers to the location where your files are kept. If you want to make a website, though, you’ll need to purchase a domain and a hosting service. However, if you are a developer or just looking to learn how to utilize a website platform such as WordPress, Magento, Drupal, or others, you should go elsewhere. Then I suggest using a local host, so stick with us and discover How to Host a Website for Free from Your Own Computer.

How to Host a Website for Free on Your Own Computer

In this post, I’ll be using a program called XAMPP to host the WordPress platform. To put it another way, I’m going to use my PC to host a WordPress website.

Step 1: First and first, we must download their necessary files, which include XAMPP and WordPress itself. From their official website, click on the links and download them.


XAMPP and WordPress are available for download.

Step #2: After you’ve downloaded all of the necessary files, you’ll need to set up XAMPP on your computer. Extract the WordPress that you got from the internet as well. To extract WordPress from the zip file, use 7-zip or WinRAR.

JavaScript is required to see this slideshow.

Step #3. Once XAMPP is installed on the PC, we must transfer the extracted WordPress to the htdocs directory on drive C, which is where the test is stored. You can see that I’ve underlined the route and changed the WordPress directory name to my name in the image below. The name of the website I’m planning to make is Abbas, therefore if you alter the directory name, it’ll still be Abbas.


WordPress should be moved to the htdocs directory.

Step #4: We’re now ready to install WordPress and test it locally, eliminating the requirement for internet hosting. First and foremost, if you can’t locate the XAMPP control panel, be sure you start it. Go to the disk where you installed XAMPP and run the XAMPP control program that you’ll find there.


Control Panel for XAMPP

Start Apache and MYSQL after the XAMPP Control Panel is up and running.


MYSQL and Apache should be running at the same time.

Click the admin button in front of the Apache to access your website’s control panel.

The next step is to establish a database for your website. To do so, go to PHPMyAdmin and select Create Database.


Go to the Phpmyadmin website.

To make a new database, go to the new tab, type a name for it, and then click create.


Make a fresh database.

Open a new tab and put http://localhost:90/Abbas/ into the address bar. Remember to substitute your port number for 90, and Abbas for the website name you specified in the htdocs directory. You’ll be sent to the WordPress Installation page after you’ve entered the URL.


Using XAMPP to install WordPress

Then press the Let’s Go button.

Host a Website from Your Own Computer

Let’s Go

Insert the database name that you established a while ago, remember this is a very essential step. Click submit after entering the user name “root” and leaving the password field blank.

Host a Website from Your Own Computer

Name of the database to insert

Now you may start the installation.

Host a Website from Your Own Computer

Install the software.

You’re ready to start after you’ve entered the following information.

Host a Website from Your Own Computer

Information about the website

After you’ve completed the WordPress installation, you’ll be sent to the login page. You’re ready to start after you’ve entered your user name and password.

Host a Website from Your Own Computer

Log in to a website in your area.


I believe it is a really useful tool for testing applications or learning Magento WordPress or any other platform on which you want to test them. So, I hope you now know How to Host a Website for Free on Your Own Computer.




The how to host your own website server is a question that has been asked many times before. There are many ways to do this, but the easiest way is to use WordPress.

Frequently Asked Questions

Can I host a website on my computer for free?

Yes, you can host a website for free on your computer.

How do I host a website on my personal computer?

There is no how to for this question.

How can I host my website for free locally?

You can host your website on a free web server like Apache or Nginx.

  • how to host your own website and domain
  • how to host a website from my laptop
  • how to host your own website for free
  • how to host a website on your computer ubuntu
  • how to host a website locally