BUY THIS BOOK

Safari Books Online

What is this?

Looking to Reprint this content?

Apache: The Definitive Guide, Second Edition Vital Information for Apache Programmers and Administrators

By Ben Laurie, Peter Laurie
February 1999
Pages: 388
ISBN 10: 1-56592-528-9 | ISBN 13: 9781565925281
starstarstarstarstar (Average of 8 Customer Reviews)

This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.

The latest edition is also available on Safari Books Online.

Book description

Written and reviewed by key members of the Apache group, this book is the only complete guide on the market that describes how to obtain, set up, and secure the Apache software on both Unix and Windows systems. The second edition fully describes Windows support and all the other Apache 1.3 features. Includes CD-ROM with Apache sources and demo sites discussed in the book.
Full Description

The freeware Apache web server runs on about half of the world's existing web sites, and it is rapidly increasing in popularity. Apache: The Definitive Guide, written and reviewed by key members of the Apache Group, is the only complete guide on the market today that describes how to obtain, set up, and secure the Apache software. Apache was originally based on code and ideas found in the most popular HTTP server of the time: NCSA httpd 1.3 (early 1995). It has since evolved into a far superior system that can rival (and probably surpass) almost any other Unix-based HTTP server in terms of functionality, efficiency, and speed. The new version now includes support for Win32 systems. This new second edition of Apache: The Definitive Guide fully describes Windows support and all the other Apache 1.3 features. Contents include:
  • The history of the Apache Group
  • Obtaining and compiling the server
  • Configuring and running Apache on Unix and Windows, including such topics as directory structures, virtual hosts, and CGI programming
  • The Apache 1.3 Module API
  • Apache security
  • A complete list of configuration directives
With Apache: The Definitive Guide, web administrators new to Apache can get up to speed more quickly than ever before by working through the tutorial demo. Experienced administrators and CGI programmers, and web administrators moving from Unix to Windows, will find the reference sections indispensable. Apache: The Definitive Guide is the definitive documentation for the world's most popular web server. Includes CD-ROM with Apache manuals and demo sites discussed in the book.
Post-purchase benefits:

Register your book | Submit Errata


Browse within this book

Cover | Table of Contents | Index | Sample Chapter | Colophon

Book details

Second Edition: February 1999
ISBN: 1-56592-528-9
Pages: 388
Average Customer Reviews: starstarstarstarstar (Based on 8 Reviews)


Featured customer reviews

Write a Review


Apache: The Definitive Guide, 2nd Edition Review,  December 09 2002
Rating: StarStarStarStarStar
Submitted by Carlos Ross   [Respond | View]

This book is outdated (references Windows 95 only), and does not provide a step-by-step guide for testing from a Windows workstation. I bought this book because I wanted to set up a lab at home to run Apache on a FreeBSD machine, and use a Windows 2000 workstation as the client. The book seems to concentrate on the use of Apache directives; however, this can be obtained for free at the www.apache.com website. This book starts with a poor attempt to lead the user to building a working website, but it fails from lack of details, and also appears to lack from experiential knowledge. If you are looking for a hands-on guide to help you set up and run a lab to learn Apache web hosting, and test using the IE browser, this books will let you down. Scary that it's called "The Definitive Guide". It certainly wasn't worth the $34.95 + tax, or the trip to the bookstore.


Apache: The Definitive Guide, 2nd Edition Review,  September 09 2002
Rating: StarStarStarStarStar
Submitted by Kenneth Wilcox   [Respond | View]

Hallelujah!

I think this book was exactly what I needed. Coming over from the M$ world where everything is a GUI, the httpd.conf file was a bit frustrating. Apache's online documentation was not newbie friendly. This book bridges that gap. I liked the way they begin with NO conf file and explains the Apache errors, and how to fix it in the conf file. The book then goes on adding additional functionality and options.

This book does not explain every configuration option available to Apache, and it is a bit outdated (covers up to version 1.3.n). The book did come with a CD with sample conf files, but I found that I didn't even need to use them. The book is NOT a complete desktop reference, but it helped me understand Apache conf files so now the Apache online documentation makes sense.

This book showed me the ropes and I'm successfully running Apache as my web server, which is all I was trying to do.


Apache: The Definitive Guide, 2nd Edition Review,  August 30 2002
Rating: StarStarStarStarStar
Submitted by Paul Dyer   [Respond | View]

Sorry to say so late in the game, but this is not a good book. I would say it is poorly written, but obviously the authors have not written most of it. Look at the manual pages for Apache 2.0.40 and you can easily see that most of the books content come from there.

By the way, there are no diagrams, figures, pictures or tables anywhere in the book!!!

I am still looking for a good book on Apache 2.0, but I guess I will just read the man pages.

Read all reviews


Apache: The Definitive Guide, 2nd Edition Review,  March 05 2001
Rating: StarStarStarStarStar
Submitted by Kris Lightsey   [Respond | View]

Well, I would have ranked it higher, but the errors on pg. 62 are pretty egregious.

The book has name-based and ip-based virtual hosts backwards. It is very confusing to see this, but thankfully the unconfirmed user errata notes and the apache web site address the issue correctly and you can see clearly that the book is wrong on this point.

This sort of conceptual error should be fixed on reprints and in the confirmed errata section.




Apache: The Definitive Guide, 2nd Edition Review,  August 16 2000
Rating: StarStarStarStarStar
Submitted by Owen Boyle   [Respond | View]

This book is to Apache what "Learning Perl" is to Perl.

It is NOT a reference guide as The Camel Book is to Perl. It is a book for someone who doesn't know about Apache and wants to set up a complex site from scratch. For this reason, it has a "storybook" approach as it walks through the installation and configuration of the increasingly complex requirements of a mythical web-site ("butterthlies.com" - I never got the joke).

Everything is eventually well-covered but an experienced user will have to keep checking the index to find the directive he's after.

By the way, I'd take issue with the reviewer who complained that the procedure for configuring network cards (p38) didn't work on his system. Actually, I was amazed they included this page at all. The book is supposed to be about Apache - getting your network running is really your own affair. As it stands, there is enough information on the page to give you some strong hints about how-to-install-a-network-card on any Unix system. The details vary so much among various Unix flavours (Solaris, HP-UX, Linux..) and even among distributions (Red Hat, SUSE, Caldera..) that it is asking a bit much to expect a page on each.




Apache: The Definitive Guide, 2nd Edition Review,  July 04 2000
Rating: StarStarStarStarStar
Submitted by Jesse   [Respond | View]

In general this was a pretty good book, though it struggled to keep the big picture in view a fair amount of the time (as in, why bother doing the things it describes). My biggest complaint is that in Chapter 5, page 124, it states, "Our salespeople are logging in because they want to place orders, and we ought to be able to detect who they are so we can send the goods to them automatically. This can be done, and we'll look at how to do it in a moment." And then it never describes how it can be done (or at least, I never found it. It goes on to talk about cookies and the like, but never mentions correlating logins to the cookies that are issued). Figuring out how to do this was my primary reason for getting the book!


Apache: The Definitive Guide, 2nd Edition Review,  May 17 2000
Rating: StarStarStarStarStar
Submitted by Peter Matulis   [Respond | View]

A good book but I personally dislike the story-book approach where you have to read all the chapters in sequential order for things to make the best sense.

As an absolute beginners guide this is a valid strategy but not for anyone who already has set up a few sites.

Still well worth the cash but it would of been better if you could go to any chapter and not have to scratch your head about some reference (like a website name, machine name, or mock company name) used in an earlier chapter.


Apache: The Definitive Guide, 2nd Edition Review,  May 17 2000
Rating: StarStarStarStarStar
Submitted by Alexander Danel   [Respond | View]

I read the book from cover to cover, and now I'm attempting to go back and go through the examples. I have an immediate and perhaps major problem at page 38, section "Our Experimental Micro Web". It seems that the setup info on this page is going to be critical for much of what the rest of the book wants me to do, but it doesn't work on my Red-Hat Linux 6.1 machine. Nore is there much of a clue about what is supposed to happen. The problem is with the "ifconfig" program (which, by the way, is poorly documented in the Linux man page.) I can sort of guess what it's supposed to do, but there really should be a clear explanation. And since I can't get "ifconfig" to work with the same parameter list on my machine, I'm stuck.

It is not sufficient, in my opinion, to say "here's how it works on FreeBSD" when many of us are using different variants. This is too critical and cryptic a place to wave hands; the author should do the research for most popular Operating System variants, and provide enough explanation so that the remainin OS variants can be figured out. Bad spot to get lazy.


Apache: The Definitive Guide, 2nd Edition Review,  August 27 1999
Submitted by mike jones   [Respond | View]



hi,

the book seems to be great. no problems there. it
is, as most oreilly books, very well written.

however, the installation via cdrom or any
other technique i've tried is totally hosed;
the file seems to be only partially recognized by
the system. see for yourself:

bash$ ls -l install/install
-rwxr-xr-x 1 jones wp 3210 Aug 26 18:58 install/install
bash$ install/install
bash: install/install: No such file or directory
bash$ which sh
/usr/bin/sh
bash$ head install/install
#!/bin/sh
#
# Install sample Web sites for Apache: The Definitive Guide edition 2
#

can someone please recommend a workaround (eg is the
tutorial available via the web)?

thank you,

mike jones


Apache: The Definitive Guide, 2nd Edition Review,  August 05 1999
Submitted by Walid Mohamed   [Respond | View]



The installation procedure is very confusing.
I have installed Apache from its web site directly,
it runs fine. But I don't understand how to install
the sample sites included with the CD-Rom.
I would appreciate any help.

Thanks, Walid.


Apache: The Definitive Guide, 2nd Edition Review,  July 14 1999
Submitted by Lee McKusick   [Respond | View]



I'd label Apache the Definitive Guide as having a strong introduction tutorial, and impressive advanced material on the SSI, API and Modules.

But the Guide is weak in the middle ground. I wanted more sample configuration statements with a carefully complete description. I wanted to see the authors address the larger context that Apache runs in: websites.

The preface very carefully escaped the authors from dealing with the larger issues of web site design.

Apache is like an elephant with 150 configuration variables. I ask the authors on their next edition to step back and show me how to do a few simple things with newbie level explicitness.

Next edition: Show me how to enable a specific directory for READ or POST or GET. Have the authors show how to go from a functional specification to lines in the .CONf files.




Apache: The Definitive Guide, 2nd Edition Review,  April 28 1999
Submitted by Russ Emerson   [Respond | View]



I hate to say it, but "me, too." Under Red Hat 5.2,
regardless of what I do, the install script fails.

Maybe I'm just missing something....

Russ


Apache: The Definitive Guide, 2nd Edition Review,  April 03 1999
Submitted by Jeffery Fleischer   [Respond | View]



I have read Michael's review and I am experiencing the same problem. The install script fails completely on the initial try. After trying the changes Michael suggested to the script, I still cannot get the sites to install. Considering how heavily the book itself refers to the sample sites, I'm not so sure how helpful it can be to new users such as myself, who do not know how to troubleshoot these scripts. For the record, I am currently running redhat 5.2. If anyone can help with this issue, please contact me at jfleischer@walrus.com

Thanks,
Jeff



Apache: The Definitive Guide, 2nd Edition Review,  April 02 1999
Submitted by Michael Klemme   [Respond | View]



I just started reading the book.
My first action was to install the sample sites on my computer.
I was not to impressed by the installation program.
Firstly, it refused to run on Debian Linux 2.0 at all:
klemme@moa:/cdrom> ./install/install
./install/install: Permission denied.
It turned out that there are \r\n codes in the file. The command
tr \\r " " < ~/tmp/install > ~/tmp/install3
fixed that problem.

The next problem ist that the parameter substitution by the installation script is faulty.
Server name 2 is substituted for the administrator of server 1
Try this one:
sed -e "s?webuser?$WEBUSER?" \
-e "s?webgroup?$WEBGROUP?" \
-e "s?www.butterthlies.com?$S1NAME?" \
-e "s?sales@butterthlies.com?$S1ADMIN?" \
-e "s?sales.buttherthlies.com?$S2NAME?" \
-e "s?sales_mgr@butterthlies.com?$S2ADMIN?" \
-e "s?sales-IP.butterthlies.com?$S3NAME?" \
-e "s?/usr/www?$SITES?" < $X > $X.xxx
I personaly think the path to the apache binary should be adapted as well, since many systems come with pre-installed binaries in various places.
Add a
-e "s?httpd?/usr/sbin/apache?"
to the substitution (and adapt it to your path).

Otherwise:
Happy reading
Michael


Apache: The Definitive Guide, 2nd Edition Review,  July 28 1998
Submitted by Stephen R. Figgins   [Respond | View]



The install problem with the CD-ROM affects users on a Unix system. The disk was mastered on a Windows system, and the mastering tool wrote the install script in a DOS text format. There are also two lines in the script that need to be altered to properly modify the examples for your local site. You can find detailed instructions on how to convert the file to a Unix format so it will run, and what lines to change in the current errata for the book. If you run into any further problems, write us about it at bookquestions@oreilly.com. We can help you get it running.


Media reviews


"My personal favorite {apache book}?due to its clear and concise format."--ApacheWeek, Feb 15, 2002

"The book lives up to its title well; it's a great guide for getting started and maintaining a Web serve with a
Apache."
--Jon Holman, UnixReview, Dec 19, 2001


"If your intention is to use Apache, then Lauries' book is probably not just definitive, but essential." -Joe McCool, ACCU, Jan 2000

"I can highly recommend this resource to any sysadmin who must set up and run a web site with Apache and to the programmers who must work with it." -- E. V. Bell II, Ed's Internet Book Review


"...an excellent guide even for webmasters who have never installed or configured a server before. However, you should have a basic knowledge of the Web and understand how it works to get the most benefit from this publication." --fabrain.com, March 1999

"I have no reason to doubt its claim as the definitive guide and the 2nd edition is probably justified. If your intention is to use Apache, then Lauries' book is probably not just definitive, but essential. It takes the reader through from the design of the simplest possible 'hello world' site to a complex application involving on-line forms etc." --Joe McCool, Cvue, Jan 2000

"a very good guide to Apache, the world's most popular web Server . . . if you are a C programmer and want to work directly with Apache's complex, but powerful application programming interface (API), you will find this book indispensable . . . This guide is amusingly written - a rarity in technical books! - and does cover most of the basics well. We'd buy the book if we were Apache webmasters" --Stephen J. Vaughan-Nichols, Smart Reseller, April 19, 1999

"The best book I've seen on getting the most from Apache. This is the owner's manual for the world's most widely used web server." --Chuck Murcko, Apache Group member

"Another Nutshell book that is a 'must have' for Internet professionals using the Apache webserver software. The authors have applied their ample qualifications to produce a handbook with enough information to remain a useful tool for the basics and beyond." --Randy Terbush, Apache Group member

"For excellent documentation, the O'Reilly folks have published
Apache: the Definitive Guide." --Shirley Duglin Kennedy, Information Today, March 1998

If you want good documentation, take a look at the O'Reilly books Apache' titles, which are written by some of the program's developers. Of course, if you're working with web servers and Unix systems-especially Open Source-you'll probably have a pile of O'Reilly books on your shelves and all over your desk. -Simon Bisson, Application Development Advisor, Oct 1999

Apache, a freeware program, is one of the most popular server software used on the Unix platform. The aim of this book is to show web administrators how to properly set up the Apache server. The first three chapters are a tutorial on how to set up web sites - using virtual hosting & Apache. The rest of the book covers the following subjects: Common Gateway Interface (CGI) Authentication Content & Language Arbitration Indexing Redirection Proxy Servers Server-Side Includes Logs The Apache API Writing Apache Modules Security

Also included with the book is a cd-rom. The cd includes Apache, versions 1.1.1 & 1.2b; the HTTP/1.0 & 1.1 specs; the CGI/1.1 specs; gzip version 1.24; and the sites referred to in the book. However, the authors suggest that you download Apache from www.apache.org, as it's likely to be a more current version than the one included with the book. But you can compile and install Apache from the included cd-rom.

It's obvious that the authors know Apache very well. In fact, Ben Laurie is a member of the core Apache group. The authors state that they expect most people who read this book to have used the World Wide Web and to understand how it works. I qualify for that part! Then they go on to say they expect readers are now thinking about running their own server.

I'm not thinking about running my own server - especially after reading this book. However, I rent space on two servers - one locally for my own site & one for the purpose of reselling web space. Both servers are powered by Apache. So it couldn't hurt to learn a little about the software & what it can do.

The Lauries take you from installing Apache through running secure, virtual host web sites. There are demonstrations you can duplicate using your own equipment. Along the way, they also try to alert you to all the dangers inherent in running a server and what you can do to avoid or bypass them.

Where this book really shines is in the details. Apache is controlled through roughly 150 directives. As far as I can tell, they're all covered in minute detail. For each directive, the syntax, where it is used, & an explanation is provided. This is, in fact, the bulk of the book.

Although this book is highly informative & well written, I could not set up a web server after reading it. So if you know a little about the web, and think you'll just read this book to set up your own server, think again.

On the other hand, if you're more familiar with the requirements of running a server - how to connect to the Internet, security questions, how domain hosting works, etc - and you want free software to set up your server - this book is for you. --CompuNotes, August 1997

Hide extended reviews


See larger cover