【发布时间】:2017-04-16 16:55:53
【问题描述】:
大家好,我使用的是 Windows 2016 VPS 服务器,我在上面安装了 IIS Web 服务器和 php,但是我在会话中遇到了这个错误。
警告:session_start(): open(C:\Windows\temp\sess_qbageacapafd73fbj19idjbtd3, O_RDWR) failed: Permission denied (13) in C:\inetpub\wwwroot\system\global.php on line 6
当我选择不同的会话路径时,我得到了同样的错误
警告:session_start(): open(C:\Windows\PHPSessions\sess_qbageacapafd73fbj19idjbtd3, O_RDWR) failed: No such file or directory (2) in C:\inetpub\wwwroot\system\global.php on line 6
有没有办法解决这个问题?
【问题讨论】:
-
感谢您清理我的问题
-
听起来像在第一个错误中,您的 IIS 服务器运行 Apache 的用户无权访问
temp文件夹。在第二个中,PHPSessions文件夹不存在。 -
是否可以访问临时文件夹
-
感谢这篇文章对我的帮助。