Two links to set correct rights to your Symfony2's cache/ and logs/ directories.

First, the official documentation: installing and configuring Symfony

Then, the setfacl detail installation: Symfony2 file permissions in Ubuntu