----- Original Message ----
From: Vincent Bray <[EMAIL PROTECTED]>
To: [email protected]
Sent: Saturday, October 13, 2007 1:36:06 PM
Subject: Re: [EMAIL PROTECTED] how to run encrypted executable through apache?


On 13/10/2007, sarta53 <[EMAIL PROTECTED]> wrote:
> I am using apache that was installed via apt-get onto ubuntu linux
 7.04 (it says version 1.3.34-4.1)
>
> I use a utility called shc (http://aplawrence.com/Linux/shc.html) to
> encrypt a perl script by creating an executable by putting a C
 wrapper
> around the script.
>
>
>
> The encrypted executable runs fine from the command line, however I
 am
> unable to get it to run through the apache server in cgi-bin
 (Internal
> Server Error).
>
>
>
> Is there a change I can make to my httpd.conf to make it work?

Assuming that the wrapper is part of the resulting executable and not
something that needs to be run separately, then no.

To figure out what's going wrong, we first need to see any relevant
entries from your error log. If the error message is "premature end of
script headers", then you can try ScriptLog to see what output apache
is receiving from your script.

-- 
noodl



Thanks for the advice.  Indeed, the errorlog said "premature end of script 
headers"



I enabled ScriptLog and don't know what it tells me.  Here is the output from 
the failed request:



%% [Sat Oct 13 14:59:04 2007] GET /cgi-bin/ss.pl.x?timeout=60000 HTTP/1.1

%% 500 /var/www/cgi-bin/ss.pl.x

%request

Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

Accept-Encoding: gzip,deflate

Accept-Language: en-us,en;q=0.5

Connection: keep-alive

Host: xx

Keep-Alive: 300

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) 
Gecko/20070309 Firefox/2.0.0.3

%response







       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to