Dear Perl Monks:

I have a simple CGI perl script, which I want to convert into a mod_perl script for faster speed under ubuntu 10.04 (presumably, among the most popular distributions). that's it. reading around the web, I probably want something simple, like Apache::Registry. (Not sure why it is simple...just read it was.)

Does anyone know of a good primer? I started with

apt-get install libapache2-mod-perl2 libapache2-mod-perl2-dev libapac +he2-mod-perl2-doc perl-doc
then installed Apache::Registry,
# cpan > get Apache::Registry
then added inside my VirtualHost the following lines:
Alias /perl-bin/ /usr/local/perl-bin/ <Location /perl-bin> SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI </Location>
and I mkdir'ed /usr/local/bin/perl-bin/ . alas, even after a restart of the apache2 server, I get
# apache2ctl -l Compiled in modules: core.c mod_log_config.c mod_logio.c prefork.c http_core.c mod_so.c

so, no mod_perl that I can see so far. what I have done sofar is all guesswork, of course. I need a step-by-step guide. I did not find one with google. has anyone written such a thing?

Advice, as always, appreciated.


In reply to ubuntu 10.04 mod_perl apache registry starter? by iaw4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.