Symfony on WAMP
I prefer WAMP over XAMPP on my XP box, but there are a few quirks you have to deal with in order to get Symfony running properly on WAMP.
PEAR is not installed by default with WAMP, but WAMP does come with the go-pear installer. Follow the instructions below to install PEAR,
- Start -> Run -> cmd
- Cd into the PHP directory (e.g. C:\wamp\php)
- Invoke go-pear.bat. Follow through the options (default should work fine).
- Once PEAR is installed, open C:\wamp\Apache2\bin\php.ini.
- Find the line ;include_path = ".;c:\php\includes"
- Uncomment the line and add the PEAR home directory to the path. It should look something like this:
include_path = ".;c:\php\includes;C:\wamp\php\PEAR"
Include path when using PHP commandline
Some versions of wamp are reading the php.ini from your windows directory. If you are having problems with PEAR include paths on commandline (CLI) make sure to copy the php.ini into your windows directory
The PHP-XSL extension is necessary to execute the propel scripts, but it's not enabled by default. To enable it, click on the WAMP tray icon -> select PHP extensions -> scroll down to php-xsl -> click on php-xsl if it is not selected. Restart the Apache service.
Apache URL Rewrite Module
Goto the Apache configuration file (httpd.conf) and uncomment the following line,
LoadModule rewrite_module modules/mod_rewrite.so
Without the URL Rewrite Module, you won't be able to hit the application modules without explicitly include index.php in the URL. Finalize the changes by restart Apache.
If you get this error message when using command $symfony propel-build-model:
Fatal error: Call to undefined method domdocument::load()
See this article: http://www.symfony-project.com/forum/index.php/mv/msg/651/2599/