You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Téssio Fechine <pr...@yahoo.com.br> on 2012/05/15 01:03:29 UTC

[users@httpd] cgi-bin subdirectories

Hello,
I am having a problem with subdirectories in cgi-bin.
Scripts like 'cgi-bin/user.pl' executes fine, but if I move it to 'cgi-bin/something/user.pl' it stops working.

I'm using the default centos-5.8 httpd.conf file:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

And the error message I receive is this:

[error] [client 192.168.56.1] script not found or unable to stat: /var/www/cgi-bin/something

What is wrong?


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


Re: [users@httpd] cgi-bin subdirectories

Posted by Téssio Fechine <pr...@yahoo.com.br>.

> De: Doug McNutt <do...@macnauchtan.com>
> Assunto: Re: [users@httpd] cgi-bin subdirectories
> Para: users@httpd.apache.org
> Data: Segunda-feira, 14 de Maio de 2012, 23:13
> At 16:03 -0700 5/14/12, Téssio
> Fechine wrote:
> >Hello,
> >I am having a problem with subdirectories in cgi-bin.
> >Scripts like 'cgi-bin/user.pl' executes fine, but if I
> move it to 'cgi-bin/something/user.pl' it stops working.
> >
> >I'm using the default centos-5.8 httpd.conf file:
> >
> >ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> >
> ><Directory "/var/www/cgi-bin">
> >    AllowOverride None
> >    Options None
> >    Order allow,deny
> >    Allow from all
> ></Directory>
> >
> >And the error message I receive is this:
> >
> >[error] [client 192.168.56.1] script not found or unable
> to stat: /var/www/cgi-bin/something
> >
> >What is wrong?
> 
> 
> What are the permissions for subdirectory something? 
> Did you create it?
> 
> The world probably needs execute and read access to the
> directory. You might not be allowed to make that change if,
> as I do, you have a web provider to worry about.
> 
> -- 
> -->  0010  0100  0110  1000. Who do
> we appreciate? <--
>    With apologies to B Fagin of the Colo Spgs
> Gazette.
> 

The directory permissions are OK:
drwxr-xr-x 2 root root 4096 May 14 19:10 something


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


Re: [users@httpd] cgi-bin subdirectories

Posted by Doug McNutt <do...@macnauchtan.com>.
At 16:03 -0700 5/14/12, Téssio Fechine wrote:
>Hello,
>I am having a problem with subdirectories in cgi-bin.
>Scripts like 'cgi-bin/user.pl' executes fine, but if I move it to 'cgi-bin/something/user.pl' it stops working.
>
>I'm using the default centos-5.8 httpd.conf file:
>
>ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
><Directory "/var/www/cgi-bin">
>    AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
></Directory>
>
>And the error message I receive is this:
>
>[error] [client 192.168.56.1] script not found or unable to stat: /var/www/cgi-bin/something
>
>What is wrong?


What are the permissions for subdirectory something?  Did you create it?

The world probably needs execute and read access to the directory. You might not be allowed to make that change if, as I do, you have a web provider to worry about.

-- 
-->  0010  0100  0110  1000. Who do we appreciate? <--
   With apologies to B Fagin of the Colo Spgs Gazette.

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


Re: [users@httpd] cgi-bin subdirectories

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
>On Tue, May 15, 2012 at 9:03 AM, Téssio Fechine <pr...@yahoo.com.br>wrote:
>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>>
>> <Directory "/var/www/cgi-bin">
>>    AllowOverride None
>>    Options None
>>    Order allow,deny
>>    Allow from all
>> </Directory>
>>
>> And the error message I receive is this:
>>
>> [error] [client 192.168.56.1] script not found or unable to stat:
>> /var/www/cgi-bin/something

On 15.05.12 14:11, Igor Cicimov wrote:
>Include
>
>        Options +ExecCGI
>        SetHandler cgi-script
>
>in your Directory stanza.

afaik this is not needed for directory aliased with ScriptAlias

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
The early bird may get the worm, but the second mouse gets the cheese. 

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


Re: [users@httpd] cgi-bin subdirectories

Posted by Igor Cicimov <ic...@gmail.com>.
I mean

    <Directory "/var/www/cgi-bin/*">
        Options +ExecCGI
        SetHandler cgi-script
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>

On Tue, May 15, 2012 at 2:11 PM, Igor Cicimov <ic...@gmail.com> wrote:

> Include
>
>         Options +ExecCGI
>         SetHandler cgi-script
>
> in your Directory stanza.
>
> Igor
>
> On Tue, May 15, 2012 at 9:03 AM, Téssio Fechine <pr...@yahoo.com.br>wrote:
>
>> Hello,
>> I am having a problem with subdirectories in cgi-bin.
>> Scripts like 'cgi-bin/user.pl' executes fine, but if I move it to
>> 'cgi-bin/something/user.pl' it stops working.
>>
>> I'm using the default centos-5.8 httpd.conf file:
>>
>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>>
>> <Directory "/var/www/cgi-bin">
>>    AllowOverride None
>>    Options None
>>    Order allow,deny
>>    Allow from all
>> </Directory>
>>
>> And the error message I receive is this:
>>
>> [error] [client 192.168.56.1] script not found or unable to stat:
>> /var/www/cgi-bin/something
>>
>> What is wrong?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] cgi-bin subdirectories

Posted by Igor Cicimov <ic...@gmail.com>.
Include

        Options +ExecCGI
        SetHandler cgi-script

in your Directory stanza.

Igor

On Tue, May 15, 2012 at 9:03 AM, Téssio Fechine <pr...@yahoo.com.br>wrote:

> Hello,
> I am having a problem with subdirectories in cgi-bin.
> Scripts like 'cgi-bin/user.pl' executes fine, but if I move it to
> 'cgi-bin/something/user.pl' it stops working.
>
> I'm using the default centos-5.8 httpd.conf file:
>
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> <Directory "/var/www/cgi-bin">
>    AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
> </Directory>
>
> And the error message I receive is this:
>
> [error] [client 192.168.56.1] script not found or unable to stat:
> /var/www/cgi-bin/something
>
> What is wrong?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>