Hello group,
Case solved: My fault - I tried to run the fcgi-script from the command
line. After I left it to the web server to start it automaticaly, everything
worked.
Best regards
Harald Rishovd
2008/8/23 haraldr <[EMAIL PROTECTED]>
>
> Hello group,
> After a long fascination with Django I happened to find Werkzeug and
> Textpress. Unfortunately I am running my site on a shared host and I
> am not able to figure out how to set up my configuration.
>
> The host is based on FastCGI and flup. I have installed Textpress with
> the packages from ServerSen.net (including a virtualenv setup).
>
> My configuration files are placed in /home/users/xxx/www and look like
> this:
>
> [.htaccess]
> AddHandler fcgid-script .fcgi
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ xxx.fcgi/$1 [QSA,L]
>
> [xxx.fcgi]
> #!/usr/local/bin/python
>
> import sys, os
> import site
> site.addsitedir('/home/users/xxx/textpress-app/lib/python2.5/site-
> packages')
>
> """
> TextPress FastCGI Runner
> ~~~~~~~~~~~~~~~~~~~~~~~~
>
> If FastCGI is your hosting environment this is the correct file.
> For working FastCGI support you have to have flup installed.
> """
>
> # path to the instance. the folder for the instance must exist,
> # if there is not instance information in that folder the websetup
> # will show an assistent
> INSTANCE_FOLDER = '/home/users/xxx/xxx_no'
> sys.path.insert(0, "/home/users/xxx/textpress-app/lib/python2.5/site-
> packages/TextPress-0.1dev_hgr432_sz3-py2.5.egg/textpress")
>
> # here you can further configure the fastcgi and wsgi app settings
> # but usually you don't have to touch them
> from textpress import make_app
> from flup.server.fcgi import WSGIServer
> app = make_app(INSTANCE_FOLDER)
> srv = WSGIServer(app)
>
> if __name__ == '__main__':
> srv.run()
>
>
> Virtualenv has installed the packages at /home/users/xxx/textpress-app/
> lib/python2.5/site-packages, the blog instance is supposed to be at /
> home/users/xxx/xxx_no.
>
> When I try to run xxx.fcgi from /home/users/xxx/www I get this
> message:
>
> 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!
> Status: 200 OK
> Content-Type: text/html; charset=utf-8
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> <html>
> .
> .
> .
>
>
> I understand that I miss some environment configuration, but I do not
> know how to set it up correctly. Any help will be greatly appreciated!
>
>
> Best regards
> Harald Rishovd
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pocoo-libs" 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/pocoo-libs?hl=en
-~----------~----~----~----~------~----~------~--~---