This is how I set up my windows laptop for development with Apache/MySQL/PHP/Symfony (XAMPP with Symfony).
- Download XAMPP Installer package.
- Install XAMPP – this is really just a case of next -> next -> okay.
- Since I’m not only using my laptop for development I chose not to start any services except for XAMPP when windows starts.
- Start (from XAMPP Control Panel) Apache and MySQL (and whatever other services you need).
- Add PHP to your PATH.
- Right-click “This Computer”, choose properties.
- Advanced tab -> Systam variables (not sure, my system is in Swedish 😉 )
- Add C:\xampp\php;C:\xampp\mysql\bin (if installed in default location) to the PATH variable.
- Upgrade Pear – pear upgrade pear
- Find Symfony – pear channel-discover pear.symfony-project.com
- Install Symfony – pear install symfony/symfony
- Done! Start playing around…
Comments
4 responses to “Symfony development with XAMPP on Windows”
Thanks for the effort.
I have a question though, where do I type the commands from step 6 onwards?
for example: where do I put “pear upgrade pear”
It’s a long time ago I wrote about XAMPP and I don’t even use Windows for development anymore, but as far as I remember, since you’ve added php to your path, it might be enough with the command line (Start -> Run -> cmd.exe) and path shouldn’t matter.
The post is not clear.
I have tried, but i could not able to upgrade my pear.
Please anyone provide clear steps to install “symfony” in xampp.
As I wrote over a year ago, I haven’t used Windows, and therefore XAMPP, as a development platform for a long time. Please find a XAMPP/symfony-guide from this decade. Google is your friend.