Hello everyone,
I've recently been trying to get webpy to work on my apache server
using the cgi method (see: http://webpy.org/cookbook/cgi-apache), but
unfortunately I've run into a problem. For some reason, every time I
try to go to my script url, I see this error in apache2's error.log:
[Tue Nov 10 01:36:52 2009] [error] [client xx.xx.xxx.xx] attempt to
invoke directory as script: /var/www/webpy/testapp/
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] Traceback
(most recent call last):
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/var/
www/webpy/testapp/main.py", line 12, in <module>
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] app.run()
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/web.py-0.33-py2.6.egg/web/
application.py", line 313, in run
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] return
wsgi.runwsgi(self.wsgifunc(*middleware))
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/web.py-0.33-py2.6.egg/web/wsgi.py",
line 35, in runwsgi
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] return
runfcgi(func, None)
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/web.py-0.33-py2.6.egg/web/wsgi.py",
line 17, in runfcgi
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] return
flups.WSGIServer(func, multiplexed=True, bindAddress=addr).run()
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/flup-1.0.3.dev_20091027-py2.6.egg/
flup/server/fcgi.py", line 112, in run
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/flup-1.0.3.dev_20091027-py2.6.egg/
flup/server/fcgi_base.py", line 1020, in _setupSocket
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] File "/usr/
local/lib/python2.6/dist-packages/flup-1.0.3.dev_20091027-py2.6.egg/
flup/server/fcgi_base.py", line 569, in run
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx]
AttributeError: 'CGIRequest' object has no attribute '_timeout'
[Tue Nov 10 01:36:56 2009] [error] [client xx.xx.xxx.xx] Premature end
of script headers: main.py
I've searched around for a solution with no luck, so I'm hoping
somebody here will be able to help. For reference, here is my site
config file:
<VirtualHost *:80>
...
...
# Trying to get webpy to work
ScriptAlias /test "/var/www/webpy/testapp/"
<Directory "/var/www/webpy/testapp">
Options +ExecCGI +FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---