Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Apache 2 and mod_perl

by JaWi (Hermit)
on Oct 03, 2002 at 13:47 UTC ( #202517=note: print w/replies, xml ) Need Help??

in reply to Apache 2 and mod_perl

Based on the current answers I'm replying...

I've got mod_perl2 + Apache2 up and running on a test machine at home. What I did was the following:

  1. Checkout the latest CVS version of mod_perl2 as the latest distribution didn't work for me :-(, so: cvs -d co modperl-2.0
  2. Generate the makefile: perl Makefile.PL MP_AP_PREFIX=/path/to/apache2 MP_INST_APACHE2=1
  3. The well known commands: make, make test and make install will create everything. NOTE: if `make test' fails; it doesn't necessarily mean the module doesn't work...!
  4. Notify Apache2 of this super module by inserting these lines into httpd.conf:
    LoadModule perl_module modules/ PerlModule Apache2 PerlSwitches -w
After a restart of Apache2, you should see in its signature that mod_perl/<version> is loaded/enabled! If so: congrats' on your succesful installation of mod_perl2! :-)


-- JaWi

"A chicken is an egg's way of producing more eggs."

Replies are listed 'Best First'.
Re: Re: Apache 2 and mod_perl
by Sihal (Pilgrim) on Oct 03, 2002 at 15:40 UTC
    Thanks for the infos but what I really need to know is if mod_perl2 is stable enough to go in prod... ( I know it is a beta but some betas are good :-)
      That question is almost impossible to answer without knowing what it is that you define as "production".

      What type of content are you serving? Are you using a single server? How much load are you expecting? How fast can your staff detect/react to problems? How stable is the code that mod_perl will be serving? How much time and/or money have you invested in staging and testing? Are money transactions involved? What is your true benefit from using apache2/mod_perl2? How much does stability effect your pocketbook?

      I'm not asking for answers to these questions, just trying to indicate the variables involved. Without knowing any of the answers to those questions, my answer would be an emphatic NO.

      Personally, there is only one equation that matters: mod_perl2_cash_advantage - mod_perl2_cash_risk = value If the result is positive, use mod_perl2.

        Well well, that is a very good answer indeed. Most of the answers I can make are clearly in disadvantgage of mod_perl2.
        Your final formulae is very good indeed and clearly makes me say..."NO" :-)
      Light go flashing when JaWi reads root-node again (update: and again when he reads the performance of mod_perl2 a few posts further... DUHH!)

      Owww, what that all you wanted to know ;-) I don't actually have tested it for performance, but for what I'm using it for it is very stable. But I don't stress the module to its max, so I could be wrong...

      I'm also curious about any performance tests...

      -- JaWi

      "A chicken is an egg's way of producing more eggs."

        Well as I said before, when serving static pages I had apache2 twice as fast as apache1 . THis should be taken careffully though cause I had just compiled apache2 whereas the Apache1 I used was the one provided with my distro, loaded with modules and probably not very well configured... but the change was impressive nevertheless.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://202517]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-12-01 13:24 GMT
Find Nodes?
    Voting Booth?