---
title: "安装ecshop网店系统常见错误及解决办法"
author: "aasonwu"
date: "2012-10-12T15:28:00Z"
tags: []
slug: "ecshop"
draft: false
lastmod: "2014-05-16T17:32:55Z"
id: 2067478
url: "https://aasonwu.iteye.com/blog/2067478"
---

创建配置文件............成功  
创建数据库............成功

安装数据............失败

**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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 163 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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 163 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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 165 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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 165 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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 173 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 'UTC' for '8.0/no DST' instead in C:\\Inetpub\\wwwroot\\includes\\cls\_mysql.php on line 173 OK**

解决方案:

在install/includes/init.php文件里加入一句  
date\_default\_timezone\_set ('Asia/Shanghai');

例如:

```
    <?php
    date_default_timezone_set ('Asia/Shanghai');
    /* 报告所有错误 */
    @ini_set('display_errors', 1);
    error_reporting(E_ALL ^ E_NOTICE);

其他代码
```

===================================================  
创建配置文件............成功  
创建数据库............成功  
安装数据............成功  
创建管理员帐号............失败

解决方法:同上

===================================================

创建配置文件............成功  
创建数据库............成功  
安装数据............成功  
创建管理员帐号............成功  
处理其它............失败

**Warning: mkdir() \[[function.mkdir](http://7dbay.com/install/templates/function.mkdir)]: No such file or directory in /home4/skyrunne/public\_html/7dbay/install/includes/lib\_installer.php on line 528**  
**无法创建目录,无法创建目录**

如果在点击“立即安装”前，不选择屏幕最下方的复选框

安装测试数据： (选择此项，将默认全选预选商品类型)

，就可以顺利完成，反之就会出现如上的错误提示。