Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to enable perl to be used in Apache

0 views
Skip to first unread message

Angus

unread,
Apr 18, 2009, 7:56:29 AM4/18/09
to
Hello

I am using Apache v2.2 on Windows XP Professional. Web server works
fine. But if I try http://localhost/printenv.pl I get prompted to
download printenv.pl ???

I presume I need to somehow enable perl within Apache?

I have downloaded ActivePerl and it is working ok from the command
line.

Anyone know what I need to do to get it owkring in apache?

Angus

Youcantoo

unread,
Apr 20, 2009, 2:40:28 AM4/20/09
to
Angus wrote:
> Hello
>
> I am using Apache v2.2 on Windows XP Professional. Web server works
> fine. But if I try http://localhost/printenv.pl I get prompted to
> download printenv.pl ???

That is because the web server doesn't know what to do with your script
ending in .pl

>
> I presume I need to somehow enable perl within Apache?
>
> I have downloaded ActivePerl and it is working ok from the command
> line.
>
> Anyone know what I need to do to get it owkring in apache?
>
> Angus


Tell Apache that it can use .pl or change you script to end with .cgi

You could add this

AddHandler cgi-script .pl

in the <Directory> </Directory> of your httpd.conf file

0 new messages