The problem comes when I try to tie together lighttpd and
TurboGears via a file socket. My lighttpd.conf loads the FastCGI
module and the fastcgi.server section is as follows:
fastcgi.server = ( ".fcgi" =>
( "localhost" =>
(
"min-procs" => 1,
"socket" => "/tmp/fcgi.sock"
)
)
)
I've "touch"ed /tmp/fcgi.sock and it's owner/group are both lighttpd.
I then slightly modified the testproject1-start.py file so that I could
tie it into lighttpd. I changed the cherrypy.server.start() line to
the following:
cherrypy.server.start(initOnly=True, serverClass=None)
from cherrypy._cpwsgi import wsgiApp
from flup.server.fcgi import WSGIServer
WSGIServer(wsgiApp,bindAddress="/tmp/fcgi.sock").run()
I can start up lighttpd with no errors. Prior to running my new .fcgi
file (now called dispatch.fcgi), any attempt to load a .fcgi file
results in entries in the lighttpd log files stating that no
fcgi-handler was found. When I try to run "python dispatch.conf"
though, I get a socket error that says "socket.error: (98, 'Address
already in use')". This error occurs when Python gets to my new
WSGIServer line. Anyone have ANY ideas? Help would be GREATLY
appreciated. Thanks! :)