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