Zabbix配置Web頁面報錯" PHP time zone unknown Fail"

dbasdk發表於2017-04-24
Zabbix配置Web頁面報錯" PHP time zone unknown Fail"

解決方法:
檢視php.ini配置檔案的設定
[root@localhost create]# vi /etc/httpd/conf.d/zabbix.conf
  1. Alias /zabbix /usr/share/zabbix

  2. Options FollowSymLinks
  3. AllowOverride None
  4. Order allow,deny
  5. Allow from all

  6. php_value max_execution_time 300
  7. php_value memory_limit 128M
  8. php_value post_max_size 16M
  9. php_value upload_max_filesize 2M
  10. php_value max_input_time 300
  11. # php_value date.timezone Europe/Riga
更改php.ini配置檔案的設定,去掉date.timezone的註釋,將時區改為Asia/Shanghai
[root@localhost create]# vi /etc/httpd/conf.d/zabbix.conf
  1. Options FollowSymLinks
  2. AllowOverride None
  3. Order allow,deny
  4. Allow from all

  5. php_value max_execution_time 300
  6. php_value memory_limit 128M
  7. php_value post_max_size 16M
  8. php_value upload_max_filesize 2M
  9. php_value max_input_time 300
  10. 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"重新進行檢查,順利透過檢查

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29734436/viewspace-2137844/,如需轉載,請註明出處,否則將追究法律責任。

相關文章