I have followed the instructions here http://docs.turbogears.org/1.0/LightTPD
and have had no success. I first run the new myproject startup script
from my TG app, I then run lighttpd.
lighttpd log...
2007-08-28 14:49:48: (mod_scgi.c.2051) fcgi-server re-enabled:
127.0.0.1 4000
2007-08-28 15:35:38: (log.c.75) server started
2007-08-28 15:36:00: (mod_scgi.c.2223) establishing connection failed:
Connection refused
2007-08-28 15:36:00: (mod_scgi.c.2357) fcgi-server disabled:
192.168.254.140 4000
2007-08-28 15:36:00: (mod_scgi.c.2825) no fcgi-handler found for: /
2007-08-28 15:36:07: (mod_scgi.c.2825) no fcgi-handler found for: /
index.html
2007-08-28 15:37:01: (mod_scgi.c.2051) fcgi-server re-enabled:
192.168.254.140 4000
2007-08-28 15:40:32: (mod_scgi.c.2223) establishing connection failed:
Connection refused
2007-08-28 15:40:32: (mod_scgi.c.2357) fcgi-server disabled:
192.168.254.140 4000
2007-08-28 15:40:32: (mod_scgi.c.2825) no fcgi-handler found for: /
I have tried it also set as 127.0.0.1 with the same errors.
I have pretty much used the vanilla scripts from the above listed
page.
[EMAIL PROTECTED]:/var/www/intranet# cat Intranet-start-scgi.py
#!/usr/bin/env python
import pkg_resources
import cherrypy
import sys
pkg_resources.require("TurboGears")
from cherrypy._cpwsgi import wsgiApp
from flup.server.scgi_fork import WSGIServer
from os.path import *
if len(sys.argv) > 1:
cherrypy.config.update(file=sys.argv[1])
elif exists(join(dirname(__file__), "setup.py")):
cherrypy.config.update(file="dev.cfg")
else:
cherrypy.config.update(file="prod.cfg")
from intranet.controllers import Root
cherrypy.root = Root()
cherrypy.server.start(initOnly=True, serverClass=None)
WSGIServer(application=wsgiApp).run()
[EMAIL PROTECTED]:/var/www/intranet# cat Intranet-start-scgi.py
#!/usr/bin/env python
import pkg_resources
import cherrypy
import sys
pkg_resources.require("TurboGears")
from cherrypy._cpwsgi import wsgiApp
from flup.server.scgi_fork import WSGIServer
from os.path import *
if len(sys.argv) > 1:
cherrypy.config.update(file=sys.argv[1])
elif exists(join(dirname(__file__), "setup.py")):
cherrypy.config.update(file="dev.cfg")
else:
cherrypy.config.update(file="prod.cfg")
from intranet.controllers import Root
cherrypy.root = Root()
cherrypy.server.start(initOnly=True, serverClass=None)
WSGIServer(application=wsgiApp).run()
[EMAIL PROTECTED]:/var/www/intranet# cat /etc/lighttpd/lighttpd.conf
server.modules = ( "mod_access",
"mod_scgi",
"mod_accesslog",
"mod_rewrite",
"mod_staticfile" )
server.document-root = "/var/www/intranet"
server.errorlog = "/tmp/lighttpd.error.log"
accesslog.filename = "/tmp/access.log"
$HTTP["url"] !~ "^/static/" {
scgi.server = (
"/" =>
( "192.168.254.140" =>
(
"host" => "192.168.254.140",
"port" => 4000,
"check-local" => "disable"
)
)
)
}
my app lives at /var/www/intranet
I have tried this install on a couple different ubuntu virtual
machines and always with the same result and error from above.
I have been hammering this pretty much for the full day today so any
help would be greatly appreciated.
Right now I just want it to work by itself in an isolated enviorment.
After that I want the app to share a server with other web based apps
not all of them tg's. I have an html::mason app from years ago that I
have no desire to rewrite but would like them to be able to sit on the
same server. At any rate this is secondary I will be very happy just
to get the "vanilla" setup instructions to work.
Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---