禪道PMS在lnmp下的安裝問題
禪道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
本文轉自 紫色葡萄 51CTO部落格,原文連結:http://blog.51cto.com/purplegrape/1179619,如需轉載請自行聯絡原作者
相關文章
- 禪道的使用:如何搭建Ubuntu環境安裝禪道Ubuntu
- 本地安裝部署禪道
- centos7安裝配置禪道7.3CentOS
- 禪道命名標識約定-敏捷在禪道(五)敏捷
- linux下給php安裝pdo_mysql和zlib以及測試模式的選擇(禪道安裝過程中遇到的問題)LinuxPHPMySql模式
- 在 Ubuntu18.04 下安裝 LNMP 環境UbuntuLNMP
- 賜教在windows下安裝linux的問題(轉)WindowsLinux
- Docker 下安裝配置 lnmp 環境DockerLNMP
- jdon在tomcat的安裝問題Tomcat
- centos7下編譯安裝lnmpCentOS編譯LNMP
- Mac下安裝PHP遇到的問題MacPHP
- [LNMP]安裝NginxLNMPNginx
- 在S/390下安裝 SuSE Linux 問題解答(轉)Linux
- 禪道PythonPython
- 10.25禪道
- Docker - 部署禪道Docker
- OneThink在Sae安裝問題
- Linux 下使用 Docker 安裝lnmp環境LinuxDockerLNMP
- Sublime Text 3下安裝Emmet的問題
- Fedora下安裝virtualbox遇到的問題
- 【問題覆盤】在Ubuntu 20.04下安裝OFED驅動Ubuntu
- LNMP 環境安裝LNMP
- CentOS 7 安裝 lnmpCentOSLNMP
- 安裝LNMP環境LNMP
- lnmp安裝指令碼LNMP指令碼
- LNMP—Nginx的編譯安裝LNMPNginx編譯
- 軟體測試-BUG管理工具禪道安裝使用過程
- 安裝的問題
- 在騰訊雲上安裝mysql遇到的問題MySql
- Mac下安裝LNMP(Nginx+PHP5.6)環境MacLNMPNginxPHP
- 使用Docker部署禪道Docker
- Windows下ElasticSearch安裝中的問題解決WindowsElasticsearch
- linux下安裝mysql的問題解決LinuxMySql
- LINUX下安裝oracle的java字型問題LinuxOracleJava
- linux 下 wu-ftp的安裝問題LinuxFTP
- LNMP的403問題總結LNMP
- macbook 下安裝Goglang 以及安裝svn外掛所遇到的問題MacGo
- macOS 安裝 LNMP 環境MacLNMP