【zabbix】问题 Time zone for PHP is not set (configuration parameterdate.timezone)
2018-01-08 14:19
1281 查看
问题描述:
在zabbix安装完成后,如果出现下图问题,这是因为我们配置文件里面的时区出现了问题,系统里默认是欧洲时区,需要改成我们的上海时区。解决方案:
查看并修改php.ini配置文件的配置:更改php.ini配置文件的设置,去掉date.timezone的注释,将时区改为Asia/Shanghai
vi/etc/php.ini
[Date] ; Defines the default timezone used by the datefunctions ; http://php.net/date.timezone date.timezone=Asia/Shanghai //将最前面的分号去掉,上面时区改成亚洲上海。
查看并修改/etc/httpd/conf.d/zabbix.conf配置文件的配置
vi/etc/httpd/conf.d/zabbix.conf
Options FollowSymLinksAllowOverride 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服务
servicehttpd restart
最后重新刷新网页即可。
相关文章推荐
- 【zabbix】Time zone for PHP is not set (configuration parameter “date.timezone”)
- PHP 日期问题 PHP Warning: date(): It is not safe to rely on the system’s timezone settings
- 解决php的It is not safe to rely on the system’s timezone settings的问题
- 解决php的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的It is not safe to rely on the system’s timezone settings的问题
- php5.3的It is not safe to rely on the system’s timezone settings的问题的解决方案
- ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in
- PHP Warning: date(): It is not safe to rely on the system's timezone settings.
- 解决php的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
- PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
- It is not safe to rely on the system's timezone settings. 的PHP问题处理
- php Warning: date(): It is not safe to rely on the system's timezone settings.
- 解决php的“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.
- 解决php的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 settings. You