- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業務經營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯網協會理事單位
- 安全聯盟認證網站身份V標記
- 域名注冊服務機構許可:滇D3-20230001
- 代理域名注冊服務機構:新網數碼
發現各別國外空間再安裝ECSHOP時遇到的問題,以全新向導模式安裝時遇到具體的PHP警告如下:
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:wwwrootincludeslib_installer.php on line 223
以上提示是說明由于PHP默認的時間區域設置問題導致的警告,導致數據庫那段過不去而無法完成安裝,我門提供兩種解決辦法如下:
1. 修改includeslib_installer.php文件,在這個文件頂部<?php之內加上如下PHP代碼:
date_default_timezone_set ('Asia/Shanghai');
這個是臨時的解決辦法,可以幫你成功安裝數據庫,長久之計還是要采用方法2。
2. 修改服務器的PHP配置文件。
打開PHP.INI文件搜索到; date.timezone = 去掉前面的注釋;號,然后改成date.timezone =Asia/Shanghai,保存配置文件,重啟你的服務器。
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP