lighttpd + webpy 启动时出错
调了大半天,火挺大,还好总算解决了。
运行环境:
- gentoo
- python 2.5.2
- lighttpd 1.4.21
- webpy 0.31
直接跑 /work/www/test/main.py 没问题,交给跑 fastcgi 就有问题,错误提示:
2009-02-22 06:09:47: (log.c.97) server started 2009-02-22 06:09:47: (mod_fastcgi.c.1051) the fastcgi-backend /work/www/test/main.py failed to start: 2009-02-22 06:09:47: (mod_fastcgi.c.1055) child exited with status 1 /work/www/test/main.py 2009-02-22 06:09:47: (mod_fastcgi.c.1058) If you're trying to run PHP as a FastCGI backend, make sure you're using the FastCGI-enabled version. You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'. For more information, check http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add 'fa 继续阅读本文……

