This is third part in the “Install Symfony 2 development environment on windows” series.
For part 4 – configuring php click here.
For part 2 – installing xampp click here.
For part 1 – installing git click here.
Start the XAMMP control panel.
As you can see there are already some applications running on port 80 and 443. And suprice suprice, both of them are skype. The easiest solution is to configure our web-server to run on port 8080 instead. To do click the config button on the apache line and choose “Apache (http.conf)”
There are two lines to update
change them to
and save the file.
Click on the start button om the same line as Apache
click on Allow Access.
Click start on the MySql and click allow access. So now we have Apache with php and mysql up and running.
Lets configure teh Path environments, open up the control panel and search for system.
Click on the “Edit the system environment variables” and then “Environment Variables”.
Select the Path line and click edit.
Check that the line contains something like
C:\Program Files (x86)\Git\cmd
(C:\Program Files\Git\cmd for 32 bit systems)
to the end of the line (; is a separator between the diffent paths) and click ok all the way and close the control-panel.
Open a command prompt window by searching for cmd and clicking it.
Test that you can run php by typing
you should get something similar to this:
Test that you can run git by typing
And you should get something simular to:
Close the command prompt.
Download the Windows composer installer from http://getcomposer.org/download/
Check that the path is correct and click next.
Click next to begin the installation.
So all done. As you see it updated the path variable, so if you did not close it before go ahead and do it now. Open a new command window.
So now lets make a Symfony 2 Site. Go to c:\xampp\htdocs
Create a new project
composer create-project symfony/framework-standard-edition SymfonyTest/ 2.1.3
So now we have an installation of Symfony 2.1.3 up go to the url:
And you will be greeted by this screen:
Next up.. configure PHP..