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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing Perl files like PHP

Status
Not open for further replies.

RandyRiegel

Programmer
Sep 29, 2003
256
US
How can I make apache parse Perl files (.pl) like it does .php . The only way I can get .pl files to run are when they are in 'cgi-bin' directory, I want them to run anyway in the webspace. I've tried all kinds of things trying to get this to work with no luck.

Randy
 
In your httpd.conf make sure it looks like this.
Code:
    # If you want to use server side includes, or CGI outside
    # ScriptAliased directories, uncomment the following lines.
    [i]AddHandler cgi-script .pl .cgi[/i]

And make sure you don't specify ScriptAlias /cgi-bin/ within your VirtualHost.

M. Brooks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top