mod_perl Developer's Cookbook by Geoffrey Young

mod_perl Developer's Cookbook by Geoffrey Young

By Geoffrey Young

mod_perl is a special piece of software program that utterly integrates the facility of Perl with the flexibility and balance of the Apache internet server. With mod_perl, builders can harness the facility of the whole Apache API and enhance net purposes quick and with out sacrificing functionality.

The mod_perl Developer's Cookbook teaches programming with the mod_perl API through instance. The booklet takes builders from the fundamentals of mod_perl to the advance complicated net purposes. builders will examine methods, recommendations, and mod_perl idioms gleaned from the authors' adventure as builders and professional clients of mod_perl.

Geoffrey Young is a common contributor to the mod_perl neighborhood and has written rankings of mod_perl handlers, the main necessary of which might be chanced on on CPAN.

Paul Lindner manages, designs, and implements mod_perl functions at serious course. he's a long-time web and open-source developer, and was once one of many founders of the net Gopher on the collage of Minnesota.

Randy Kobes is a professor of physics on the collage of Winnipeg who conducts examine on chaos and fractals. He used mod_perl to set up a seek engine for CPAN.

Show description

Read Online or Download mod_perl Developer's Cookbook PDF

Best unix books

Kylix Developer's Guide

Delphi for Linux (Kylix) improvement contains 3 major issues. First, the publication famous that a lot of its viewers can be home windows builders who have to comprehend easy Linux improvement innovations, so there'll be info in the course of the e-book delivering perception on the best way to leverage home windows improvement wisdom to the Linux platform.

Just Enough Unix

Barely enough UNIX offers a short and cheap advent to the UNIX working method. the second one variation of this article is going to mirror alterations and updates to the UNIX curriculum that experience taken position because the book's unique book.

Signposts in Cyberspace: The Domain Name System And Internet Navigation

The area identify approach (DNS) allows simple alphanumeric names and domains to be assigned to websites. a lot of those names have won fiscal, social, and political price, resulting in conflicts over their possession, specially names containing trademarked phrases. Congress, in P. L. 105-305, directed the dept of trade to request the NRC to accomplish a research of those matters.

Mac OS X Tiger: Missing Manual

You could set your watch to it: once Apple comes out with one other model of Mac OS X, David Pogue hits the streets with one other meticulous lacking handbook to hide it with a wealth of aspect. the recent Mac OS X 10. four, higher often called Tiger, is quicker than its predecessors, yet nothing's too speedy for Pogue and Mac OS X: The lacking handbook.

Additional info for mod_perl Developer's Cookbook

Sample text

Because mod_perl embeds the perl interpreter into Apache, it does not invoke perl binary you used at build time during normal operation—the perl interpreter mod_perl will use at runtime for its handlers, as well as for Apache::Registry scripts, is the embedded interpreter and not the binary sitting in /usr/bin/perl. Where the current Perl installation on your system does come into play is with the files installed into @INC during the mod_perl build process. At runtime, mod_perl uses the @INC of the perl interpreter it was built with to search for the various Perl modules it needs (like Apache::Registry and Apache::Constants), as well as any Perl modules your handlers will rely upon (like Time::HiRes).

Use Apache::MyConfig; foreach my $key (sort keys %Apache::MyConfig::Setup) { print “$key => $Apache::MyConfig::Setup{$key}\n”; } Finally, if you absolutely require a particular hook, or do not want to program around the availability of one, you can rely on mod_perl::import() to catch the availability of the hook at compile time. use mod_perl qw(PerlStackedHandlers PerlLogHandler); # Now we know we’re ok. 15. Installing Apache Modules from CPAN You want to install an Apache module you found on CPAN.

C HAPTER I Installing mod_perl After generating the Makefile, C:\mod_perl> nmake C:\mod_perl> nmake test C:\mod_perl> nmake install completes the build. If neither of these build procedures succeeds, be sure that you can successfully build other Perl modules requiring a C compiler, to give you confidence that the failure is not due to a misconfiguration of your Perl installation. 16, to see whether any breakage has been fixed there. If this fails, ask for help on the mod_perl mailing list— give your Perl and Apache version, what you tried, and the error that resulted.

Download PDF sample

Rated 4.42 of 5 – based on 45 votes
Comments are closed.