Lighttpd服务器已停止

时间:2010-06-03 21:05:26

标签: web lighttpd fastcgi

我有一个Lighttpd服务器加上mod_fastcgi。今天我有内部服务器错误500.我已经检查了我的错误日志,它是这样的:

2010-04-22 22:59:14: (server.c.1464) server stopped by UID = 0 PID = 3332
2010-04-22 22:59:15: (mod_fastcgi.c.1768) connect failed: No such file or directory on unix:/tmp/php.socket-5
2010-04-22 22:59:15: (mod_fastcgi.c.2956) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1
2010-04-22 22:59:15: (mod_fastcgi.c.2709) child died somehow, waitpid failed: 10
2010-04-22 22:59:15: (server.c.1464) server stopped by UID = 0 PID = 3332
2010-04-22 22:59:15: (server.c.1464) server stopped by UID = 48 PID = 1385
2010-04-22 22:59:15: (server.c.1464) server stopped by UID = 48 PID = 1385
2010-04-22 22:59:15: (server.c.1464) server stopped by UID = 48 PID = 1385
2010-04-22 22:59:15: (server.c.1464) server stopped by UID = 48 PID = 1385

如何找出导致此问题的原因?

2 个答案:

答案 0 :(得分:0)

一些可能的原因:

  1. / tmp分区已满
  2. / tmp有错误的权限代码,禁止创建/tmp/php.socket-5

答案 1 :(得分:0)

您可以尝试使用strace运行服务器,并查看哪个系统调用失败。确保服务器没有从终端分离(=没有进入守护进程模式,我没有找到lighthhtpd是否有一个命令行开关,它has a -D切换但是我看不清楚它具有所需的效果),否则你将看不到失败过程的输出。