Development

SymfonyOnWAMP

You must first sign up to be able to contribute.

Version 15 (modified by anonymous, 11 years ago)
--

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" 
    

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

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/