用的php版(ban)本是php8,數(shu)據庫是mysql5.7,檢(jian)測完安裝環(huan)境(jing)后,直接(jie)報錯如下:
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
如何解決?
官方很忙,大神也很忙,沒人答復。
在QQ群里問了,有人回答是數據庫問題,關鍵是安裝環境檢測完畢后,跳轉到第三步還沒有填寫數據庫信息就已經提示報錯,感覺問題應該不是出在數據庫。
后來在服務器的錯誤日志里發現提示的有php錯誤,應該是php配置有問題,也可能是程序不支持php8,具體是哪種情況我們這種小白暫時還不懂,折騰了1小時,還是提示以上錯誤,果斷卸載掉php8,安裝了php7.3之后繼續安裝不再報錯。