首页 > 解决方案 > 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

标签: phpapachezend-framework

解决方案


经过大量研究,我发现了问题所在。Windows 无法创建“sess_9..”文件夹,所以我将这一行放在 application.ini 中。

resources.session.save_path = APPLICATION_PATH "/../data/session"

现在它工作得很好!

感谢您的建议


推荐阅读