Symfony2 ultra-fast start tutorial

NOTE: This tutorial has been made with Ubuntu 11.04 – Natty Narwhal, it hasn’t been tested on other OSs. This is some kind of cheat sheet to help you if you forget something basic about symfony2, but you obviously must read symfony2 documentation to know what’s all this about http://symfony.com/doc/2.0/book/index.html

Source code of this tutorial can be downloaded at: https://github.com/montes/Adictos-Symfony2-Bundle

UPDATED 5/23/2011: Updated for symfony2 beta2

 

1. Download

Download Symfony2 Standard Edition (at the moment of writing this, last version is BETA2): http://symfony.com/download

Extract

tar -zxvf Symfony_Standard_Vendors_2.0.0BETA2.tgz

And change permissions to make app/cache and app/logs writable, for example:

chmod 777 app/cache app/logs

Point your server to “web/” as root directory and you already would have to see symfony2 welcome page at http://127.0.0.1/app_dev.php/

Continue reading