您的位置:首页 > 产品设计 > 产品经理

禅道PMS 在lnmp下的安装问题

2013-04-17 00:00 281 查看
禅道PMS(zentaoPMS)是一个优秀的国产开源项目管理软件。官方提供了lamp一键安装包,但是我们常常已经有了lnmp环境,那么需要直接从源码包安装zentaopms。

最近帮朋友安装zentaopms,安装了标准的lnmp,安装zentao时却碰到了问题:

2013/04/16 23:30:22 [error] 1617#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/var/lib/php/session/sess_48brpa4tikqe6qok3so0v8g025, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: 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" while reading upstream, client: 192.168.122.1, server: localhost, request: "GET /zentaopms/www/install.php?m=install&f=step2 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.122.124", referrer: "http://192.168.122.124/zentaopms/www/install.php?m=install&f=step1"
2013/04/16 23:30:23 [error] 1617#0: *13 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.122.1, server: localhost, request: "GET /zentaopms/www/pathinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.122.124", referrer: "http://192.168.122.124/zentaopms/www/install.php?m=install&f=step2"
2013/04/16 23:30:34 [error] 1617#0: *13 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: open(/var/lib/php/session/sess_48brpa4tikqe6qok3so0v8g025, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
PHP message: 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" while reading upstream, client: 192.168.122.1, server: localhost, request: "POST /zentaopms/www/install.php?m=install&f=step3 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.122.124", referrer: "http://192.168.122.124/zentaopms/www/install.php?m=install&f=step2"
2013/04/16 23:30:43 [error] 1617#0: *13 FastCGI sent in stderr: "PHP message: ERROR: 您访问的域名 192.168.122.124 没有对应的公司。 in /usr/share/nginx/html/zentaopms/module/common/model.php on line 65, last called by /usr/share/nginx/html/zentaopms/module/common/control.php on line 25 through function setCompany" while reading response header from upstream, client: 192.168.122.1, server: localhost, request: "GET /zentaopms/www/index.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "192.168.122.124", referrer: "http://192.168.122.124/zentaopms/www/install.php?m=install&f=step3"


经过google,问题是php参数session.save_path = "/var/lib/php/session"

目标目录不存在,或者php-fpm没有写权限,解决办法:

(假设我们以nginx身份运行php-fpm)

mkdir -p /var/lib/php/session
chown nginx:nginx /var/lib/php/session
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  lnmp zentaopms