Hi Guys,
I have recently come across a very odd issue with my webserver.
For some background I am configuring Newznab to run on my webserver: www/apache22, lang/php5, databases/mysql51-server. There are a few things I need to tinker with to make it work but in the meantime I seem to have uncovered a very bizarre bug.
Currently I have the date.time in php.ini set as follows:
/usr/local/etc/php.ini
This works fine and when I view the info.php page I see:
However...
For (I suspect) unrelated reasons with Newznab I have to change the error reporting to the following:
/usr/local/etc/php.ini
Which should be fine, however after doing this the date/timezone functionality is broken resulting in the following error printing all over and page using lang/php5, whether it is related to Newznab or not:
This error also appears in the Date section of the info.php page and the timezone is also altered from that which is set in php.ini:
http://www.domain.ino.php
What could possibly be causing this?
I have recently come across a very odd issue with my webserver.
For some background I am configuring Newznab to run on my webserver: www/apache22, lang/php5, databases/mysql51-server. There are a few things I need to tinker with to make it work but in the meantime I seem to have uncovered a very bizarre bug.
Currently I have the date.time in php.ini set as follows:
/usr/local/etc/php.ini
Code:
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
[color="Red"]date.timezone = Europe/Berlin[/color]
This works fine and when I view the info.php page I see:
Date
date/time support: enabled
"Olson" Timezone Database Version: 2012.8
Timezone Database: internal
Default timezone: Europe/Berlin
However...
For (I suspect) unrelated reasons with Newznab I have to change the error reporting to the following:
/usr/local/etc/php.ini
Code:
; error_reporting
; Default Value: E_ALL & ~E_NOTICE
[color="Red"] Development Value: E_ALL | E_STRICT[/color]
; Production Value: E_ALL & ~E_DEPRECATED
Which should be fine, however after doing this the date/timezone functionality is broken resulting in the following error printing all over and page using lang/php5, whether it is related to Newznab or not:
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 /PATH/FILE.php on line #
This error also appears in the Date section of the info.php page and the timezone is also altered from that which is set in php.ini:
http://www.domain.ino.php
Date
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 /usr/local/www/apache22/data/info.php on line 4
date/time support: enabled
"Olson" Timezone Database Version: 2012.8
Timezone Database: internal
Default timezone: UTC
What could possibly be causing this?