Symfony 2 - Installation - On Windows Operating System

You already played with Symfony 1 or you never used it (SHAME ON YOU), and you want to install a fresh new 2.0.1 version of Symfony2 on Windows 7.

You are in the right place!

To be honest this new version is really easy to install.

Download a copy on the official website of Symfony2: http://symfony.com/download

We will install the 2.0.1 in the ZIP format.

Symply open the ZIP file and place all in the root of your web server, generally it is C:\www.

Now open a cmd window, go until C:\www\Symfony and type this:

php app/check.php

If you have PHP 5.3.8, you will have almost already all.

Just open the php.ini file and uncomment the lines:

  • extension=php_intl.dll
  • extension=php_pdo_sqlite.dll
  • extension=php_sqlite3.dll

OK all is ready now, except maybe for the APC accelerator, even if the Symfony2's script says that the APC version is at least 3.0.17.
Nevermind, let's continue!

Go on this website: http://downloads.php.net/pierre/

And download the right version for your PHP version.
If you followed the BadproG tutorial for installing PHP on Windows 7, you have to downlad this one:

  • apc-igbinary-fastlz-snap20110301-5.3-ts-vc9-x86.zip

Open it and copy the php_apc.dll in your ext PHP folder, for example:

  • C:\soft\php\php5.3.8\ext

Open your php.ini file, and add this line at the end of the extension lines:

  • extension=php_apc.dll

Restart Apache HTTP.

You normally now have all OK if you run your Symfony2's script again.

So let's see this new version of Symfony2: http://localhost/Symfony/web/config.php

Do not forget the config.php at the end, or you will have a 404 error with the following message error:

Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Well done, Symfony2 is installed on your server! laugh

Comments

Comment: 

I´m having problems with setting permissions to the app\cache directory. any ideas?

OS: win Vista

Comment: 

Hello Augusto,

I think it is a User Account Control (UAC) problem.

Try to turn it off. cool

Comment: 

thank you so much yes