Hi,
I'm very new to linux, and I'm trying to set up a Zabbix server locally so I can learn the program. I have a book (Zabbix 1.8 Network Monitoring) that I'm trying to follow along in, but the installation instructions aren't specific enough for me to understand, so I've opted to use
this script to get it running on my system.
...and it worked. But, as I've seen in the comments, the install script leaves out some PHP stuff that I'm trying to work around. When I load my page at localhost/8080, the screen fills with red error messages saying:
Quote:
* date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead[/usr/local/share/zabbix/include/page_header.php:149]
|
page_header.php changes with the rest of them (I assume because they're for different parts of the frontend), but I can't get them to go away. I have tried:
editing /etc/php.ini to say
Quote:
[Date]
; Defines the default timezone used by the date functions
date.timezone = "America/Los_Angeles"
|
editing /usr/local/share/zabbix/include/page_header.php from
Quote:
$tmezone = 'America/Los_Angeles';
if(empty($tmezone)) {
info(S_TIMEZONE_FOR_PHP_IS_NOT_SET_PLEASE_SET);
date_default_timezone_set('America/Los_Angeles');
}
unset($tmezone);
}
|
where originally $tmezone was set to pull date.timezone from php.ini (I don't know PHP, so I'm not sure what the actual code was. Probably should have jotted it down. >< Also, date_default_timezone_set was ('UTC'), I think. Again, probably should have made a note...
I've also tried moving all of the code down a little bit (just adding some spaces in the first commented out section of the script), and the line the error is on does change. I read that someone had an issue with it staying the same on another forum.
I'm doing this for work and I'm kind of at a halt with my project. So, needless to say, it's pretty important. Any help would be greatly appreciated. Thank you in advance!
EDIT: I restarted the server and it updated and is now working...so nevermind. Thanks anyway