httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Re <...@ale-re.net>
Subject Re: [users@httpd] Cannot run CGI scripts in user directory
Date Sun, 22 May 2016 10:43:45 GMT
On Sun, May 22, 2016 at 6:03 AM, Nick Kew <nick@webthing.com> wrote:
> On Sun, 2016-05-22 at 04:05 +0100, Alessandro Re wrote:
>
>> #!/usr/bin/sh
>
> Is that a typo or an unusual filesystem?

I don't know if it's unusual or not, but it's not a typo :)

$ ll /usr/bin/sh
lrwxrwxrwx. 1 root root 4 Jan 11 11:02 /usr/bin/sh -> bash

> Does your script run from the commandline
> (as "/path/to/test.cgi", not as "sh test.cgi")?

Yes, the script runs (both with relative and absolute path):

$ ./test.cgi
Content-type: text/plain

Hello

Sorry I forget to specify that in the mail. But even using /bin/sh,
/bin/bash or whatever doesn't work.

BTW, it doesn't work even with compiled binaries (e.g. simple "hello
world" C program).

Cheers
~Ale

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message