我在带有 IIS7 和 FastCGI 的 Windows Server 2008 上运行 php 5.5.12。
这是我收到的日志错误之一:
file_put_contents(): open_basedir restriction in effect. File(C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.0.3\content\vod\test.smil) is not within the allowed path(s): (C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.0.3\content\vod;C:\Windows\TEMP\;E:\webpage;C:\php) in E:\webpage\dev\vod\createsettings.php on line 41
这是我的open_basedir
台词php.ini
:
open_basedir = "C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.0.3\content\vod;C:\Windows\TEMP\;E:\webpage;C:\php"
如您所见,目标目录实际上是在 中指定的open_basedir
,但它的行为就好像它受到限制一样。
注释掉open_basedir
并重新启动 IIS 不会导致任何错误,并且一切都按预期工作。
将目标目录更改为其他打开的目录之一(C:\Windows\TEMP
例如)也可以正常工作,没有错误。
我在这里阅读了八页的问题,但还没有看到匹配。提前感谢您提供的任何帮助!