Apache and Symfony date.timezone error

Apache and Symfony date.timezone error

I am trying to install Symfony with my Apache (Ubuntu) but I get this error:
Set the “date.timezone” setting in php.ini* (like Europe/Paris)

Using phpinfo() in my browser it says that the configuration file is in /etc/php5/apache2/php.ini So I modified it wtih
date.timezone = “Europe/Paris”

I also modified the file /etc/php5/cli/php.ini
I also run php app/console cache:clear as it was suggested in this question Fixing requirements in Symfony2 but with no results. I restarted the server every time.
What else can I try?


Solution 1:

Please see David Jacquel correct solution below !

I leave this answer for historical purposes…

In sf1, I ran through this and got it fixed with a


in the bootstrap (that was ProjectConfiguration.class.php).

In sf2 you may modify the web/app.php file to insert the same piece of code. It is a bit hackyish, but will get you up and running.

Solution 2:

Try removing double quotes

date.timezone = Europe/Paris