Can't make it work with lighttp and fastcgi

737 views
Skip to first unread message

Tomas Schertel

unread,
Jul 6, 2012, 9:38:11 AM7/6/12
to we...@googlegroups.com
Hi guys.
I'm following recipe from http://webpy.org/cookbook/fastcgi-lighttpd but it just don't work.
Lighttp log gives me these messages:

2012-07-06 10:33:36: (mod_fastcgi.c.1103) the fastcgi-backend /home/tomas/Dropbox/projetos/synergie/serve.py failed to start:
2012-07-06 10:33:36: (mod_fastcgi.c.1107) child exited with status 13 /home/tomas/Dropbox/projetos/synergie/serve.py
2012-07-06 10:33:36: (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.
2012-07-06 10:33:36: (mod_fastcgi.c.1397) [ERROR]: spawning fcgi failed.
2012-07-06 10:33:36: (server.c.964) Configuration of plugins failed. Going down.

Can someone help me?


Thanks.

Primoz Anzur

unread,
Jul 6, 2012, 12:47:19 PM7/6/12
to we...@googlegroups.com
Do you have a shebang on the top of the file and chmod it correctly?


--
You received this message because you are subscribed to the Google Groups "web.py" group.
To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/gDVQ72aqdtQJ.
To post to this group, send email to we...@googlegroups.com.
To unsubscribe from this group, send email to webpy+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webpy?hl=en.

Tomas Schertel

unread,
Jul 6, 2012, 2:02:30 PM7/6/12
to we...@googlegroups.com
Yes, I did.
And installed flup too...
To unsubscribe from this group, send email to webpy+unsubscribe@googlegroups.com.

Primoz Anzur

unread,
Jul 6, 2012, 2:12:13 PM7/6/12
to we...@googlegroups.com
This is the configuration on my server:

        dir-listing.activate = "disable"
        server.follow-symlink = "enable"
        fastcgi.server = ( "/" =>
        ((
           "socket" => "/tmp/fastcgi.socket",
           "bin-path" => "/www/site/docs/index.py",
           "max-procs" => 1,
           "bin-environment" => (
             "REAL_SCRIPT_NAME" => ""
           ),
           "check-local" => "disable"
        ))
        )



It can also be missing other dependencies... Does the app works stand alone? Or if you just try to execute ./serve.py ?

To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/Eq4LdBZs93EJ.

To post to this group, send email to we...@googlegroups.com.
To unsubscribe from this group, send email to webpy+un...@googlegroups.com.

Tomas Schertel

unread,
Jul 6, 2012, 3:06:45 PM7/6/12
to we...@googlegroups.com
Primoz, I decided keep my app running with cherrypy built in server for now.
Thanks for your help.
Reply all
Reply to author
Forward
0 new messages