Actually, it's a problem caused by his editing the script. While I'm no
Perl programmer, and can't tell him exactly what's wrong, I can tell him
htat I've been down this road with a number of Perl scripts I have
running, here, over time, and it always pointed back at either the method
with which I downloaded the script, or something involved in editing it.
On Fri, 22 Dec 2000, Charles Galpin wrote:
> Irwan
>
> This is a CGI config problem, not a perl config problem. That test cgi
> could be written in any language.
>
>
>
> On Fri, 22 Dec 2000, Irwan Hadi wrote:
>
> > I'm configuring Apache 1.3.14 with Mod Perl 1.24_01 and PHP 4.0.3pl1, on
> > Redhat 6.2. I got a problem in which when Apache wants to run a perl script
> > (for PHP script there is no problem), for example for this script
> <snip>
> > Then, when I accessed the script, Apache would give output
> >
> > 500 Internal Server Error
> <snip>
> > And in the error log it says :
> > [Fri Dec 22 03:48:35 2000] [error] [client 127.0.0.1] Premature end of
> > script headers: /home/me/public_html/cgi-bin/hello.cgi
> <snip>
> > Is there any clue to fix this problem ?
>
> let's see
>
> > Compiled-in modules:
> > mod_cgi.c
>
> you are good here
>
> Ok, try something like
>
> <Directory "/home/me/public_html/cgi-bin">
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
>
> to tell apache to execute the script.
>
> hth
> charles
>
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list