getting cgi scripts to run
am 17.10.2007 00:15:00 von scott
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:
AddHandler cgi-script .cgi .pl
Options ExecCGI
SetHandler cgi-script
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!
Re: getting cgi scripts to run
am 17.10.2007 09:57:05 von HansH
"scott" schreef in bericht
news:FJaRi.5070$sm6.3708@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:
>
> AddHandler cgi-script .cgi .pl
> Options ExecCGI
> SetHandler cgi-script
>
>
> 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
apparently maps this cgi-bin folder to the URL and overrules -or masks- the
quoted block.
HansH
Re: getting cgi scripts to run
am 19.11.2007 08:35:10 von YouCanToo
HansH wrote:
> "scott" schreef in bericht
> news:FJaRi.5070$sm6.3708@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:
>>
>> AddHandler cgi-script .cgi .pl
>> Options ExecCGI
>> SetHandler cgi-script
>>
>>
>> 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
>
> apparently maps this cgi-bin folder to the URL and overrules -or masks- the
> quoted block.
>
>
> HansH
>
>