{"id":377,"date":"2009-01-31T22:44:56","date_gmt":"2009-02-01T02:44:56","guid":{"rendered":"http:\/\/timony.com\/mickzblog\/?p=377"},"modified":"2009-01-31T22:44:56","modified_gmt":"2009-02-01T02:44:56","slug":"mod_perl","status":"publish","type":"post","link":"https:\/\/timony.com\/mickzblog\/2009\/01\/31\/mod_perl\/","title":{"rendered":"Enable mod_perl on Debian, Ubuntu, &#038; Other Linuxes."},"content":{"rendered":"<p>To enable mod_perl with Apache2 on Debian &amp; Ubuntu for all directories served up by Apache2, including user directories such as ~\/public_html, add the following lines to \/etc\/apache2\/sites-available\/default<\/p>\n<pre># enable mod_perl\n\u00a0\u00a0\u00a0 &lt;Files ~ \".(pl|cgi)$\"&gt;\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SetHandler perl-script\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PerlResponseHandler ModPerl::Registry\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Options +ExecCGI\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PerlSendHeader On\n\u00a0\u00a0\u00a0 &lt;\/Files&gt;<\/pre>\n<p>In a real production environment you probably don&#8217;t want to enable this for all directories that Apache2 serves up, but only from those directories you expect to run perl in.<\/p>\n<p>Thanks to this <a title=\"mod_perl question on Ubuntu Forums\" href=\"http:\/\/ubuntuforums.org\/archive\/index.php\/t-78161.html\">thread<\/a> on the Ubuntu Forums for the info.<\/p>\n<p>Titled updated as per Ozkar&#8217;s suggestion.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To enable mod_perl with Apache2 on Debian &amp; Ubuntu for all directories served up by Apache2, including user directories such as ~\/public_html, add the following lines to \/etc\/apache2\/sites-available\/default # enable mod_perl \u00a0\u00a0\u00a0 &lt;Files ~ &#8220;.(pl|cgi)$&#8221;&gt; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SetHandler perl-script \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PerlResponseHandler ModPerl::Registry \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Options +ExecCGI \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PerlSendHeader On \u00a0\u00a0\u00a0 &lt;\/Files&gt; In a real production environment you &hellip; <a href=\"https:\/\/timony.com\/mickzblog\/2009\/01\/31\/mod_perl\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Enable mod_perl on Debian, Ubuntu, &#038; Other Linuxes.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[52,22,63,33,41],"tags":[95,96,105,158,190,196,233,240,342,390,417,420,474,475,476,491,502,543,545,549,602,623,625],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-debian-linux","category-linux","category-perl","category-programming","category-ubuntu-linux-2","tag-apache","tag-apache2","tag-archlinux","tag-cgi","tag-debian","tag-directories","tag-enable","tag-execcgi","tag-internet","tag-linux","tag-modperl","tag-mod_perl","tag-perl","tag-perl-script","tag-perlsendheader","tag-pl","tag-programming","tag-server","tag-sethandler","tag-sites-available","tag-ubuntu","tag-web","tag-web-server"],"_links":{"self":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/comments?post=377"}],"version-history":[{"count":0,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"wp:attachment":[{"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/timony.com\/mickzblog\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}