当前位置: 代码迷 >> 综合 >> phpstudy 500 Internal Server Error 解决办法
  详细解决方案

phpstudy 500 Internal Server Error 解决办法

热度:31   发布时间:2023-12-24 23:45:16.0

版本: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";
  相关解决方案