For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > December 2006 > beginners ?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author beginners ?
Larry

2006-12-17, 7:59 am

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


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/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com