Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Apache 2 and mod_perl

by Sihal (Pilgrim)
on Oct 03, 2002 at 12:51 UTC ( [id://202495]=perlquestion: print w/replies, xml ) Need Help??

Sihal has asked for the wisdom of the Perl Monks concerning the following question:

fellow monks,
this is a very simple question: I have been toying around with the idea of trying the Apache2. and of course to use mod_perl with it.
Looking at the (enormous) page about mod_perl (http://perl.apache.org ) I saw only examples of installing mod_perl whith apache 1.3.x . Is it usable as is with apache 2 ?
thanx.
Also if you have info about apache2 performance compared to apache 1.3, i'd gladly read through....

Replies are listed 'Best First'.
Re: Apache 2 and mod_perl
by JaWi (Hermit) on Oct 03, 2002 at 13:47 UTC
    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 :pserver:anoncvs@cvs.apache.org:/home/cvspublic 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/mod_perl.so 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! :-)

    Success!

    -- JaWi

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

      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.

        ()-()
         \"/
          `                                                     
        
        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."

Re: Apache 2 and mod_perl
by dws (Chancellor) on Oct 03, 2002 at 18:10 UTC
    For whatever it's worth, Red Hat 8.0 ships with Apache 2.0.40 and mod_perl 1.99_05 (according to the package list for RedHat 8.0).

    I haven't installed RH8.0 yet, but will report once I do, unless someone beats me to it, or shrieks of REDHAT BROKE MOD_PERL are heard throughout the land.

Re: Apache 2 and mod_perl
by Sihal (Pilgrim) on Oct 03, 2002 at 13:06 UTC
    looking a little more at the doc i learned that mod_perl 2.0 works only with apache2 but as it is still considered as a beta, i might not use it, so installing it for testing purposes is kinda pointless... wich brings me back to point 1: is mod_perl 1.0 usable withe apache 2?
      No, apache 2 requires mod_perl 2.
        all right that 'll save me a lot of hassle...
        is mod_perl2 stable enough for production purposes or is it highly not recommended to use it in prod?
        apart from that, apache2 gave me impressive results when benchmarking with ab against a single html page. it was able to handle 1400+ hits a sec, whereas apache1 on the same box only handled about 650-700... wow! i've got to figure out if it performs as well in real life though...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://202495]
Approved by Snuggle
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-10-15 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.