php - Zend / PHP / Apache2 - 我运行我的apache服务器时出现问题
问题描述
首先,对不起,我会尽力向您解释这个问题,因为我不是英国人。所以,上周我安装了 apache、php 和 zend,一切都运行良好,但今天当我尝试为服务器提供午餐时,我遇到了问题。我只是从 Zend 开始,对我来说它是虚无的。你能帮我纠正一下吗?
这就是问题 :
Fatal error: Uncaught exception 'Zend_Session_Exception' with message '
Zend_Session::start() - D:\Zend\ZendFramework-
1.11.10\library\Zend\Session.php(Line:469): Error #2 session_start() [<a
href='function.session-start'>function.session-start</a>]:
open(C:\Windows\sess_9q7bhlv36pc8o7vhngpptmmca7, O_RDWR) failed: Permission
denied (13) Array D:\Zend\ZendFramework-
1.11.10\library\Zend\Session.php(Line:479): Error #2 session_write_close()
[<a href='function.session-write-close'>function.session-write-close</a>]:
open(C:\Windows\sess_9q7bhlv36pc8o7vhngpptmmca7, O_RDWR) failed: Permission
denied (13) Array D:\Zend\ZendFramework-
1.11.10\library\Zend\Session.php(Line:479): Error #2 session_write_close()
[<a href='function.session-write-close'>function.session-write-close</a>]:
Failed to write session data (files). Please verify that the current setting
of session.save_path is correct () Array' in D:\Zend\ZendFramework-
1.11.10\library\Zend\Session.php:482 Stack trace: #0 D:\Zend\ZendFramework-
1.11.10\library\Zend\Session\Namesp in D:\Zend\ZendFramework-
1.11.10\library\Zend\Session.php on line 482
解决方案
经过大量研究,我发现了问题所在。Windows 无法创建“sess_9..”文件夹,所以我将这一行放在 application.ini 中。
resources.session.save_path = APPLICATION_PATH "/../data/session"
现在它工作得很好!
感谢您的建议
推荐阅读
- python - 获得最大数量的产品给予金钱限制
- java - 在 Apache Ignite 中释放锁定时出现 IllegalMonitorStateException
- flutter - 尝试为 iOS 运行或构建 Flutter 项目时出错
- python - 索引错误:索引 2 超出轴 0 的范围,大小为 2
- java - 使用 Maven 和 logback 配置 Apache Spark 日志记录,最后向 Loggly 抛出消息
- android - 无法在 Firebase 中看到事件
- sql - Oracle SQL - 选择大数字作为十六进制字符串
- javascript - 是否可以使用 getDisplayMedia() 禁用光标记录
- android - - 如何解决:ParentDataWidget 使用不正确?
- javascript - 如何链接 api 调用,并循环直到对象等于特定值