[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


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

the splitter of my httpd.conf is:

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

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
[error] [client] Premature end of script headers:

Thanks for any help!

Ciao Bethoven

More information about the Mod_python mailing list