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

 

原创文章请随便转载。愿和大家分享,并且一起进步。-- 江 coder