Configure the PHP front end
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
sudo nano /etc/zabbix/apache.conf
Centos 8, 7
sudo nano /etc/php-fpm.d/zabbix.conf
sudo nano /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
sudo nano /etc/httpd/conf.d/zabbix.conf
If you get an error that nano is not installed,
sudo apt install nano
yum install nano
dnf install nano
Scroll down and uncomment the lines
# php_value date.timezone Europe/Riga
and edit to your time zone.
My time zone is London, so my line looks like,
php_value date.timezone Europe/London
PHP timezone strings can be found here,
If you installed your Zabbix Server using the NGINX web server option then your time zone settings may be in the file
Time zone for PHP is not set
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.
Cannot create the configuration file
Q. You get an error 'unable to create the configuration file' and you are then asked to download the configuration file and save it into a folder.
A. It is likely that the configuration file can no longer be automatically saved due to permissions between the web user running the zabbix web interface and the operating system.
Download the file using the link as shown in the error screen and open it using a text editor so you can see it.
The error screen also shows which folder to save the configuration into.
SSH onto your server, and
cd into the folder.
Edit the file
sudo nano zabbix.conf.php
Paste the contents of the file that you downloaded locally into the Nano view. If using the Putty ssh client, you can right click the mouse and the clipboard will be pasted in.
In Nano, press
y to save.
Press [next] on the error screen and continue with the login process.