getting cgi scripts to run

I am trying to get a cgi script, really a Perl script, to run. When
I try to run it from a web browser using a URL of:
http://www.abc.com/first.pl I receive this error:
Object not found! and the log says:
File does not exist: /home/abc/html/first.pl

Now when I try this URL: http://www.abc.com/cgi-bin/first.pl I still get
an Object Not Found! still. The log says: script not found or unable to
stat: /srv/www/cgi-bin/first.pl

What I have in the vhost.conf file for this host is:
<Directory "/home/abc/html/cgi-bin">
AddHandler cgi-script .cgi .pl
Options ExecCGI
SetHandler cgi-script
</Directory>

The first.pl script is in the /home/abc/html/cgi-bin directory and has a
permission of rwxrwxr-x.

So what am I doing wrong?

Thanks!
scott [ Mi, 17 Oktober 2007 00:15 ] [ ID #1846247 ]

Re: getting cgi scripts to run

"scott" <svetter [at] ameritech.net> schreef in bericht
news:FJaRi.5070$sm6.3708 [at] nlpi069.nbdc.sbc.com...
> I am trying to get a cgi script, really a Perl script, to run. When I
> try to run it from a web browser using a URL of:
> http://www.abc.com/first.pl I receive this error:
> Object not found! and the log says:
> File does not exist: /home/abc/html/first.pl
>
> Now when I try this URL: http://www.abc.com/cgi-bin/first.pl I still get
> an Object Not Found! still. The log says: script not found or unable to
> stat: /srv/www/cgi-bin/first.pl
>
> What I have in the vhost.conf file for this host is:
> <Directory "/home/abc/html/cgi-bin">
> AddHandler cgi-script .cgi .pl
> Options ExecCGI
> SetHandler cgi-script
> </Directory>
>
> The first.pl script is in the /home/abc/html/cgi-bin directory and has a
> permission of rwxrwxr-x.
>
Commonly on a filesystem cgi-bin is not below but rather aside of html:
/home/abc/html
/home/abc/cgi-bin

Some directive alike
<scriptalias /cgi-bin /home/abc/cgi-bin >
apparently maps this cgi-bin folder to the URL and overrules -or masks- the
quoted <Directory ...> block.


HansH
HansH [ Mi, 17 Oktober 2007 09:57 ] [ ID #1847242 ]

Re: getting cgi scripts to run

HansH wrote:
> "scott" <svetter [at] ameritech.net> schreef in bericht
> news:FJaRi.5070$sm6.3708 [at] nlpi069.nbdc.sbc.com...
>> I am trying to get a cgi script, really a Perl script, to run. When I
>> try to run it from a web browser using a URL of:
>> http://www.abc.com/first.pl I receive this error:
>> Object not found! and the log says:
>> File does not exist: /home/abc/html/first.pl
>>
>> Now when I try this URL: http://www.abc.com/cgi-bin/first.pl I still get
>> an Object Not Found! still. The log says: script not found or unable to
>> stat: /srv/www/cgi-bin/first.pl
>>
>> What I have in the vhost.conf file for this host is:
>> <Directory "/home/abc/html/cgi-bin">
>> AddHandler cgi-script .cgi .pl
>> Options ExecCGI
>> SetHandler cgi-script
>> </Directory>
>>

>> permission of rwxrwxr-x.

Should not the permission of the file be rwxr-xr-x (755) not rwxrwxr-x (775)


>>
> Commonly on a filesystem cgi-bin is not below but rather aside of html:
> /home/abc/html
> /home/abc/cgi-bin
>
> Some directive alike
> <scriptalias /cgi-bin /home/abc/cgi-bin >
> apparently maps this cgi-bin folder to the URL and overrules -or masks- the
> quoted <Directory ...> block.
>
>
> HansH
>
>
YouCanToo [ Mo, 19 November 2007 08:35 ] [ ID #1874263 ]
Webserver » alt.apache.configuration » getting cgi scripts to run

Vorheriges Thema: [STAT] Statistics of alt.apache.configuration 11/19/07
Nächstes Thema: Multiple Slashes and RewriteRules in Apache 2