Development

SymfonyOnWAMP

You must first sign up to be able to contribute.

Version 14 (modified by spam_killer, 11 years ago)
Back to revision 12 : reverse spam (+ little french correction ;-) )

Translations: Français, Türkçe

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.

Install PEAR

PEAR is not installed by default with WAMP, but WAMP does come with the go-pear installer. Follow the instructions below to install PEAR,

  1. Start -> Run -> cmd
  2. Cd into the PHP directory (e.g. C:\wamp\php)
  3. Invoke go-pear.bat. Follow through the options (default should work fine).
  4. Once PEAR is installed, open C:\wamp\Apache2\bin\php.ini.
  5. Find the line ;include_path = ".;c:\php\includes"
  6. 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" 
    

PHP-XSL

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.

Misc

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/