Practical mod_perl
The almost 900 pages are divided into five parts and a bunch of appendices. Part I, "mod_perl Administration" covers building, configuring and installing mod_perl, followed by some Apache details and an 80-page guide to coding with mod_perl in mind. Part II, 'mod_perl Performance' deals with ways of getting the best out of Apache and mod_perl, with a little about security. Part III deals with databases, including persistent connections and data sharing. Part IV is a great guide to debugging and troubleshooting. Part V is a brief look at Apache 2 and mod_perl 2.
The appendices are useful. The first is a short section of around a dozen small 'recipes' for performing various tasks using mod_perl. I found these a good base for more complex tasks, particularly when combined with examples from elsewhere in the book. The second is a list of Perl modules that extend Apache and mod_perl with a brief description of each. The third gives some strategies for providers wanting to host Apache with mod_perl. The fourth and fifth give good overviews of the Template Toolkit and AxKit, an XML application server built on mod_perl.
The book is readable, tending towards heavy writing and certainly dense, but I didn't feel this was a problem in a book meant for a fairly advanced audience. I think you'd want to be a fairly good Perl programmer and well versed in Apache before needing this volume and shouldn't expect to be spoon fed. I thought it well written.
In a book of this size you expect to find a lot of example code, and you won't be disappointed. The book is peppered with short Perl examples and example command lines and configurations, all well explained. The one shortcoming is that there aren't many examples of full-blown applications where you can see everything discussed and have it explained all in one place. I would have appreciated some more of this, the examples tend to be on the short side.
This book sits well in the marketplace. It provides more details on running, installing and configuring mod_perl and Apache than mod_perl Developer's Cookbook (and also delves more into the reasons for doing something one particular way and much more help on debugging), though the Developer's Cookbook becomes a good companion to this volume as it provides a lot more in the way of examples. For those that want to get deep into the high end of mod_perl there is Writing Apache Modules in Perl and C, which is at core a good book on high end mod_perl programming.
O'Reilly have their usual website with Table of Contents, an example chapter, and errata. The authors have their own website with some of the same information and all the code examples from the book as both individual files and one 40k tarball.
I would recommend this book to anyone who administers and writes for mod_perl, it fills the missing pieces in mod_perl Developers Cookbook and is a good companion volume to it.
You can purchase Practical mod_perl from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Ref:Amazon has this book for $5 less than bn and with free shipping
Probably be a good idea to read this in order to find out more about Perl...er, wait, make that >find out about Perl in the first place!
Thank you for the review.
There. Isn't a little common courtesy refreshing?
Ref: Here's my amazon link anyway...
It's right here
I have over 70 freaks, do you?
This book is also the first book to cover the "next generation" of mod_perl: mod_perl 2.0, a completely rewritten version of mod_perl designed for integration with Apache 2.0, which for the first time supports threads.
The book covers the following topics, and more:
Configuring mod_perl optimally for your web site
Porting and optimizing programs for a mod_perl environment
Performance tuning: getting the very fastest performance from your site
Controlling and monitoring the server to circumvent crashes and clogs
Integrating with databases efficiently and painlessly
Debugging tips and tricks
Maximizing security
Written for Perl web developers and web administrators, Practical mod_perl is an extensive guide to the nuts and bolts of the powerful and popular combination of Apache and mod_perl. From writing and debugging scripts to keeping your server running without failures, the techniques in this book will help you squeeze every ounce of power out of your server. True to its title, this is the practical guide to mod_perl.
code in C you fucking GNU hippies
Next I think I will get the special publication of "Why I am better than you: Proper angst and attitude in self labled open source"
mod_perl grep awk nerds >> who-cares.txt
For people who are wondering what mod_perl is exactly: it's a way of integrating perl into Apache's webserver. I think the main advantage is that you don't have the overhead of firing up perl for each cgi-type request. The main gotchas, for the developers point of view, involve a little perl enviornment staying alive, when a perl script starts, runs, and stops, it cleans up after itself, but when it 'stays alive' inside apache, you have to make sure it's not accumulating too much memory cruft, that you're closing handles, etc etc.
This is what I know mostly by reputation, rather than direct experience, experts please feel free to correct me
SO YOU'RE GOING TO DIE: The Comic for Dealing with Death
this, get it sorted please, mods.
I have over 70 freaks, do you?
Stas is also behind the excellent online mod_perl guide, without which I can't imagine being able to use mod_perl in any kind of production environment. He's a great counterexample for those who complain that nobody puts together proper docs for open source projects.
*** don't read this ***
IANAPD (I am not a Perl Developer), but why do you need 900 pages to explain an Apache module?
Surely, if you'd read the Camel Book and some tutorials/references on the Apache site, you'd be covered?
...why does anyone look at Amazon and one other store? You'd think there are two book stores online. Try looking here: For a full readout of BestBookBuys' listing on this book (specifically)
There are three good urls for book shopping:
BookPool, AddAll, BestBookBuys. Why not let bots do your shopping? And if you like the newer bots, check out Froogle.Google
...that can help make mod_perl Not Suck(tm)? Until we implemented draconian IP blocking measures, the servers we have that run mod_perl (but not our perl code) ran themselves out of swap on a regular basis (several times a day). Similarly bad perl code does little to no damage to servers without mod_perl.
As an administrator rather than a developer, and as someone who cannot influence what perl goes on the server, was there anything in the book that could help me stop the huge memory footprint per child (the number one problem)?
Perl == Bad.
it's Perl ne 'Bad', duh.
My God, it's Full of Source!
OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
I used to love ModPerl back when I wrote for Unix systems. I thought it was, unlike ASP, simple and elegant. But now it seems like Php is more "in vogue". Is modPerl still actively used as the preferred way to get scalable web server performance?
This is my sig.
It would have been nice if they could have found room to cover HTML::Mason as well as Template Toolkit and AxKit. Mason is a very popular module for templating and devloping web applications.
I know they can only have room for so much but at 900 pages it's not like they were not shy of a big book.
they are crud
/usr/local/etc/apache
If you want performance, rm -f
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
www.cgisecurity.com/lib/
And now they're the Lib Dems.
BTW, fuck Slashdot. These "editors" could never get a professional writing job. Sycophantic pieces of talentless shit.
The whole reason I use Perl is to hack out stuff quick and easy with minimul effort. The day I spend time reading about it is the day I read about better ways to masterbate. ;)
Now that's funny!
1+2+1+1 || 1+2+2+1
it's a beautiful day!
If you REALLY want to write write-only code, you need to use APL!
I thought whiggers drove around in riced up Honda Civics with coffeecan exhaust tips and listened to 50 cent with the volume cranked up so loud you could hear them inside you SUV. Oh, and they wear baggy pants and their ballcaps on backwords so you can easily identify them as idiots.
Too bad there seems to be only one chapter on mod_perl 2.0. It's still a (slightly?) moving target, but it seems very promising and is hopefully stable soon, leading to a large number of people switching to Apache 2.x.
After all, everyone is itching to have the various filters chained after one another, like running Apache's server side include mechanism over the output of your perl scripts... which is possible only with Apache 2.x.
Amasing. All those people that dont know one another and yet that idiotic culture makes its rounds all over the country, and beyond.
Good book, but for us noobies more examples are needed.
kris@maficstudios.com
sales@maficstudios.com
jobs@maficstudios.com
I tell you what, shut up
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
Neener neener neener. You must carry out a sad existence to be so embittered. When was the last time you rubbed one off?