[ale] Apache and cgi/perl "file not found" error

mterzo mterzo at mindspring.net
Mon Jul 10 15:13:46 EDT 2000



looking at some of my old code i realized in .shtmls you have to specify
the whole path

<!--#exec cmd="/home/terzo/public_html/scripts/counter.cgi"-->

so i'm not sure.. it's been a while since i used .shtml

terzo



On Mon, 10 Jul 2000, Gary S. Mackay wrote:

> Thank you for the response. As an experiment, I put the full path in the html
> file (/home/httpd/cgi-bin/first.cgi) and it worked. Then I created a cgi-bin
> directory off of the /home/httpd/htdocs directory and changed the call line
> to:
> <!--#exec cmd="cgi-bin/first.cgi" --> and that worked also.
>                ^
>                Removed the / from here
> 
> So, you are on the right track! Thank you!
> 
> I have this in my httpd.conf file:
> 
>     ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
>     <Directory "/home/httpd/cgi-bin">
>         AllowOverride None
>         Options ExecCGI Includes
>         Order allow,deny
>         Allow from all
>     </Directory>
> 
> 
> What am I missing?
> 
> - Gary
> 
> mterzo wrote:
> > 
> > hmm.. do you have /cgi-bin/ the alias cgi-bin corectly pointing to the
> > directory?
> > 
> > it's not a permission problem becuase the error would be different..
> > 
> > your alias should look something like this
> > 
> > ScriptAlias /cgi-bin/ "/www/cgi-bin/"
> > 
> > where www is the path to cgi-bin
> > 
> > terzo
> > 
> > On Mon, 10 Jul 2000 sarchie at bigfoot.com wrote:
> > 
> > > > This is how I am calling the programs.
> > > > <!--#exec cmd="/cgi-bin/first.cgi" -->
> > >
> > > i'm not sure how much of a dent this will make but try:
> > >     <!--#exec cgi="/cgi-bin/first.cgi"-->
> > >
> 


--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.





More information about the Ale mailing list