You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Carl Brewer <ca...@bl.echidna.id.au> on 2003/05/21 04:07:22 UTC
any getting started tutorials? mp1 and mp2?
I've had a play with mp2 on Solaris 8, and am struggling with
some basic concepts I think (like, what actually _is_
a handler?).
I've got DuBois' Mysql & Perl for the web, which basically
says "modperl will make your CGI scripts go lots faster"
but I'd like to understand a bit more about the basic
concepts involved in using modperl properly.
I've read everything I can find on the modperl website
so far but am missing something fundamental :)
So .. are there any "modperl for dummies" pages around
that anyone here could recommend I read? I've written lots
of CGI stuff in the past (1995 ... ) but have never really
dug into what mod_perl does (my stuff was _way_
before mod_perl even existed :) ). I'd prefer not to
have to learn mp1 as I don't have it installed anywhere and
don't want to install it, I'm moving everything to IPv6
and mp2 with apache 2 is my core technology. I'm also
moving most of a small established base of PHP to some
derivative of mod_perl (template system of some form).
thanks
Carl
Re: any getting started tutorials? mp1 and mp2?
Posted by Stas Bekman <st...@stason.org>.
Carl Brewer wrote:
>
>
> I've had a play with mp2 on Solaris 8, and am struggling with
> some basic concepts I think (like, what actually _is_
> a handler?).
A handler is a perl function that gets called by Apache for a phase it was
configured to run at. e.g. a response handler is executed to generate the
response. an authen handler is executed to do the authentication phase. The
HTTP phases diagram can be seen here:
http://perl.apache.org/docs/2.0/user/handlers/http.html#HTTP_Request_Cycle_Phases
> I've got DuBois' Mysql & Perl for the web, which basically
> says "modperl will make your CGI scripts go lots faster"
> but I'd like to understand a bit more about the basic
> concepts involved in using modperl properly.
Then you need a mod_perl-specific book. See below.
> I've read everything I can find on the modperl website
> so far but am missing something fundamental :)
>
> So .. are there any "modperl for dummies" pages around
> that anyone here could recommend I read? I've written lots
> of CGI stuff in the past (1995 ... ) but have never really
> dug into what mod_perl does (my stuff was _way_
> before mod_perl even existed :) ). I'd prefer not to
> have to learn mp1 as I don't have it installed anywhere and
> don't want to install it, I'm moving everything to IPv6
> and mp2 with apache 2 is my core technology. I'm also
> moving most of a small established base of PHP to some
> derivative of mod_perl (template system of some form).
mp2 is not much conceptually different from mp1, so any of the published
modperl books:
http://perl.apache.org/docs/offsite/books.html#Learn_mod_perl
will do a good job filling the gaps. mp2 provides more functionality than mp1
(e.g. filters/protocol handlers), but the main concepts are still the same:
provide perl API for writing Apache components.
Most of the relevant mp2 examples can be found here:
http://perl.apache.org/docs/2.0/user/index.html
Part V: mod_perl Handlers
If you have read those and still have questions, feel free to ask them here.
So I can improve those pages based on your questions.
Geoff and I (and probably a several other folks) will be teaching these things
at OSCON in Portland (I'll also teach mp2 at YAPC::Europe in Paris), hope you
can come. I know you have missed my tutorial in Melbourne in March, but if
there is enough interest I can do it or something different again on the next
mongers meeting.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com