lighttpd + fastcgi + web.py 配置问题

在X宗提供的xen Debian 虚拟机上学习配置lighttpd + fastcgi + web.py,装好了lighttpd,web.py,flup,设置好了lighttpd.conf,/etc/lighty-enable-mode : fastcgi,发现总是报错:

 

2013-06-26 15:04:17: (mod_fastcgi.c.1103) the fastcgi-backend /srv/site/site.py failed to start:

2013-06-26 15:04:17: (mod_fastcgi.c.1107) child exited with status 2 /srv/site/site.py

2013-06-26 15:04:17: (mod_fastcgi.c.1110) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.

If this is PHP on Gentoo, add 'fastcgi' to the USE flags.

2013-06-26 15:04:17: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.

2013-06-26 15:04:17: (server.c.964) Configuration of plugins failed. Going down.

 

各种各样的 child exited with status * 错误,网上很少有明确的解释。

 

各种尝试后,看到个帖子说要删去code.py文件中在windows环境下换行符中多余的\r。代码确实是复制过来的。于是果然。

你可能感兴趣的:(lighttpd)