Hello, I have recently installed Zabbix on centos 8, when going thru the front end install I get the error php date timezone unknown fail. I have updated all possible PHP.ini files along with the Zabbix config file, ive removed the ; at the front of every file not sure if this is needed or not. Here is a list of files which I have altered for PHP
list of altered PHP files for timezone and removed the ; at the start
/etc/php.ini
/etc/php.ini.rpmnew
/etc/php.ini.rpmsave
/etc/opt/remi/php74/php.ini
/opt/etc/php.ini
/opt/remi/php74/root/usr/share/doc/php74-php-common/php.ini-development
/opt/remi/php74/root/usr/share/doc/php74-php-common/php.ini-production
/usr/share/doc/php-common/php.ini-development
/usr/share/doc/php-common/php.ini-production
[root@netengsrv01 ~]#
root@netengsrv01 ~]# nano /etc/php-fpm.d/zabbix.conf
GNU nano 2.9.8 /etc/php-fpm.d/zabbix.conf
[zabbix]
user = apache
group = apache
listen = /run/php-fpm/zabbix.sock
listen.acl_users = apache,nginx
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[max_execution_time] = 300
php_value[memory_limit] = 128M
php_value[post_max_size] = 16M
php_value[upload_max_filesize] = 2M
php_value[max_input_time] = 300
php_value[max_input_vars] = 10000
php_value[date.timezone] = America/New_York <<<<<<<<<<<<<
Check of pre-requisites
list of altered PHP files for timezone and removed the ; at the start
/etc/php.ini
/etc/php.ini.rpmnew
/etc/php.ini.rpmsave
/etc/opt/remi/php74/php.ini
/opt/etc/php.ini
/opt/remi/php74/root/usr/share/doc/php74-php-common/php.ini-development
/opt/remi/php74/root/usr/share/doc/php74-php-common/php.ini-production
/usr/share/doc/php-common/php.ini-development
/usr/share/doc/php-common/php.ini-production
[root@netengsrv01 ~]#
root@netengsrv01 ~]# nano /etc/php-fpm.d/zabbix.conf
GNU nano 2.9.8 /etc/php-fpm.d/zabbix.conf
[zabbix]
user = apache
group = apache
listen = /run/php-fpm/zabbix.sock
listen.acl_users = apache,nginx
listen.allowed_clients = 127.0.0.1
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
php_value[session.save_handler] = files
php_value[session.save_path] = /var/lib/php/session
php_value[max_execution_time] = 300
php_value[memory_limit] = 128M
php_value[post_max_size] = 16M
php_value[upload_max_filesize] = 2M
php_value[max_input_time] = 300
php_value[max_input_vars] = 10000
php_value[date.timezone] = America/New_York <<<<<<<<<<<<<
Check of pre-requisites
- Time zone for PHP is not set (configuration parameter "date.timezone").
| PHP version | 7.4.9 | 7.2.0 | OK |
| PHP option "memory_limit" | 128M | 128M | OK |
| PHP option "post_max_size" | 16M | 16M | OK |
| PHP option "upload_max_filesize" | 2M | 2M | OK |
| PHP option "max_execution_time" | 300 | 300 | OK |
| PHP option "max_input_time" | 300 | 300 | OK |
| PHP option "date.timezone" | unknown | Fail | |
| PHP databases support | MySQL | OK | |
| PHP bcmath | on | OK | |
| PHP mbstring | on | OK | |
| PHP option "mbstring.func_overload" | off | off | OK |
| PHP sockets | on | OK | |
| PHP gd | 2.2.5 | 2.0 | OK |
| PHP gd PNG support | on | OK | |
| PHP gd JPEG support | on | OK | |
| PHP gd GIF support | on | OK | |
| PHP gd FreeType support | on | OK | |
| PHP libxml | 2.9.7 | 2.6.15 | OK |
| PHP xmlwriter | on | OK | |
| PHP xmlreader | on | OK | |
| PHP LDAP | on | OK | |
| PHP OpenSSL | on | OK | |
| PHP ctype | on | OK | |
| PHP session | on | OK | |
| PHP option "session.auto_start" | off | off | OK |
| PHP gettext | on | OK | |
| PHP option "arg_separator.output" | & | & | OK |
Comment