用的php版本是php8,數(shù)據(jù)庫是mysql5.7,檢測完安裝環(huán)境后,直接報錯如下:
Warning: Undefined array key "dbName" in /www/wwwroot/domain/install/index.php on line 167
Warning: Undefined array key "dbUser" in /www/wwwroot/domain/install/index.php on line 168
Warning: Undefined array key "dbPwd" in /www/wwwroot/domain/install/index.php on line 170
Warning: Undefined array key "dbHost" in /www/wwwroot/domain/install/index.php on line 171
Warning: Undefined array key "testdbpwd" in /www/wwwroot/domain/install/index.php on line 172
Warning: Undefined array key "check" in /www/wwwroot/domain/install/index.php on line 221
如何解決?
官方很忙,大神也很忙,沒人答復(fù)。
在QQ群里問了,有人回答是數(shù)據(jù)庫問題,關(guān)鍵是安裝環(huán)境檢測完畢后,跳轉(zhuǎn)到第三步還沒有填寫數(shù)據(jù)庫信息就已經(jīng)提示報錯,感覺問題應(yīng)該不是出在數(shù)據(jù)庫。
后來在服務(wù)器的錯誤日志里發(fā)現(xiàn)提示的有php錯誤,應(yīng)該是php配置有問題,也可能是程序不支持php8,具體是哪種情況我們這種小白暫時還不懂,折騰了1小時,還是提示以上錯誤,果斷卸載掉php8,安裝了php7.3之后繼續(xù)安裝不再報錯。