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