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 example.com as a test domain for you web application.
Type example.com and path to the folder which contains the project files in the relevent fields:
Then you will see this sucess notice:
If you didn't create example.com in the necessary folder you will see this failure notice:
In the end you will need to restart your WAMP installation and you are good to go:
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:
127.0.0.1 example.com
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 example.com folder or else the application might not work.
Fresh info: You don't need to restart whole wamp and edit hosts
Right Click -> Tools -> Restart DNS will do it by itself