禅道PMS 在lnmp下的安装问题
2013-04-17 00:00
281 查看
禅道PMS(zentaoPMS)是一个优秀的国产开源项目管理软件。官方提供了lamp一键安装包,但是我们常常已经有了lnmp环境,那么需要直接从源码包安装zentaopms。
最近帮朋友安装zentaopms,安装了标准的lnmp,安装zentao时却碰到了问题:
经过google,问题是php参数session.save_path = "/var/lib/php/session"
目标目录不存在,或者php-fpm没有写权限,解决办法:
(假设我们以nginx身份运行php-fpm)
最近帮朋友安装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
相关文章推荐
- 详解open_basedir 配置项的文件权限问题(使用lnmp一键安装包出现的环境问题)
- 第二次lnmp环境下wordpress的安装问题
- linux下给php安装pdo_mysql和zlib以及测试模式的选择(禅道安装过程中遇到的问题)
- 关于yum与源码安装的LAMP或LNMP网页直接显示空白页的问题?
- mac 上vagrant 安装lnmp,配置域名访问不进去的问题,已解决
- LNMP之编译安装PHP出现的问题
- Debian6 / 7 Web服务器环境搭建LNMP一键安装包 | 问题汇总与解答
- LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法
- LNMP之编译安装PHP出现的问题
- lnmp安装问题
- LNMP编译安装遇到问题归总
- LNMP编译安装常见问题
- mac安装lnmp环境中php扩展遇到的问题
- 记录一次禅道迁移安装目录引起的二维码生成失败的问题解决
- LNMP一键安装包下wordpress更新问题
- linux下给php安装pdo_mysql和zlib以及测试模式的选择(禅道安装过程中遇到的问题)
- lnmp Proftpd 无法登陆以及 安装Discuz问题记录
- linux下给php安装pdo_mysql和zlib以及测试模式的选择(禅道安装过程中遇到的问题)
- 在LNMP环境下安装测试HTTPS及其问题
- 编译安装 LNMP架构及遇到的问题