ZABBIXの最上部にずーっと
Timezone for PHP is not set. Please set "date.timezone" option in php.ini.
と出ている。php.iniってどこにあるのかググってみるも、いまひとつ「ここ」という場所が見当たらない。
きっとapache関係だろうと思って探してみると、/etc/php5/apache2/php.iniを発見。ということで/etc/php5/apache2/php.iniを編集。
;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [Date] ; Defines the default timezone used by the date functions ;date.timezone =
コメントアウトしてあり、さらにタイムゾーンが指定されていないので変更。
;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [Date] ; Defines the default timezone used by the date functions date.timezone = Asia/Tokyo
Asia/Tokyoとした(参考:アジア)が、JapanでもOKのようだ(参考:その他)。
そののちにWebminでapache2を再起動。
Restarting Actions
コマンド /etc/init.d/apache2 restart を実行中..* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
...done.
これでちゃんとタイムゾーンが指定された。