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          <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to