使用版本:NGINX版 PHP5.5系列64位 1511
目前报错情况: 2016/03/25 17:23:37 [error] 5004#4404: *1 FastCGI sent in stderr: "PHP Warning: require(): open_basedir restriction in effect. File(D:\PhpSpace\new_crm\config\services.php) is not within the allowed path(s): (D:\PhpSpace\new_crm\public\;D:\Develop\upupw\memcached\;D:\Develop\upupw\phpmyadmin\;D:\Develop\upupw\temp\;C:\Windows\Temp\) in D:\PhpSpace\new_crm\public\index.php on line 22 PHP Warning: require(D:\PhpSpace\new_crm\config\services.php): failed to open stream: Operation not permitted in D:\PhpSpace\new_crm\public\index.php on line 22 PHP Warning: require(): open_basedir restriction in effect. File(D:\PhpSpace\new_crm\config\services.php) is not within the allowed path(s): (D:\PhpSpace\new_crm\public\;D:\Develop\upupw\memcached\;D:\Develop\upupw\phpmyadmin\;D:\Develop\upupw\temp\;C:\Windows\Temp\) in D:\PhpSpace\new_crm\public\index.php on line 22 PHP Warning: require(D:\PhpSpace\new_crm\config\services.php): failed to open stream: Operation not permitted in D:\PhpSpace\new_crm\public\index.php on line 22 PHP Fatal error: require(): Failed opening required 'D:\PhpSpace\new_crm\public/../config/services.php' (include_path='.;C:\php\pear') in D:\PhpSpace\new_crm\public\index.php on line 22" while reading response header from upstream, client: 192.168.0.188 看情况,应该是open_basedir做了限制,但是php.ini里面查看了,应该是默认配置,是没有限制的,从allowed path(s)看,应该是读取了几个默认的项目以及本项目的root目录,请教,这可以在哪里进行修改吗?需要读入上一层目录。 另session采用redis缓存,也报错: Warning: ini_set(): Cannot find save handler 'redis' in D:\PhpSpace\new_crm\public\index.php on line 3 Warning: ini_set(): open_basedir restriction in effect. File(http://127.0.0.1:6379) is not within the allowed path(s): (D:\PhpSpace\new_crm\public\;D:\Develop\upupw\memcached\;D:\Develop\upupw\phpmyadmin\;D:\Develop\upupw\temp\;C:\Windows\Temp\) in D:\PhpSpace\new_crm\public\index.php on line 7 通过phpinfo看,session应该是支持redis的: Registered save handlers files user memcache redis phpredis扩展也已安装 请各大神指教! |
|
沙发#
发布于:2016-03-25 18:36
网站根目录有个.uini文件,打开把要包括的路径加进去,然后面板s6再s2下。
也可以16进去关闭下防跨站目录隔离功能。 |
|
板凳#
发布于:2016-03-28 09:32
非常感谢!!!已解决!
|
|