How to host a free website from your computer?

To create a website, a domain and host are required. If I had to mention it in people’s common language, domain means the name of your website and host means where your files are stored. However, if you are trying to build a website, you need to purchase a domain and host. However, if you are a developer or just trying to learn how to use a website platform like WordPress, Magento, Drupal, etc. Next, I recommend using localhost, so go ahead and learn how to host a website from your computer for free.

How to host a website from your computer for free?

In this article, I will use a program called XAMPP and host the WordPress platform on it. To put it in simple terms, I will be hosting a WordPress site on my computer.

level 1. The first thing is that we need to download their required files which are XAMPP and WordPress itself. Click on the links and download it from its official website.

Advertising

Download XAMPP and WordPress

The second step. After downloading the required files, you need to install XAMPP on your computer. Also, extract the WordPress you downloaded from the web. You can use 7-zip or WinRAR to extract WordPress from the zip file.

This slide show requires JavaScript.

Step 3. The moment the installation of XAMPP on the computer is complete, we need to move the extracted WordPress to the htdocs directory of the C drive, where the test is installed. In the screenshot below, you can see that I have marked the path and also changed the name of the WordPress directory to mine. The name of the website I will be creating will be Abbas, which means that whatever you change the directory name it will be.

Move WordPress to htdocs directory

Step 4. We are finally ready to install and test WordPress using our computer, so there is no need for online hosting. The first thing is to make sure the XAMPP Control Panel is running if you can’t find it. Go to the drive where you installed XAMPP and there you will see an app called XAMPP control that runs it.

XAMPP Control Panel

Once the XAMPP Control Panel is launched, start Apache and MYSQL.

Run Apache and MYSQL

In front of Apache, click on admin, and your website control panel will open.

The next step is to create a database for your site, to create it we need to go to PHPMyAdmin, so click on it.

Go to Phpmyadmin

To create a new database, click New, then enter a name for the database and click Create.

Create a new database

Now open a new tab and type http://localhost:90/Abbas/ and hit Enter. Don’t forget to enter the port number instead of 90, and the name of your website that you specified in the htdocs directory instead of abbas. Once you enter the URL, you will be on the WordPress installation page.

Install WordPress on XAMPP

Then click let’s go.

Let’s go

Remember that this is a very important step, enter the name of the database you created some time ago. Enter username”rootLeave the password box blank, then click Submit.

Enter the name of the database

Now run the installation.

Run the install

Enter the following data and you are good to go.

Site details

Once the WordPress installation is complete, you will be on the login page. Enter your username and password and you are good to go.

Contact a local site

conclusion

I think it is a very useful application where you can test your applications, or you can learn Magento WordPress or any other platform that you want to test. So, I hope you have learned how to host a website from your computer for free.

Leave a Comment