<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The problem is that FCGI is a bag of crap and anything non-thread safe
will usually crash it. You either have a babysit it with something like
Monit, or use something more modern like uWSGI or Gunicorn. uWSGI is a
wsgi server written in C and needs to be compiled as well as requires a
compiled version of Nginx, although this is recommended anyway because
the Debian Aptitude version of Nginx is so damn old. Gunicorn is a 100%
wsgi server and shares many of the same benefits as uWSGI, but has not
been as fast in my tests. Either of these, your app will be the slow
part, not the wsgi server so it doesn't matter.<br>
<br>
Hope this helps.<br>
<br>
On 05/05/10 11:17 PM, sagasw wrote:
<blockquote
 cite="mid:w2i4de92fd1005052017m248d6194yefe7737aba410215@mail.gmail.com"
 type="cite">I get a vps host and install php already with spawn-fcgi.<br>
And you could see my steps here:<br>
  <a moz-do-not-send="true" href="http://sunxiunan.com/?p=1618">http://sunxiunan.com/?p=1618</a><br>
  <br>
Now I want to add support python (web.py) in this host,<br>
  <a moz-do-not-send="true"
 href="http://webpy.org/cookbook/fastcgi-nginx">http://webpy.org/cookbook/fastcgi-nginx</a><br>
and try the steps in web.py, but can't work correct.<br>
just get <br>
spawn-fcgi: child exited with: 2<br>
  <br>
Who could tell me the steps I should do?<br>
  <br>
Many thanks,<br>
  <br>
sagasw<br>
  <br clear="all">
------------------------------------------<br>
blog: <a moz-do-not-send="true" href="http://sunxiunan.com/">http://sunxiunan.com/</a><br>
C++, Lua, living in Dalian<br>
  <a moz-do-not-send="true" href="http://twitter.com/sagasw">http://twitter.com/sagasw</a><br>
  <a moz-do-not-send="true" href="http://t.qq.com/sagasw">http://t.qq.com/sagasw</a><br>
------------------------------------------<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
  </pre>
</blockquote>
<br>
</body>
</html>