時間:2017年11月18日 作者:廖劍曦
```
第一個問題
ecshop安裝出現appserver不存在
# 解決方法參考 http://www.majianwei.com/ecshop%E5%AE%89%E8%A3%85%E5%87%BA%E7%8E%B0appserver%E4%B8%8D%E5%AD%98%E5%9C%A8/
#另外解決方法,在文件的目錄上處理 咋在根目錄下直接安裝
/ECShop_v3.6.0_UTF8_release170921/ECShop_v3.6.0_UTF8_release170921/source
#把下面三個文件復制過去
appserver check_file.php ecshop
#cp -r * /var/www/html
#給html文件夾阿帕奇授權
chown -R apache.apache html
再次進入安裝頁面
第二個問題
ecshop安裝出現date_default_timezone_get()問題
在安裝ecshop時遇到警告如下:
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 ...
是由於PHP默認的時間區域設置問題導致的警告
解決辦法:
vim /etc/php.ini
打開php.ini大概在958找到; 找到date.timezone =去掉前面的注釋;號,然后改成date.timezone ="Asia/Shanghai",保存配置文件,重啟你的服務器。
```
########################################################################################
補充 日期2017年11月24日 作者:廖劍曦
########################################################################################
問題1
```
####Strict Standards: Non-static method cls_image::gd_version()
should not be called statically in /var/www/html/install/includes/lib_installer.php on line 31
解決方法
vim打開ECShop根目錄下面的install/includes/lib_installer.php,然后搜索以下代碼
function get_gd_version()
{
include_once(ROOT_PATH . 'includes/cls_image.php');
return cls_image::gd_version();
}
將以上代碼修改為以下代碼
function get_gd_version()
{
include_once(ROOT_PATH . 'includes/cls_image.php');
$cls_image=new cls_image();
return $cls_image->gd_version();
}
```