From: Roman Geus <roman.geus@ps...> - 2004-04-26 14:34:37
I'm trying to integrate my spyce project into an apache2 webserver.
However I'm unable to get spyce to run as a CGI or FastCGI script.
I followed installation instructions (manual installation) regarding the
SuSE Linux 9.0 (2.4.21 kernel)
If I try to run any *.spy file like e.g.
I get the "Premature end of script headers: run_spyceCGI.py" error.
The apache error log reveals
Traceback (most recent call last):
File "run_spyceCGI.py", line 21, in ?
File "/usr/share/spyce/verchk.py", line 35, in ?
File "/usr/share/spyce/spyceCGI.py", line 47, in ?
File "/usr/share/spyce/spyceCGI.py", line 36, in main
more = cgi.accept()
File "/usr/share/spyce/fcgi.py", line 183, in accept
result = self.recv()
File "/usr/share/spyce/fcgi.py", line 217, in recv
self.connection, address = self.socket.accept()
socket.error: (22, 'Invalid argument')
So the cgi script itself crashes.
However if I run run_spyceCGI.py from the command line, it works fine.
Any hints would be appreciated.
Could anyone please post a working apache2 configuration file.