ECShop 安裝時出現錯誤訊息
在安裝 ECShop 2.7.2 的過程中有碰到下列的錯誤訊息,導致安裝過程中止在不同的設定選項會有不同的錯誤,曾出現過的都列出
Warning: date_default_timezone_get(): 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/Chongqing' for 'CST/8.0/no DST' instead in /var/www/vhosts/tw.idv.bestlong.shop/install/includes/lib_installer.php on line 223
Warning: date_default_timezone_get(): 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/Chongqing' for 'CST/8.0/no DST' instead in /var/www/vhosts/tw.idv.bestlong.shop/includes/cls_mysql.php on line 163 OK
Warning: date(): 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/Chongqing' for 'CST/8.0/no DST' instead in /var/www/vhosts/tw.idv.bestlong.shop/includes/lib_time.php on line 28 OK 這都是 PHP 環境沒有指定預設系統時區的問題
請在 /etc/php.ini 內找到被註解設定
;date.timezone =
改成
date.timezone = "Asia/Taipei"
這樣安裝過程就會順利完成。
需要設定什麼參數可以參考 [url]http://tw2.php.net/manual/en/timezones.php[/url]
頁:
[1]