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:
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.
Now, select the location where you want to install your XAMPP. I choose the default location and press Next.
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.
Click Finish after the installation is complete.
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.
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:
- When is Father’s Day in Australia in 2024?
- What are the leap years?
- How to fix you don’t have permission to delete these folders or files?
- What is my IP Address?
- How to cancel your Capcut Subscriptions?
- How to delete your Capcut Account Permanently?
- How to make Google Chrome your default browser?
- How to disable the “/feed” URL in robots.txt?
- How to check Miracast in Windows 10 [step-by-step process]
- ShareX Audio is not working? SOLVED
- How to set up a Local Web Server on Windows?
- How to install a Localhost server on Windows?
- How to cancel your Amazon Prime subscription?
- How do I get the Amazon Access Key and Secret Key?
- How to enable/disable Prestashop maintenance mode from the database?
- How do I create shortcut keys in CamStudio?