PHP5.3 FastCGI doesn't use global config's values
Posted
by
mega.venik
on Server Fault
See other posts from Server Fault
or by mega.venik
Published on 2012-10-25T12:54:51Z
Indexed on
2012/10/25
23:03 UTC
Read the original article
Hit count: 160
There's a Centos6.3 system. Apache 2.2.15 + mod_fcgid + PHP 5.3.3
There's a problem with date.timezone
value. It's mentioned in the global /etc/php.ini
like this:
date.timezone = "Europe/Moscow"
And doesn't mentioned in user's local php.ini. As a result, I'm getting lot's of warnings like:
Warning: date() [function.date]: 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead in ...
Including the date.timezone
parameter into the user's php.ini solves the problem, but I don't think, that it's the best solution.
Maybe someone have faced this problem and can give an advice?
Thanks!
P.S. Creating /etc/php.d/timezone.ini
with the timezone info aslo does nothing:(
© Server Fault or respective owner