phpstudy 500 Internal Server Error 解決辦法


版本: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";

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM