Hello,
I'm new to this framework, so pardon my ignorance, but here goes:
I've spent a LOT of time trying to get this working on my server, and
now I have some specific questions:

I have gotten a project up and running, and I can verify it by
starting the paster server, and then running a lynx webserver to
localhost:5000.  This shows I am getting the proper 'hello world'
controller working (and the route that directs to the hello controller
from the root url).

However, I am still stuck on how to get the public to view my site,
given that I am on a server without root privileges, and the Apache
install does not have mod_python, mod_wsgi, or mod_fcgi.  I do have
mod_proxy, but I'm not clear how I can use that to serve my pages.  I
suppose I could redirect certain urls to point to the port 5000 paster
server

I found an article on how to use straight CGI to serve a WSGI
application, and I got it working for static pages, by putting this
script (called test.py) in my cgi-bin directory:
#!/usr/home/rgamage/bin/python

from paste.deploy import loadapp
wsgi_app = loadapp('config:/usr/home/rgamage/siv/siv_production.ini')
import wsgiref.handlers
wsgiref.handlers.CGIHandler().run(wsgi_app)

If I have a static index.html in the public directory, then this
method works - going to http://mywebspace.com/cgi-bin/test.py yields
the proper static welcome page.  However, if I delete that index.html,
I expect it to run the sample controller, hello, and instead I get
this series of exceptions:

Output of script follows:
=====================================================
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/wsgiref/handlers.py", line 92, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/home/rgamage/lib/python2.5/site-packages/Paste-1.4.2-
py2.5.egg/paste/cascade.py", line 92, in __call__
    return self.apps[-1](environ, start_response)
  File "/usr/home/rgamage/lib/python2.5/site-packages/Paste-1.4.2-
py2.5.egg/paste/registry.py", line 340, in __call__
    app_iter = self.application(environ, start_response)
  File "/usr/home/rgamage/lib/python2.5/site-packages/Paste-1.4.2-
py2.5.egg/paste/recursive.py", line 80, in __call__
    return self.application(environ, start_response)
  File "/usr/home/rgamage/lib/python2.5/site-packages/Paste-1.4.2-
py2.5.egg/paste/errordocument.py", line 185, in __call__
    app_iter = self.application(environ, change_response)
  File "/usr/home/rgamage/lib/python2.5/site-packages/Paste-1.4.2-
py2.5.egg/paste/evalexception/middleware.py", line 180, in __call__
    "The EvalException middleware is not usable in a "
AssertionError: The EvalException middleware is not usable in a multi-
process environment
Status: 500 Dude, this is whack!
Content-Type: text/plain
Content-Length: 59

A server error occurred.  Please contact the administrator.

Any ideas you guys have would be much appreciated.  Also, I don't
quite understand how I would reference different controllers using the
cgi method.  The test.py script runs my application, but how would I
specify which controller or page within the app?  Is this method even
a good idea, or should I make the jump to another hosting service that
provides mod_python or mod_wsgi?

Thanks,
Randy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to