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”;

你可能感兴趣的:(phpstudy 500 Internal Server Error 解决办法)