I show nothing more in the apache logs than what shows on in the browser.
[Sun Oct 10 20:35:03 2004] [error] [client 172.20.1.100] malformed header from script. Bad header= File "tmda-cgi.py", line 117: tmda.cgi, referer: http://crossfire.monafamily.com/cgi-bin/tmda.cgi Apache has read and execute rights on the cgi directory and all above. The file itself has the permissions assigned by the install itself: -rws--s--x 1 root root 12785 Oct 8 11:43 tmda.cgi And these are identical to those on my RH7.3 box which works. I really can't get much info by running the script from the console since the error occurs after authentication. If you enter an incorrect login, it properly alerts you and prompts to try again. Upon successful login, I encounter the error. So apache at least has rights to run the cgi script. The error as it appears on the page is: Server error! The server encountered an internal error and was unable to complete your request. Error message: malformed header from script. Bad header= File "tmda-cgi.py", line 117: tmda.cgi If you think this is a server error, please contact the webmaster Error 500 crossfire.monafamily.com Sun 10 Oct 2004 08:35:02 PM PDT Apache/2.0.40 (Red Hat Linux) -----Original Message----- From: Stephen Warren [mailto:[EMAIL PROTECTED] Sent: Sunday, October 10, 2004 4:42 PM To: Paul Cc: [EMAIL PROTECTED] Subject: Re: tmda-cgi + Bad header= File "tmda-cgi.py", line 117: tmda.cgi--- RH9 Paul wrote: > Is anyone on the list running TMDA-CGI with RH9? > > I have installed TMDA 1.0.3 and TMDA-CGI 0.13 All my packages are up > to date on the system. > > I just can't find any info as to why this problem exists. I have the > same versions running with out a problem on a RH7.3 box. Have you looked at your Apache server logs? I think the "bad header" often means: 1) Apache doesn't have permission to execute the CGI. 2) CGI crashed before "printing" any headers Check the file/directory permissions in the CGI directory, on the CGI binary, and all directories above it, including /. Is Apache configured to execute CGI's out of that directory? Try su'ing to the apache user (or whatever you run the server as). Just execute the CGI binary directly - does it print any error messages? Perhaps there's some kind of utility that'll fake a CGI environment so you can run it and see if it generates any errors, but from the command-line, so it's easier to debug. -- Stephen Warren, Software Engineer, NVIDIA, Fort Collins, CO [EMAIL PROTECTED] http://www.wwwdotorg.org/pgp.html _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
