I have installed fedora 9 and trying to run .pl (perl files) from browser.
I have below RPM installed:
----------------------------------
httpd-2.2.8-3.i386
mod_perl-2.0.3-21.i386
$cat /etc/httpd/conf.d/perl.conf
LoadModule perl_module modules/mod_perl.so
Alias /perl /var/www/perl
<Directory /var/www/perl>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
</Directory>
<Location /perl-status>
SetHandler perl-script
PerlResponseHandler Apache2::Status
Order deny,allow
#Deny from all
Allow from all
</Location>
in my /etc/httpd/conf/httpd.conf i have below line
Include conf.d/*.conf
Now i have put a test.pl perl file in /var/www/perl
[root@linux perl]# more test.pl
#!/usr/bin/perl
Content-type: text/html; (tried with and without)
print 'Hello world.';
[root@linux perl]#
In my browser i user
http://hostname/test.pl
It asks me to save rather than show the out put ... please advise