Blog Ronald

Welcome to my Blog

Archive for the ‘Perl’ Category

Configure mod_perl Linux

Posted by T. Ronald S. on April 22, 2009

#vi /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>


- restart apache
#/etc/init.d/httpd restart

- create sample file
#vi /var/www/perl/test.pl

print "Content-type: text/plain\n\n";
print "mod_perl rules!\n";

Posted in Perl | Leave a Comment »