【zabbix】Time zone for PHP is not set (configuration parameter “date.timezone”)
2018-02-23 10:33
2935 查看
前言
紧接着上篇博客遇到的问题,来解决一下。在zabbix-server端完成安装后,出现以上问题,是因为我们配置文件里面的时区出现了问题,系统里默认是欧洲时区,需要我们改成上海时区。
1、查看并修改php.ini配置文件的配置
改前
改后
改后
注:
2、查看并修改/etc/httpd/conf.d/zabbix.conf配置文件的配置
改前
改后
3、重启httpd服务
紧接着上篇博客遇到的问题,来解决一下。在zabbix-server端完成安装后,出现以上问题,是因为我们配置文件里面的时区出现了问题,系统里默认是欧洲时区,需要我们改成上海时区。
1、查看并修改php.ini配置文件的配置
vi /etc/php.ini
改前
改后
改后
注:
date.timezone =Asia/Shanghai //将最前面的分号去掉,上面时区改成亚洲上海。
2、查看并修改/etc/httpd/conf.d/zabbix.conf配置文件的配置
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 //修改时区
改前
改后
3、重启httpd服务
service httpd restart
相关文章推荐
- 【zabbix】问题 Time zone for PHP is not set (configuration parameterdate.timezone)
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- "PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- 解决PHP Warning: strftime(): It is not safe to rely on the system's timezone set
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- php首次使用date函数 遇到警告:Warning:date():It is not safe to rely on the system's timezone settings.You...
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- 关于php中Warning: date(): It is not safe to rely on the system's timezone settings.解决
- php Warning:date(): It is not safe to rely on the system's timezone settings
- date.timezone not set in php.ini. Please contact ...解决方案
- php Warning: date(): It is not safe to rely on the system's timezone settings.
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- php异常 Message: date(): It is not safe to rely on the system's timezone settings
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.
- PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone