I just create new server on windows OS x64 with.
httpd-2.4.9-win64-VC11
php-5.5.14-Win32-VC11-x64
MySql Server
I go into php.ini
Uncomment and add this:
date.timezone = "Asia/Kuala_Lumpur"
I make and see in phpinfo.php
and found my date.timezone
with no value
in local and master value.
As below
date/time support enabled "Olson" Timezone Database Version 2014.3 Timezone Database internal Default timezone UTC
Directive Local Value Master Value date.default_latitude 31.7667 31.7667 date.default_longitude 35.2333 35.2333 date.sunrise_zenith 90.583333 90.583333 date.sunset_zenith 90.583333 90.583333 date.timezone no value no value
And there are also appear error message
on same page (phpinfo.php) as below:
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 identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in J:\WebDocs\gad\phpinfo.php on line 2
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 identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in J:\WebDocs\gad\phpinfo.php on line 2
Here is my current php.ini
Is this related to php.ini module? and what is the best way to solve this.
US/Central is not a valid timezone for PHP.
The valid American timezones are here: http://www.php.net/manual/en/timezones.america.php
For Central time use America/Chicago instead.
Here is quick solution I found this morning,
In httpd.conf
line PHPIniDir
"H:/PHP"
Should be this way
"J:/PHP"