版本:phpstudy 2018
報錯:500 Internal Server Error
原因:手動選擇路徑的時候,產生了斜杠不同 (正確:"D:/phpStudy/PHPTutorial/WWW/thinkphp50/public") 錯誤(“D:\phpStudy\PHPTutorial\WWW\composer\tp51\public”)
解決辦法:找到nginx的配置文件,改正路徑就行
// 錯誤 \ root "D:\phpStudy\PHPTutorial\WWW\composer\tp51\public"; // phpstudy 留下的一個小bug // 正確 / root "D:/phpStudy/PHPTutorial/WWW/thinkphp50/public";