eAcceleratorを起動すると、PHP Warningがいっぱい(>_<)
[Sun Oct 09 17:09:30 2011] [error] PHP Warning: date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Tokyo' for 'JST/9.0/no DST' instead in /usr/local/***/***/***/control.php on line 402
調べてみると・・・タイムゾーン指定すれば良いらしい。
php.iniのdate.timezoneに、 “Asia/Tokyo”を追加
vi /usr/local/etc/php.ini ;;;;;;;;;;;;;;;;;;; ; Module Settings ; ;;;;;;;;;;;;;;;;;;; [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone = "Asia/Tokyo"
それと、同じくphp.iniにeaccelerator.allowed_admin_pathを指定
eaccelerator.allowed_admin_path= "/usr/local/***/***/***/control.php"
環境
apache-2.2.21
php5-5.3.8
eaccelerator-0.9.6.1_1
コメント