無論是在LAMP還是在LNMP系統環境下, 只要PHP的版本在5.3及其以上的版本時, 無論是在安裝oscommerce, 還是在安裝zen cart, 以及其他的CMS時, 都會遇到如下所示的錯誤信息(以安裝zen cart爲例)
ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.
遇到這個錯誤的話, 你就無論進行下一步的安裝了. 歸根到底是PHP的版本問題, 必須解決這個date.timezone 的設置問題, 根據它的提示來看, 只需要找到PHP.INI文件, 然後給它賦值即可. 如
date.timezone = PRC //面向中國的系統
或者是如下的形式:
date.timezone ="Asia/Shanghai"