Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Premature end of script headers: in case of user dir.

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  frequent frontpage lost connection  
Author Message
bbaruah2003

External


Since: Mar 31, 2006
Posts: 1



(Msg. 1) Posted: Fri Mar 31, 2006 10:54 pm
Post subject: Premature end of script headers: in case of user dir.
Archived from groups: alt>apache>configuration (more info?)

Hi,
sorry for the repeating the same question. I believe many have
encountered this and find a solution.

Problem is when I try to execute a CGI script from anyone of the user's
directory I'm get the error
"Premature end of script headers:". The script works just fine from the
"/var/www/cgi-bin" which is set as ScriptAliase.

In order run the script from the user's directory I have added the
following in the httpd.conf file

AddHandler cgi-script .cgi
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

Changed the ownership of the script to apache:apache and permission to
755

The script is

#!/bin/bash
echo Content-type: text/plain
echo ""
echo ""
/usr/bin/cal
echo ""

Can anyone help me please to run this ? I'm using "httpd-2.0.52-19.ent"
on "2.6.9-22.EL" Kernel.

Thanks
Baruah

 >> Stay informed about: Premature end of script headers: in case of user dir. 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Sat Apr 01, 2006 6:55 am
Post subject: Re: Premature end of script headers: in case of user dir. [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

This message is not archived

 >> Stay informed about: Premature end of script headers: in case of user dir. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Premature end of script headers: index.shtml - Have migrated to Apache 2 - the following error occurs in /var/www/html/index.shtml (simlinked from anither directory) using the following: <html> <!--#include virtual="/pagebuild/Local/pagebuild.cgi?PAGE=../std-files/static1.conf&SITE...

simple perl script cgi gets "Premature end of script heade.. - Cannot get apache to work with perl. When the following simple script is executed, the following error appears: "Premature end of script headers: hello.cgi" --------- hello.cgi ---------- #!usr/bin/perl use CGI qw/:standard/ ; print header()...

Apache,PHP,WinXP, internal error..."Premature end of scrip.. - Running Apache 1.3, PHP 4.3, and WinXP, configured acc. to instructions on apache manual and php manual (as far as I can see), but getting "internal server error" in browser... log says "Premature end of script headers" for my simple ...

Premature end of script header when trying to run formmail.. - Hi all This is probably not the right group to ask this in but I have tried alt.perl with no result so. I have got a FormMail script configured to send an email to me when someone fills out a form. Every time I try to submit the form it comes up with an...

Page headers, serving through script - I'd like to start serving page headers through a php script instead of defaulting to Apache. 1) I'm not finding anything in my apache 2.0 config files that mention headers. How do I turn off the page header serving by apache and give control to my..
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]