Try running the script from the command line:

[user@COMPUTER user]$ perl -w mycgiscript.pl

(or .cgi, or whatever)

I'd also try changing the first line to #!/usr/bin/perl -w

If nothing else, it should give you some more instructive error messages.

For what it's worth, I was able to run the program successfully on a
FreeBSD system.

If the script turns out to be fine, then go back to adjusting the
directory settings for Apache.


> I have tested and successfully run the script on a windows machine with
> Apache and activestate perl.  Do you still think that this might be the
> problem?  Below is the code I'm trying to run to test it.  I have
> simplified this script for testing.  If I can get this one to work then
> I think I can get the others to work too, since they all are working on
> the windows box.  The code gets executed by a submit button on the .html
> page. Thanks for the help.
>
> #!/usr/bin/perl
>
> ###################################################
> ##    Title:          test
>
> ###################################################
>
> print <<END;
> Content-type: text/html\n\n
>     <HTML>
>     <HEAD>
>     <TITLE>Test</TITLE>
>     </HEAD>
>     <BODY>
>     This is where the body goes - this is a test
>     </BODY>
>     </HTML>
> END
>
> _______________________
>
>
> Will P.
>
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]] On Behalf Of Richard Crawford
>> Sent: Thursday, January 30, 2003 12:09 AM
>> To: [EMAIL PROTECTED]
>> Subject: RE: CGI - Perl - Apache problems
>>
>>
>> This sounds like a problem in your Perl script.  It might be
>> instructive to see the code for your CGI script, though you
>> might also try checking with a Perl list.
>>
>>
>> > I check the log file above and I get a message from the error log
>> saying...
>> >
>> > Premature end of script headers:
>> >
>> > I have changed the permissions to 777 to make sure that wasn't a
>> problem.  Any other ideas on what it could be.  I am
>> completely out of
>> > ideas to try now.
>>
>> --
>> Slainte,
>> Richard S. Crawford
>> AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
> http://www.mossroot.com http://www.stonegoose.com "It is only with our
> heart that we can see clearly.  What is essential is invisible to the
> eye."  --Antoine de Saint Exupery
>
>
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list


-- 
Slainte,
Richard S. Crawford
AIM: Buffalo2K / Y!: rscrawford / ICQ: 11640404
http://www.mossroot.com http://www.stonegoose.com
"It is only with our heart that we can see clearly.  What is essential is
invisible to the eye."  --Antoine de Saint Exupery





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to