Skip to content

Instantly share code, notes, and snippets.



Last active Aug 24, 2018
What would you like to do?
How to install LAMP stack on Windows 7 / 8 / 10


This guide will help you install LAMP stack on your Windows machine. I made this to help people who want to use or try any of my projects on their local or remote computers under Windows OS.


The fastest way to install LAMP stack on your Windows machine is to use WAMP. It comes with a lot of preinstalled modules for Apache and PHP-FPM along with Nginx and MySQL.


After installation of WAMP you need to go to http://localhost using your browser and set up new virtual host. Click Add a Virtual Host under a Tools menu. That will take you to the next step:
We will use as a test domain for you web application.
Type and path to the folder which contains the project files in the relevent fields:
add virtual hosts
Then you will see this sucess notice:
success notice
If you didn't create in the necessary folder you will see this failure notice:
failure notice
In the end you will need to restart your WAMP installation and you are good to go:
restart wamp

After that you will need to point your virtul hosts to your LAMP installation on the localhost in the C:\Windows\System32\drivers\etc\hosts file.
You will need to open C:\Windows\System32\drivers\etc\hosts with any text editor and append text like that to the end of the file:

Then you will need to git clone or download any of my repositories into this folder and unzip the archive. After you do that check that index.php file is inside your folder or else the application might not work.

Future Reading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment