ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in

无论是在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"

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章