rifat has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to use mod_perl2 with apache2 in Ubuntu 10.04 LTS. From m0d_perl guide, I added the following lines between <VirtualHost> tag.
Alias /perl/ /var/www/perl/<Location "/var/www/perl/"> SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOptions +ParseHeaders Options +ExecCGI Order allow,deny Allow from all </Location>
Theoretically, when I put a perl script on '/var/www/perl' directory and chmod it, the script should be executed when accessed from http://localhost/perl/test.pl. But the browser prompt me to download it. How can I solved this problem?I asked the question after googling for about 1 week. I tried all possible combinations, but none worked. How can I get around this problem?
Thank you
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to configure mod_perl
by moritz (Cardinal) on Jun 17, 2011 at 13:56 UTC | |
by Anonymous Monk on Jun 17, 2011 at 14:00 UTC | |
Re: How to configure mod_perl
by wfsp (Abbot) on Jun 17, 2011 at 14:17 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 16:36 UTC | |
Re: How to configure mod_perl
by davido (Cardinal) on Jun 17, 2011 at 16:09 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 17:11 UTC | |
Re: How to configure mod_perl
by rev_1318 (Chaplain) on Jun 17, 2011 at 16:45 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 17:14 UTC | |
Re: How to configure mod_perl?
by zek152 (Pilgrim) on Jun 17, 2011 at 19:45 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 21:05 UTC | |
by Anonymous Monk on Jun 18, 2011 at 02:46 UTC | |
Re: How to configure mod_perl?
by martell (Hermit) on Jun 17, 2011 at 21:48 UTC | |
by aanriot (Sexton) on Jun 18, 2011 at 08:31 UTC | |
Re: How to configure mod_perl
by Anonymous Monk on Jun 17, 2011 at 13:55 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 16:22 UTC | |
by Anonymous Monk on Jun 18, 2011 at 02:43 UTC | |
Re: How to configure mod_perl
by Anonymous Monk on Jun 17, 2011 at 13:56 UTC | |
by rifat (Initiate) on Jun 17, 2011 at 16:20 UTC | |
Re: How to configure mod_perl?
by rifat (Initiate) on Jun 17, 2011 at 17:25 UTC |
Back to
Seekers of Perl Wisdom