Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Premature end of script headers

Status
Not open for further replies.

tetxa

Programmer
Dec 20, 2002
13
FI
hi,
i stucked at this problem when i configured RedHat 8.0 with Apache 2.0.4.0 webserver. perl script works fine from shell and i tested script with line "perl -c script.cgi" and it seems to be ok. so i think problem is not in my Apache setup.
any ideas or own experience available?

-Tet
 
oh, sorry i forgot to mention,
cgi-bin directory is set by chmod 755,
and all .cgi scripts are -rwxr-xr-x.
-Tet
 
i tested to include test.txt file on .shtml page, and it was included right way. so im still stuck with these scripts what should be done with apache + perl.
logs:
error_log:
[DATE] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: script.cgi
[DATE] [error] [client xxx.xxx.xxx.xxx] unable to include "/cgi-bin/script.cgi" in parsed file /var/
access_log:
xxx.xxx.xxx.xxx - - [DATE] "GET / HTTP/1.1" 200 909 "-" "Mozilla/4.0 etc.."

-Tet
 
SOLVED!
it was files ownership problem.
-Tet
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top