Writing Apache Modules with Perl and C: The Apache API and mod_perl Paperback – Apr 11 1999
No Kindle device required. Download one of the Free Kindle apps to start reading Kindle books on your smartphone, tablet, and computer.
To get the free app, enter your e-mail address or mobile phone number.
Writing Apache Modules with Perl and C will allow you to enhance your Apache HTTP server in just about any way you'd like. Overall, it is an excellent book, and it has a lot of good information and terrific examples on everything from "Content Handlers" to customizing the Apache server configuration process.
It's quickly apparent that Lincoln Stein and Doug MacEachern spent valuable time writing this book considering the breadth of their subject and the depth they devote to it. The only downside to the book is that it's kind of hard to explain all of the API functionality without assuming a minimum level of competence from the audience. For that reason, this book might be a bit intimidating to novice programmers, but it really rewards you if you put time into it and tinker with things.
The book also works well as a source of ideas and inspiration for when you have to write your own server modules, and I'd recommend it if you want to customize your Apache server or speed up your Perl CGI programs. --Doug Beaver
From the Publisher
This guide to web programming shows how to extend the capabilities of the Apache web server. It explains the design of Apache, mod_perl, and the Apache API, then demonstrates how to use them to rewrite CGI scripts, filter HTML documents on the server-side, enhance server log functionality, convert file formats on the fly, and more.See all Product Description
Top Customer Reviews
I haven't actually read the other mod_perl and developer-oriented Apache books out there but in my opinion this book is still indispensable if you plan to write Apache modules, either in Perl, C, or other languages. Especially if you write for mod_perl, this book is a great complement to the mod_perl guide. Stas' guide focuses on deployment and tuning issues (memory usage, speed, etc) while WAM focuses on the Apache API and how Apache can help you do the job by writing modules.
Personally, _Writing Apache Modules_ is still the most useful reference book to date. It's one that spends the largest amount of time on my desk.
And, oh yes, Amazon gives a good deal on this one ... .
Can't wait for the Apache 2 counterpart.
When we do begin the writing of a module, it isn't a basic, stand-alone module, but a module to add footers to other content. So, the text digresses into a long and technical discussion of the various ways to configure Apache and associate MIME types so that this module will work with documents that we might or might not have on hand (It's just assumed that you have these laying around handy). During this discussion, we get bounced off of other Apache::xyz modules that apparently popped into the author's head in a moment of "As long as we're at it, why don't we throw this in too" inspiration. Wonderful information ... presented at the wrong time.
To give an example: A logical place to start learning Oracle SQL (or any other SQL) would be with the SELECT statement. However, the authors of this book would begin with a detailed discussion of PL/SQL exception handling, a listing of most of the built-in PL/SQL exceptions, and a listing of a number of the built-in Oracle packages. (Recall we were just starting with SQL. But what the heck! PL/SQL is cool, so why not talk about it now? We're going to use it eventually anyway.Read more ›
The first part of that truism can perhaps be said of Web Wizards and Apache modules. Fortunately Apache modules are a little easier to write than Sendmail configurations and this book makes it easier still.
Let's not mince words. Perl scripts and other CGI software can quickly become performance bottlenecks on any server, no matter the size of your hardware. The most powerful way of fixing this is to fold a fair amount of that programming inside the server where the overhead of loading interpreters, libraries and code is already taken care of, not to mention you find yourself with much more power and control over the dialogue between server and browser.
Unfortunately writing to an API as large and complex as that in Apache is not always easy. MacEachern and Stein go to a great deal of trouble and exert a fair degree of skill in breaking the learning down into manageable chunks and explaining it all with a large number of examples.
This was the first book I read that really made me understand the process going on, both between the two pieces of software and inside Apache, when a page is requested. From there the book goes on to give you a marvellous understanding of how to write a module in Perl that fits into that process. Finally the last three chapters are excellent API reference guides, one on the Perl API and two on the C API, and an excellent index (which indexes every function in the API's as well as key concepts) make this a superb tool when you get down to writing.Read more ›
It reduces days of surfing PODS (perl docs), man-pages (unix docs), and online Apache online references into a nice little kitty. But it¹s not a simple typographical candying/laser-printing of your online docs--the author gives thorough treatment to important GOALS one would want to achieve with the Apache and Apache+Perl facilities--the facilities are elegant, but the sample code and explanations are definitely clear too.
Even the reference section (Chapter 9-11) to Apache library are infested with snippets that improve code comprehension. I felt comfortable tackling the logic of third party Apache modules (in c) and Perl+Apache modules (in perl) after my first run through the book.
The authors made sure you¹ll feel equally comfortable in c when tackling the Apache API, I¹m really happy about this, because some sites require programming in c to maximize server availability when the number of concurrent clients are too high for normal perl or java solutions, and other situations. Since the authors worked with the core server as well as Apache API closely in the effort to bring Perl and Apache together, I can see their enthusiasm in their explanation of c side of the API--which is what they use when improving the GNU mod_perl project--this helps to make this reference far far from being another dry treatment of a programming interface.
While advanced CGI writers can learn all they need about Apache modules, I found it really soft and patient with newbies too.Read more ›
Most recent customer reviews
Not much there for C, although it's not too difficult to make use of the Perl topics and covert them to C, it's more geared towards Perl (much more). That's too bad. Read morePublished on May 10 2003 by Tim Greer
It's all in Perl. The book says "Apache Modules with Perl and C" but really, it's all in Perl. Read morePublished on March 1 2003
The book in and of itself, is great. Typical O'Reilly fare. But this book is 99% Perl.. anyone writing Apache Modules, isn't writing them in Perl. Read morePublished on Oct. 16 2001 by Chris
Writing Apache Modules is a rather arcane specialty; with so many excellent free modules already available, most people can find more than the need with some simple... Read morePublished on May 22 2001 by _Mark_
This book is a pleasure to read. It provides information on web development on the Apache/Perl platform in a very accessible and entertaining form without being dumbed down. Read morePublished on March 25 2001 by Cliente de Amazon
Anybody who is interested in writing apache modules, MUST buy this book...
Its very straight forward, focuses only on things that are related to writing modules in both Perl... Read more
Doug and Lincoln's book is outstanding. I had no idea Apache could do so much. The book is also wonderful simply for the perl parts of the examples. Read morePublished on Sept. 10 1999
This book offers comprehensive explanations and examples for developers who wants to tap into the power of apache via perl. Read morePublished on July 10 1999
Look for similar items by category
- Books > Computers & Technology > Internet & Social Media
- Books > Computers & Technology > Microsoft > Development > C & C++ Windows Programming
- Books > Computers & Technology > Networking & Cloud Computing > Data in the Enterprise > Client-Server Systems
- Books > Computers & Technology > Networking & Cloud Computing > Internet, Groupware, & Telecommunications
- Books > Computers & Technology > Programming > C
- Books > Computers & Technology > Programming > Languages & Tools
- Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Object-Oriented Design
- Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Software Development
- Books > Computers & Technology > Software
- Books > Computers & Technology > Web Development > Programming
- Books > Computers & Technology > Web Development > Web Servers > Apache
- Books > Computers & Technology > Web Development > Web Services
- Books > Professional & Technical > Engineering
- Books > Textbooks > Computer Science & Information Systems > Programming Languages
- Books > Textbooks > Computer Science & Information Systems > Software Design & Engineering