📜  未设置 php 的时区(配置参数“date.timezone”). - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:41.392000             🧑  作者: Mango

代码示例1
I had the same issue on Ubuntu 14.04.4 and I have the set the values in /etc/php5/apache2/php.ini as below.

You can also edit /etc/apache2/conf-enabled/zabbix.conf which is simlink to /etc/zabbix/apache.conf:

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 always_populate_raw_post_data -1
php_value date.timezone Greece/Athens