| Jeff Pang 2006-12-17, 6:58 pm |
|
>I am having a problem running scripts on my local computer. I installed
>Apche and perl but when I call a script from html I get this error:
>Forbidden
>You don't have permission to access /C:/Documents and
>Settings/larry/Desktop/cgi-bin/countdown.pl on this server.
>
>my server log shows this:
>
>[Sat Dec 16 19:44:17 2006] [error] [client 127.0.0.1] (20023)The given path
>was above the root path: Cannot map GET
>/C:/Documents%20and%20Settings/larry/Desktop/cgi-bin/countdown.pl HTTP/1.1
>to file
This is the problem of your configure for Apache.You may take a look at apache's config file and look for this section:
ScriptAlias /cgi-bin/ "/home/apache1.3/cgi-bin/"
<Directory "/home/apache1.3/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Here the PATH in the "ScriptAlias ..." and "<Directory ...>" is the CGI executable path.Putting the scripts under this path and give a try again.
--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/
|