Zabbix配置Web页面报错" PHP time zone unknown Fail"
Zabbix配置Web页面报错" PHP time zone unknown Fail"
解决方法:
查看php.ini配置文件的设置
[root@localhost create]# vi /etc/httpd/conf.d/zabbix.conf
Alias /zabbix /usr/share/zabbix
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
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 date.timezone Europe/Riga
更改php.ini配置文件的设置,去掉date.timezone的注释,将时区改为Asia/Shanghai
[root@localhost create]# vi /etc/httpd/conf.d/zabbix.conf
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
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 date.timezone Asia/Shanghai
重启httpd服务
[root@localhost create]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
点击"Retry"重新进行检查,顺利通过检查