First of all in order to use php you need a package like xampp/wamp on your computer in order to create a localhost server. I will personally choose xampp because i worked a lot more with it and i like it more but it’s just a personal choice so feel free to choose your own piece of software if you feel so.
So the first thing to do is to go to the xampp website and download the latest xampp version they released. The installing process is very straight forward and simple so i will not show you every step of the process, the only thing that i will tell you is to choose a simple path were you want to install it (ex: C:/xampp ).
After xampp is installed navigate to the installation folder and inside it you will find a htdocs folder ( C:/xampp/htdocs ), this will be the servers root folder, here you will work on your website/application or whatever you want to do.

Ok, now open xampp control panel and start your apache server by clicking on the start button that correspond to the apache. Also you can see there a MySQL module but for now it’s not necessary to use it, we will come back to it in a future tutorial.
If the server started correctly you should see the module name turned green and the success/running status in the log and also the start button now is changed to a stop button, this means that your apache server is running and that you have successfully installed xampp.
Note: If the server is not starting in 90% of the cases that means that port 80 is in use and the first thing that you should do is if you have skype installed, just close the skype application and then retry to start the server. If it’s still not working you can still do one thing, open your task manager and look for something that resemble with xvsc3 or something like that and stop that service/process.
One thought on “Installing and setting up Xampp for windows”