TurboGears - help with FastCGI/Python/CherryPY

software development

#1

I’ve been following a guide [ http://trac.turbogears.org/turbogears/wiki/TurboGearsOnDreamHost ] to install TurboGears on my new DreamHost account. I’m relatively new to *nix systems and to Python, but I managed to get through the majority of the guide (with some help from Google searches on things I didn’t understand immediately!).

However, I’m at the very end, where it basically says, “You’re set! Good going!”… except that it’s not going. :slight_smile:

When I load the webpage (.htaccess redirecting to FastCGI script), I get a CherryPy 500 error: “Server got itself in trouble.” If I remove the .htaccess file and kill the FastCGI processes, I am at least back to a normal web server, so that’s good, but not helpful in running my TurboGears app.

I went to the error log and see the following:
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!

I am not sure where I should be setting these parameters.

As you can tell, I’m unfortunately a little lost. Any assistance you can offer would be very gratefully received!

Thanks,

Sarah