Writing Apache Modules with Perl and C
By:   Lincoln Stein and Doug MacEachern
Published:   O'Reilly & Associates, Inc.  - March 1999

Copyright © 1999 by O'Reilly & Associates, Inc.


 


   Show Contents   Previous Page   Next Page

Chapter 2 - A First Module

In this section...

Introduction
Preliminaries
Directory Layout Structure
Installing mod_perl
"Hello World" with the Perl API
"Hello World" with the C API
Instant Modules with Apache::Registry
Troubleshooting Modules

Introduction

   Show Contents   Go to Top   Previous Page   Next Page

In This Chapter

This chapter covers the mechanics of developing Apache extension modules in the Perl and C APIs. First we'll show you how to install mod_perl, which you'll need for all Perl API modules, and how to write a simple "Hello World" script. Then we'll show you an equivalent C module implemented both as statically linked code and as a dynamic shared object.

We won't go into the gory details of Apache internals in this chapter--that's deferred until Chapter 3, The Apache Module Architecture and API--but by the end you'll understand the mechanics of getting a new Apache module up and running.

   Show Contents   Go to Top   Previous Page   Next Page
Copyright © 1999 by O'Reilly & Associates, Inc.

HIVE: All information for read only. Please respect copyright!
Hosted by hive КГБ: Киевская городская библиотека