Perl / CGI Problems In Mandrake 9.0

djdrastic

Senior member
Dec 4, 2002
441
0
0
I'm having a bit of problems running , Perl with apache . I've just started learning some Hello World's etc . My script compiles within /usr/bin/perl but when I copy the script into /var/www/html and make a page to a href it , it says I don't have permissions to the file.I have chmod 777'd the files , but it still doesn't seem to work.
 

EmperorRob

Senior member
Mar 12, 2001
968
0
0
cgi files need to be in the cgi-bin directory. Usually this is /var/www/cgi-bin by default. Link to them like so:

<a href="/cgi-bin/hello-world.cgi">click on me, foo</a>