在安装的时候,因为时区设置没有设置可能会在错误日志中出现下面的错误导致安装进行不下去:
[Thu Nov 12 16:25:51.142489 2015] [:error] [pid 25990] [client 70.88.214.177:46540] PHP Fatal error: Uncaught exception ‘Exception’ with message ‘DateTime::__construct(): 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 the timezone ‘UTC’ for now, but please set date.timezone to select your timezone.’ in /home/vhosts/demo.ossez.com/httpdocs/p/chamilo-lms/main/inc/lib/usermanager.lib.php:310\nStack trace:\n#0 /home/vhosts/demo.ossez.com/httpdocs/p/chamilo-lms/main/inc/lib/usermanager.lib.php(310): DateTime->__construct(‘2015-11-12 21:2…’)\n#1 /home/vhosts/demo.ossez.com/httpdocs/p/chamilo-lms/main/install/install.lib.php(2599): UserManager::create_user(‘John’, ‘Doe’, 1, ‘[email protected]…’, ‘admin’, ‘hulinghyc’, ‘ADMIN’, ‘english’, ‘(000) 001 02 03’, ‘’, ‘platform’, ‘’, 1, 0, NULL, ‘’, false, true)\n#2 /home/vhosts/demo.ossez.com/httpdocs/p/chamilo-lms/main/install/i in /home/vhosts/demo.ossez.com/httpdocs/p/chamilo-lms/main/inc/lib/usermanager.lib.php on line 310, referer: http://demo.ossez.com/p/chamilo-lms/main/install/index.php?running=1&installType=new&updateFromConfigFile=
你需要修改你的 php.ini 设置。
date.timezone = “America/New_York”
如果你是在中国,你可以尝试使用:Asia/Shanghai
所有时区的列表如下:http://php.net/manual/en/timezones.php