51Testing软件测试论坛

标题: Agileone_1.1_1在linux下部署出错,求大神帮助 [打印本页]

作者: 坐井观月    时间: 2013-1-18 01:22
标题: Agileone_1.1_1在linux下部署出错,求大神帮助
XP上部署,没问题,访问也没问题,在linux下,问题就来了,数据库的连接都建好了,但是点击登录的效果确实是刷新
去apache日志查看,提示是404错误,没有找到文件或目录,下面附张错误日志截图,算了,不截图了,上次截图都没发出来,我复制一部分错误的代码

[Wed Jan 16 16:37:34 2013] [error] [client 192.168.1.101] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_pecvqjfn9k0vp49vpndusg0e86, O_RDWR) failed: Permission denied (13) in /opt/lamp/apache/htdocs/aone/index.php on line 29, referer: http://192.168.1.17/aone/
[Wed Jan 16 16:37:35 2013] [error] [client 192.168.1.101] PHP Notice:  Use of undefined constant APPLICATION_ENVIRONMENT - assumed 'APPLICATION_ENVIRONMENT' in /opt/lamp/apache/htdocs/aone/index.php on line 92, referer: http://192.168.1.17/aone/
[Wed Jan 16 16:37:35 2013] [error] [client 192.168.1.101] PHP Notice:  Undefined index:  goAdmin in /opt/lamp/apache/htdocs/aone/App/Model/Logging.php on line 43, referer: http://192.168.1.17/aone/
[Wed Jan 16 16:37:35 2013] [error] [client 192.168.1.101] PHP Warning:  Unknown: open(/var/lib/php/session/sess_pecvqjfn9k0vp49vpndusg0e86, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://192.168.1.17/aone/
[Wed Jan 16 16:37:35 2013] [error] [client 192.168.1.101] PHP Warning:  Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://192.168.1.17/aone/
[Wed Jan 16 16:37:35 2013] [error] [client 192.168.1.101] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session/sess_pecvqjfn9k0vp49vpndusg0e86, O_RDWR) failed: Permission denied (13) in /opt/lamp/apache/htdocs/aone/index.php on line 29
作者: 六月天    时间: 2013-1-19 09:03
看错误提示貌似是权限问题。你把/var/lib/php/session目录包含里面的子目录和所有文件增加写权限。
顺便给你这个命令吧:
chmod -R ugo+w /var/lib/phpsession
作者: 坐井观月    时间: 2013-1-22 15:45
回复 2# 六月天


    还真是,太感谢了
作者: fengerapple    时间: 2013-1-25 17:19
Thank you very much for sharing!The good man!The good life of peace!




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2