Run a Web Server On Windows (+MySQL)

Run a Web Server On Windows (+MySQL)

Hosting wordpress, forums, html and MySQL databases are just a few things XAMPP can do. This tutorial will teach you how to run a web server from home or on a VPS/dedicated server that you have rented somewhere. The tutorial is recorded and written on Windows 10 but should work just fine on earlier Windows versions. Linux is a bit different though. XAMPP is perfect for coding websites, bug testing, hosting databases for websites or game servers. And it is free! The main web server behind the XAMPP application is Apache. You will also get access to phpmyadmin for your SQL administration.

Required programs

You will need to download XAMPP here:

I recommend always downloading the newest version.

Install the program

To install XAMPP, simply press on the .exe file that you just downloaded.

Follow this process:

Click “OK” when this window appears.

After that click “Next” on the next step.

Here you can select what you want to install. If you only want a web server you only need to select “Apache”. If you also want a MySQL server make sure to tick the box next to “MySQL”. And to make it easy to manage the MySQL server also select “phpMyAdmin”, The rest is optional, pick whatever you need. Then click “Next”.

On this step you can select a location for XAMPP, most of the time it’s best to leave it at default. I will move it to my secondary SSD though.

Now untick the box and click “Next”.

Simply press “Next” to begin the install.

When you get this window press “Allow access”.

Simply press “Finish”.


Start the server

Open the XAMPP Control Panel that looks like this:

Then press “Start” on both Apache and MySQL.

Upload your files

In the panel, locate “Explorer” and click on it. It will take you to your XAMPP install, in the XAMPP install locate a map called “htdocs”, delete all files in this folder.

Now simply drop your website into this folder and it will be live.

View your website

Start your web browser and type “localhost” in the address bar. Press enter and your website will appear.

To make it public you will have to portforward port 80.

You are done!

Now just double-click the start.bat to start the server.

Leave a Reply