i was trying to install apache with perl on a linux box, and it kept failing in me.
i edited the httpd.conf to handle .cgi and .pl file extension:
AddHandler cgi-script .cgi .pl
stop and restart the apache service, still it can't execute the .cgi or .pl file from the web browser:
error message:
Forbidden
You don't have permission to access /pathtofile/hello.pl on this server.
executing hello.pl from the command line worked fine, but not from the browser. httpd is working, which means that static website is working properly.
What did i do wrong? thanks!
i edited the httpd.conf to handle .cgi and .pl file extension:
AddHandler cgi-script .cgi .pl
stop and restart the apache service, still it can't execute the .cgi or .pl file from the web browser:
error message:
Forbidden
You don't have permission to access /pathtofile/hello.pl on this server.
executing hello.pl from the command line worked fine, but not from the browser. httpd is working, which means that static website is working properly.
What did i do wrong? thanks!