Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem installing perl on apache

Status
Not open for further replies.

pho01

Programmer
Joined
Mar 17, 2003
Messages
218
Location
US
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!

 

also make sure all directories in /pathtofile are +x for apache.
 
yes, they all have 755 permission mode.

still not execute it. Any other ideas? Thanks!
 
pho01,

Still the same error? You might want to try chown-ing the Perl scripts. Also you should restart Apache by using 'apachectl graceful' just for good measure.

Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top