首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Lighttpd无法创建php-Quickcgi.套接字

问Lighttpd无法创建php-Quickcgi.套接字
EN

Server Fault用户
提问于 2009-06-24 13:19:44
回答 5查看 18.3K关注 0票数 5

我已经使用yum安装了FastCGI,并编辑了我的lighttpd.conf,但是当重新启动服务器时,我会收到这个错误。

代码语言:javascript
复制
2009-06-24 12:44:43: (log.c.97) server started 
2009-06-24 12:44:43: (mod_fastcgi.c.924) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 No such file or directory 
2009-06-24 12:44:43: (mod_fastcgi.c.1365) [ERROR]: spawning fcgi failed. 
2009-06-24 12:44:43: (server.c.902) Configuration of plugins failed. Going down. 

我的lighttpd.conf的相关部分是:

代码语言:javascript
复制
fastcgi.server             = ( ".php" =>
                               ( "localhost" =>
                                 (
                                  #"socket" => "/var/run/lighttpd/php-fastcgi.socket",
                                  #"bin-path" => "/usr/bin/php-cgi"
                                   "socket" => "/tmp/php-fastcgi.socket",
                                   "bin-path" => "/usr/bin/php-cgi"
                                 )
                               )
                            )

非常感谢。

EN

回答 5

Server Fault用户

回答已采纳

发布于 2009-06-24 13:39:04

检查lighttpd是否有写/var/run/lighttpd的权限

票数 3
EN

Server Fault用户

发布于 2017-03-06 09:35:36

通过以下更改得到修正:

  • mkdir /var/run/lighttpd
  • touch /var/run/lighttpd/php-fastcgi.socket
  • chown -R lighttpd:lighttpd /var/run/lighttpd

其中lighttpd是用户名。

将lighttpd.conf中的套接字更新为指向/var/run/lighttpd/php-Quickcgi.Socket解决了这个问题。

unix:/var/run/lighttpd/php-Quickcgis.ocket-0没有这样的文件或目录

票数 2
EN

Server Fault用户

发布于 2009-10-13 02:10:42

答案是

代码语言:javascript
复制
mkdir -p /var/run/lighttpd/
chown lighttpd /var/run/lighttpd

请参阅http://www.kernelhardware.org/lighttpd-and-centos-5/

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/30967

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档