Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/tp5.test.com/tp5/thinkphp


Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/tp5.test.com/tp5/thinkphp/start.php) is not within the allowed path(s): (/www/wwwroot/tp5.test.com/tp5/public/:/tmp/:/proc/) in /www/wwwroot/tp5.test.com/tp5/public/index.php on line 17

Warning: require(/www/wwwroot/tp5.test.com/tp5/thinkphp/start.php): failed to open stream: Operation not permitted in /www/wwwroot/tp5.test.com/tp5/public/index.php on line 17

Fatal error: require(): Failed opening required '/www/wwwroot/tp5.test.com/tp5/public/../thinkphp/start.php' (include_path='.:/www/server/php/54/lib/php') in /www/wwwroot/tp5.test.com/tp5/public/index.php on line 17

解决办法

 

也是醉 了,这是我之前配置nginx的时候遇到的问题,

当时遇到了问题,等着解决,但是却忘了把解决方案放进去,

现在把解决方法写上

 

nginx配置tp5项目,由于不能像apache那样识别 .haccess文件

只需修改nginx的配置文件即可

 

在mac环境中 nginx的配置文件在目录  下

 

 

 

 

 

 

你可能感兴趣的:(Warning: require(): open_basedir restriction in effect. File(/www/wwwroot/tp5.test.com/tp5/thinkphp)