Blog Ronald

Welcome to my Blog

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";

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>