[mod_python] XML - RPC help

Trevor West trevorw at qalabs.com
Fri Sep 16 17:21:45 EDT 2005

Hello everyone:

Machine:  x86 Fedora Core 2
                Apache 2.0
                Mod_python 3.1
                Python 2.3

Here's my problem, I'm starting on a new project and for this one I'm 
supposed to use a CGI based XML-RPC server to accept communications from 
a java applet. I understand how XML-RPC works and have many fine 
examples working, what I can't seem to get working is the CGI part. For 
whatever reason the CGI's won't work on the Fedora Core 2 linux server.

I'm currently just trying the example given here: 
http://docs.python.org/lib/node556.html and it works on my Windows box 
but not on the linux box.

The error I get in my Apache log is:
[Fri Sep 16 14:19:56 2005] [error] [client] (2)No such 
file or directory: exec of 
'/usr/local/apache2/cgi-bin/example4_server.py' failed
[Fri Sep 16 14:19:56 2005] [error] [client] Premature end 
of script headers: example4_server.py

Now does anyone know why this is happening? Do I need special lines in 
my httpd.conf file for the CGI's? Here's my current cgi-bin setup:

<Directory "/usr/local/apache2/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

I do have the line to load the mod_python and I use the publisher in my 
main htdocs.

So any ideas?



More information about the Mod_python mailing list