in reply to Re^2: a classic : 'Premature end of script headers' problem
in thread a classic : 'Premature end of script headers' problem
oh wow.. ok .. you've got it easy on one hand because you have full access.. and hard on another because you have full access.
do this instead.. vim /usr/bin/debughttp (as root)
(you know how to set perms on that? chmod 0700, just you everything, everyone else nothing)#!/bin/sh # this is just an example #tail -f /var/log/httpd/error_log tail -f /var/log/httpd/ssl_error_log | sed 's/^.\+0.41\]\|\, referer.\ ++\.cgi\|\?rm=\w\+//g' # or just # tail -f /var/log/httpd/error_log
Open a terminal and # debughttp forget the CGI::Carp 'fatalsToBrowser' crap.. get rid of all that, get rid of the open(STDERR, '>>' .. all that.
Make sure you have the right path to your httpd error log
call the script from your browser and enjoy the wonder that is POSIX.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: a classic : 'Premature end of script headers' problem
by hmbscully (Scribe) on Sep 19, 2007 at 18:52 UTC | |
by leocharre (Priest) on Sep 19, 2007 at 19:03 UTC | |
by hmbscully (Scribe) on Sep 19, 2007 at 19:08 UTC |