Symfony2 New Web Project Creation On OS X

Once symfony installer installed

After doing this; new project will be created with fresh download from source.

Change directory to project folder, change 2 permission of 'log' and 'cache'

Run Symfony2's server with


If everything is OK, you'll see...


In case of date.timezone setting problem like above;

[themify_box style="red rounded warning" ] Symfony\Component\Debug\Exception\ContextErrorException]Warning: date_default_timezone_get(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.[/themify_box]


First method (recommended): Edit system's php.ini (not the MAMP's one) by this terminal command.

Find "date.timezone" setting with Ctrl+W. Edit the empty setting above


(or whatever "Europe/Berlin" etc.)


Second method (you should do for each project): Add this function into AppKernel.php


Published on: 2015/09/17

Leave a Reply

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram