Configure the PHP front end
Video Lecture
Description
Note
Since Zabbix 5.2.0, it is no longer necessary to configure the timezone settings in the configuration files as outlined in the video.
You can now set it within the Zabbix GUI, down the bottom left in the User Settings page,
or in Administration-->Users-->Username
The commands in this video are,
Ubuntu 20.04, 18.04
1 |
|
Centos 8, 7
1 |
|
1 |
|
1 |
|
Note
If you get an error that nano is not installed,
Ubuntu:
sudo apt install nano
Centos 8:
yum install nano
Centos 7:
dnf install nano
Scroll down and uncomment the lines
1 |
|
and edit to your time zone.
My time zone is London, so my line looks like,
1 |
|
PHP timezone strings can be found here,
https://www.php.net/manual/en/timezones.php
Warning
If you installed your Zabbix Server using the NGINX web server option then your time zone settings may be in the file /etc/php.d/99-zabbix.ini
Troubleshooting
Q. You see the error 'Time zone for PHP is not set (configuration parameter "date.timezone").'
A. You most likely didn't remove the comment symbol (#) from the line containing php_value date.timezone and your time zone.