Set up Symfony2 app/cache and app/logs permissions on Ubuntu

When developing in Symfony2, one common issue is that the app/cache and app/logs directories must be writable both by the web server and the command line user. On Ubuntu you can run the following command just once in your project to ensure that permissions will be setup properly and all users will be able to modify the files and directories within the cache and logs folders: Continue reading Set up Symfony2 app/cache and app/logs permissions on Ubuntu

Setting Up Symfony2 and Uploadify Session Id

Uploadify (currently on version 3.1.0) has the option to send the session name and id to the upload script so you can secure the action handling this in Symfony. To make Symfony2 use the session id send by Uploadify you have to create a new class that extends the Symfony\Component\HttpFoundation\SessionStorage\NativeSessionStorage class and use it for the session storage: Continue reading Setting Up Symfony2 and Uploadify Session Id