Hi,

I am trying to use fastcgi with LIGHTTPD.

Below is my webpy code where 1) chmod 755 2) placed in /srv/www/
lightpd/code.py

#!/usr/bin/python2.5
import web

web.internalerror = web.debugerror
urls=( '/','index' )
app = web.wsgifunc(web.webpyfunc(urls, globals()))
class index:
    def GET(self):
        web.header("Content-Type","text/html; charset=utf-8")
        return "test"
if __name__ == "__main__":
    web.webapi.internalerror = web.debugerror
    app.run()


In my conf file:

fastcgi.server = ( "/code.py" =>
 (( "socket" => "/tmp/fastcgi.socket",
    "bin-path" => "/srv/www/lighttpd/",
    "max-procs" => 1,
   "bin-environment" => (
     "REAL_SCRIPT_NAME" => ""
   ),
   "check-local" => "disable"
 ))
 )

url.rewrite-once = (
   "^/favicon.ico$" => "/static/favicon.ico",
   "^/static/(.*)$" => "/static/$1",
   "^/(.*)$" => "/code.py/$1",
 )


This is the error I get trying to boot up lighty....

 (mod_fastcgi.c.1025) the fastcgi-backend /srv/www/lighttpd/ failed to
start:
2008-12-23 16:05:49: (mod_fastcgi.c.1029) child exited with status 13 /
srv/www/lighttpd/
2008-12-23 16:05:49: (mod_fastcgi.c.1032) 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 'fastcgi' to the USE flags.
2008-12-23 16:05:49: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi
failed.
2008-12-23 16:05:49: (server.c.892) Configuration of plugins failed.
Going down.

What am I doing wrong?

Thanks








--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to