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:
- 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
- Generate the makefile:
perl Makefile.PL MP_AP_PREFIX=/path/to/apache2 MP_INST_APACHE2=1
- 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...!
- 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." | [reply] [d/l] [select] |
|
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 :-)
| [reply] |
|
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.
()-()
\"/
`
| [reply] [d/l] |
|
|
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."
| [reply] |
|
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.
| [reply] |
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? | [reply] |
|
No, apache 2 requires mod_perl 2.
| [reply] |
|
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...
| [reply] |
|
|
|
|