How to set up a Local Web Server on Windows?

Please Share On:

You want to set up a local webserver to test your webpage locally before submitting it to your live server. Then, you are landed on the right tutorial. Here, I am going to show you the steps with related images. Let’s begin:

Step 1: Download XAMPP

Download a Windows version of XAMPP. Your XAMPP file looks like the below:

XAMPP

Step 2: Start the Installation

Click on your downloaded XAMPP file. It will start your XAMPP setup. Click Next on your welcome XAMPP setup wizard.

In the next wizard, you can select the components you are going to use. Here, I am selecting all the components in case I might need them in the future.

Select XAMPP Components

Now, select the location where you want to install your XAMPP. I choose the default location and press Next.

Select the XAMPP installation location

Select Language:

Select Language

Next, a wizard will open about Bitnami for XAMPP. If you want to learn more about Bitnami for XAMPP, tick the below checkbox and click next otherwise uncheck the checkbox and click next. If you select the checkbox and press next, a website will open that has the information of Bitnami for XAMPP.

Now, you have reached the final stage of installation. Click the Next button to begin your installation.

Ready to Install
Installing XAMPP

Click Finish after the installation is complete.

Finish XAMPP Installation

3) Start XAMPP Control Panel

By default, a XAMPP Control Panel will be launched. Click “Start” the service you want to use. For now, start Apache and MySQL.

XAMPP Control Panel

You can see that the Apache service is not started. To overcome this solution, follow the below step:

a) Type “services.msc” in the window search

b) Search “World Wide Web Publishing Service” and “Web Deployment Agent Service” and stop these services.

c) Start Apache installation again

4) Open Localhost or 127.0.0.1

Open your, web browser and type Localhost. You should see the XAMPP configuration page.

5) Save your .html file

Create a . HTML file. For example home.html and save to “C:\XAMPP\htdocs\”

<html>
    <head>
        <title> My home page</title>

        <body> This is my own body</body>
    </head>
</html>

6) Open your HTML file

Open your web browser and type “127.0.0.1/home.html”. You will be able to see your home.html file.

That’s it. You have successfully set up a local web server on Windows.



You may be interested in the following topics:

Leave a Reply

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

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial