[mod_python] apache-1.3.14 Suse/Linux & mod_python toubles

Georg Martius mai99dgf at studserv.uni-leipzig.de
Wed Jul 4 13:34:08 EST 2001


Hi

I have same troubles with the mod_python module and my apache. 
I have SuSE 7.1 and the apache logs the following:

[notice] Apache/1.3.14 (Unix)  (SuSE/Linux) mod_python/2.7.1 Python/2.0
mod_throttle/3.0 mod_layout/1.0 mod_fastcgi/2.2.2 mod_perl/1.24
PHP/3.0.17-dev configured -- resuming normal operations 

I have copied the mptest.py into my cgi-bin directory with the right
permissions.

the splitter of my httpd.conf is:

<Directory /usr/local/httpd/cgi-bin>
  AddHandler python-program .py
  PythonHandler mptest
  PythonDebug On
</Directory>      


If perform a request to mptest.py I get in internal server error and the
logfile shows:
[error] (8)Exec format error: exec of /usr/local/httpd/cgi-bin/mptest.py
failed
[error] [client 192.168.155.55] Premature end of script headers:
/usr/local/httpd/cgi-bin/mptest.py     

Thanks for any help!

Ciao Bethoven



More information about the Mod_python mailing list