archives
- January 2010 (1)
- November 2009 (1)
- August 2009 (1)
- June 2009 (2)
- May 2009 (11)
- April 2009 (5)
- March 2009 (4)
- February 2009 (3)
- January 2009 (5)
- December 2008 (1)
- November 2008 (2)
- October 2008 (4)
- September 2008 (2)
- August 2008 (4)
- July 2008 (10)
- June 2008 (5)
- May 2008 (5)
- April 2008 (10)
- March 2008 (13)
- February 2008 (3)
- January 2008 (7)
- December 2007 (7)
- November 2007 (9)
- October 2007 (10)
- September 2007 (1)
blogroll
Interest in Symfony has increased since del.icio.us announced it developed its new version on the Symfony framework. If you are running Vista and you need to get a quick Symfony development environment going, then look no further. Follow these easy steps to going in 20 minutes.
1. Install XAMPP
Just follow the instructions for installation and then:
- During the install, specify XAMPP to be installed under C:\Program Files because of Vista security restraints.
- Run http://127.0.0.1/security/index.php to secure XAMPP.
2. Install Symfony
- Press the Win key
- Type cmd
- Press Ctrl+Shift+Enter
- Confirm the elevation prompt
- cd “C:\Program Files\xampp\php”
- pear upgrade PEAR
- Note: You will get a pop-up with “CLI has stopped working”, you can safely close that (this will happen during the other command prompt steps as well).
- pear channel-discover pear.symfony-project.com
- pear install symfony/symfony
- pear install phing/phing
3. Setup Your Application
Add symfony to your path:
- Start Orb -> Computer (right click and choose properties)
- Advanced system settings
- Environment Variables…
- Click on the Path System variable and click edit
- At the end of the string, append ;C:\Program Files\xampp\php;C:\Program Files\xampp\mysql\bin
Restart the command prompt for the path variable to set.
Set up a sample project:
- cd [path to your workspace]
- mkdir myproject
- cd myproject
- symfony init-project myproject
- symfony init-app myapp
4. Configure the Web Server
Set up a named host:
- Go to C:\Windows\System32\drivers\etc in explorer and right click on the host file. Uncheck the read only box.
- Hit the windows key
- Type notepad.exe
- Cntrl+Shift+Enter
- File -> Open
- Open C:\Windows\System32\drivers\etc (you will have to put an * in the file name box to see the file) and open the hosts file
- Add “127.0.0.1 myproject” under “127.0.0.1 localhost” (without the quotes)
- Save
- Go to C:\Windows\System32\drivers\etc in explorer and right click on the host file. Check the read only box.
- File -> Open
- C:\Program Files\xampp\apache\conf\extra (you will have to put an * in the file name box to see the file) and open httpd-vhosts.conf
- Add this to the end of the httpd-vhosts.conf file and save:
<VirtualHost *:80>
ServerName myproject
DocumentRoot “C:\[path to your workspace]\myproject\web”
DirectoryIndex index.php
Alias /sf C:\php5\pear\data\symfony\web\sf
<Directory “C:\php5\pear\data\symfony\web\sf”>
AllowOverride All
Allow from All
</Directory>
<Directory “C:\[path to your workspace]\myproject\web”>
AllowOverride All
Allow from All
</Directory>
</VirtualHost> - Uncomment ##NameVirtualHost *:80 if you want to have more than one project able to run with different names.
- Restart Apache and go to http://myproject/ and you should see the symfony default project page.
5. Setup File Folder Permissions
Now you need to allow for write access to the cache and log folder.
- Traverse to each those two directories seperately within your newly Symfony file structure with Explorer.
- Right click on each of the folders and choose properties
- Go to the security tab and choose the user that will be granted the permissions and click edit.
- Note: You can find out the user by Cntrl+Alt+Delete, and then starting the task manager. Note the User Name.
- Allow that person to have full control.
NEXT STEPS
I suggest you install Aptana or PHPEclipse for your IDE.
You will also want to setup TortoiseSVN or use SVN from inside Cygwin for a version control client.
The Askeet tutorial is a good way to learn about programming in Symfony.
If you prefer learning on paper, I suggest you check out the official Symfony book: The Definitive Guide to symfony (Definitive Guide). Or read it online free here.
about
Find out more about the author here.
categories
- Blogging (5)
- Business (49)
- Design (3)
- Django (1)
- FireFox 3 (2)
- General (4)
- GTD (2)
- Guest Posts (1)
- Holiday (4)
- IE 8 (1)
- iTouch (2)
- Life 3.0 (3)
- Life Hacks (38)
- Management (3)
- Marketing (10)
- Mobile (1)
- offbeat (3)
- Outlook (1)
- Personal Development (17)
- Podcasting (1)
- Productivity (25)
- Programming (14)
- Project Management (2)
- Python (1)
- Reviews (2)
- Sales (6)
- Social Networking (12)
- Symfony (1)
- Systems (2)
- Travel (1)
- Twitter (2)
- Ubuntu (7)
- Video (4)
- Web Design (1)
- Windows 7 (1)
- Windows Vista (1)
- Windows XP (1)
- xv6800 (1)
members
most commented post
- » How To Download Ustream.tv Videos - 21
- » Managing Your Life With GTD, Online Tools and a File Cabinet - 20
- » Get Symfony Installed in 20 Minutes on Vista - 14
- » Plurk Unleashed! - 12
- » Using The Web To Save on Holiday Gifts - 12
- » What Online Social Media Networks Do You Participate In? - 11
- » Top Online Backup Solutions - 11
- » How to Send Email at a Specific Time With Gmail - 10
- » 19 Secrets From LA's Top SEO Firm - 10
- » The Story Behind iPhone.com - 10
recent entries
- Keeping Your 2010 Resolutions, Web 2.0 Style
- Reaching Out to Communicate is Key to Project Success
- Using Spaces to Improve Productivity on the Mac
- Effective Meetings on a Budget
- Internet Marketing: How-to
- Tweetie for Mac OS X Now Allows Proper Retweets
- Online Garage Sale
- What tabs do you open first when launching your browser?
- Are Social Media Networks Right for Your Business?
- 10 Ideas for More Powerful Negotiations
recent comments
- TickerWatcher: this was great…ran the code and couldn’t be happier
- Prabhu: cd you are cool man. thanks for sharing information.
- Sprecher Agentur: ThinkingSerious, Thanks for that post. Very interesting.
- Workout Without Weights: Hey… great post, and useful stuff. There are so many exercises and so much you can do...
- KinkY: Ok, here is the little tutorial I have written up just now: http://missandmisterkinky.b...
Wordpress theme by Wordpress Themes Websoft & made free by A1spysoftware.com
Copyright 2009, ThinkingSerious.com

October 24 2007
[...] story here Filed under: [...]
January 9 2008
[...] installing on Vista. There is a link out to external blog where others have advice on setting up on Windows Vista, but that was all I could find. But after a day just trying to get the test environment running [...]
April 25 2008
Nice tutorial, made life much easier. Thank you so much.
August 29 2008
i cant seem to get pear working with xampp 1.4.7 and vista? any suggestions?
c:\Program Files\xampp\php>pear
‘pear’ is not recognized as an internal or external command,
operable program or batch file.
October 17 2008
I have the same problem of xanders
October 23 2008
Try the go-pear.bat in your XAMPP Pear Dir & Follow the Instructions
Greez
November 29 2008
Please add the following to your instructions:
“pear channel-discover pear.phing.info”
This should be step number 9.
(Thanks for the great tutorial!)
November 29 2008
Under 4. Configure Web Server, Step 8, getting the following error message:
“Cannot create the C:\Windows\System32\drivers\etc\hosts” file.
Make sure that the path and file name are correct.”
The file is not read-only. It doesn’t appear to be possible to edit it.
November 30 2008
@jjmontgo
You need to open notepad as an administrator to be able to edit the hosts file.
Thanks for the contribution!
January 25 2009
I appreciate this tutorial, but good gawd… day three and I finally got XAMPP up and running. For me, this was definitely not a “20 minute” undertaking. At this rate, I’ll be lucky if it’s working after 20 days!
April 30 2009
Really usefull for me. Thanks a lot !
May 13 2009
Hi,
Its a very good tutorial. But I am facing some problem with installing symfony.
I want to install symfony with pear.
I have installed pear.
After that I run the command:
pear channel-discover pear.symfony-project.com
and it replied with:
Channel “pear.symfony-project.com” is already initialized
Then I run the command:
pear install symfony/symfony-1.2.7
After sometime it replied with:
……………………………………….
…………… done: 2,695,475 bytes
-
Now a cursor is blinking and nothing happens. I waited for around half an hour and it did not work and symfony is not installed…
Any clue..
May 25 2009
its just loading
September 16 2009
hi everyone. is it same installing on xp?