httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sarta53 <>
Subject Re: [users@httpd] how to run encrypted executable through apache?
Date Sat, 13 Oct 2007 20:16:06 GMT

----- Original Message ----
From: Vincent Bray <>
Sent: Saturday, October 13, 2007 1:36:06 PM
Subject: Re: [users@httpd] how to run encrypted executable through apache?

On 13/10/2007, sarta53 <> 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 ( to
> encrypt a perl script by creating an executable by putting a C
> around the script.
> The encrypted executable runs fine from the command line, however I
> unable to get it to run through the apache server in cgi-bin
> 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.


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/ HTTP/1.1

%% 500 /var/www/cgi-bin/


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: Gecko/20070309 Firefox/


Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message