[英]Eclipse PHP Zend: “workspace in use” when i try to set my workspace in Apache2/htdocs?
[英]Zend / PHP / Apache2 - problem when I run my apache server
首先,对不起,我会尽力向您解释这个问题,因为我不是英国人。 因此,上周我安装了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"
现在,它运行良好!
感谢您的建议
首先在根目录上以777权限创建文件夹“ tmp”,然后在start_session之前,在Framework加载页面中添加以下代码Public / index.php或通常也可以在apache服务器中对其进行设置。
ini_set('session.save_path', 'tmp');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.