IIS 7 and Above
Windows 7+IIS 7.0+PHP 5.3.2 nts
Last post Mar 09, 2010 06:50 PM by like2dev
Mar 09, 2010 06:22 PM|like2dev|LINK
When I call the function phpinfo () I get this error:
PHP Warning: phpinfo(): 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 ide
How i can repair this?
Mar 09, 2010 06:28 PM|don.raman|LINK
The solution is in the error itself. Please include the below line in your PHP.INI file:
date.timezone = America/Los_Angeles
and it will be repaired. Please replace 'America/Los_angeles' with timezone of your choice. Details about supported timezone can be found at
Mar 09, 2010 06:33 PM|like2dev|LINK
I tried do as you say, but I had 500 error
; Defines the default timezone used by the date functions
date.timezone = Europe/Kiev
Mar 09, 2010 06:41 PM|don.raman|LINK
This means your initial problem is solved. How did you install PHP 5.3.2? I would advise you to use the MSI to install it. PHP MSI sets certain INI directives which can be helpful. If you have used MSI to install PHP, look at the log file (see in your php.ini
file where error_log is pointing to. In all probability it should point to 'C:\WINDOWS\temp\php-errors.log'. Open the log file and see if there are any errors. Further troubleshooting can be done by following my blog at
http://blogs.iis.net/donraman/archive/2009/11/15/troubleshooting-php-installation-on-windows.aspx. In the blog I have asked to do certain things or run certain commands. See if you are getting proper output or not. Also for my help please paste the output
while replying back.
Mar 09, 2010 06:50 PM|like2dev|LINK
Strange, but it works.
Probably the settings (timezone) were not updated.