You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Peter S Galbraith <Ga...@dfo-mpo.gc.ca> on 2000/09/08 20:07:36 UTC
Can't POST to embperl
Hello,
This is probably very easy, I'm new at embperl.
I've setup embperl (using Debian GNU/Linux) and a simple perl
substitution test works fine. I run into problems trying to post
data to a embperl script.
apache reports the following error:
(8)Exec format error: exec of /usr/local/lib/embperl/form-parse failed
Premature end of script headers: /usr/local/lib/embperl/form-parse
Here's the simple form-parse script:
----------cut---------
<HTML>
<Head><Title>Parsing a form</Title></Head>
<Body>
[+ foreach $key (%fdat) { print "$key -> $fdat{$key}\n" } +]
</Body>
</HTML>
----------cut---------
Here's my srm.conf snippet:
----------cut---------
ScriptAlias /embperl/ /usr/local/lib/embperl/
<Directory /usr/local/lib/embperl/>
Action text/html /cgi-bin/embpcgi.pl
Options ExecCGI
</Directory>
----------cut---------
Any clue where I'm going wrong?
Thanks,
--
Peter Galbraith, research scientist <Ga...@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/
Re: Can't POST to embperl
Posted by Matt <ma...@penguinpowered.com>.
On Fri, 8 Sep 2000, Peter S Galbraith wrote:
> Hello,
>
> This is probably very easy, I'm new at embperl.
>
> I've setup embperl (using Debian GNU/Linux) and a simple perl
> substitution test works fine. I run into problems trying to post
> data to a embperl script.
>
> apache reports the following error:
>
> (8)Exec format error: exec of /usr/local/lib/embperl/form-parse failed
> Premature end of script headers: /usr/local/lib/embperl/form-parse
>
> Here's the simple form-parse script:
>
> ----------cut---------
> <HTML>
> <Head><Title>Parsing a form</Title></Head>
> <Body>
>
> [+ foreach $key (%fdat) { print "$key -> $fdat{$key}\n" } +]
should that not be foreach $key (keys %fdat)?
>
> </Body>
> </HTML>
> ----------cut---------
>
> Here's my srm.conf snippet:
>
> ----------cut---------
> ScriptAlias /embperl/ /usr/local/lib/embperl/
> <Directory /usr/local/lib/embperl/>
> Action text/html /cgi-bin/embpcgi.pl
> Options ExecCGI
> </Directory>
> ----------cut---------
mine reads
SetEnv EMBPERL_DEBUG 2285
<Files *.epl>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</files>
AddType text/html .epl
HTH matt.
>
> Any clue where I'm going wrong?
> Thanks,
> --
> Peter Galbraith, research scientist <Ga...@dfo-mpo.gc.ca>
> Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
> P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
> 6623'rd GNU/Linux user at the Counter - http://counter.li.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>