Building Apache from the Sources
Problem
You want to build your Apache web server from the sources directly  rather than installing it from a prepackaged kit.
 Solution
Assuming that you already have the Apache source tree, whether  you installed it from a tarball, CVS, or some distribution package, the  following commands, executed in the top directory of the tree, builds the server  package with most of the standard modules as DSOs:
Apache 1.3:
% ./configure --prefix= /usr/local/apache  --with-layout=Apache 
     --enable-shared=max--enable-module=most% make # make install
For Apache 2.0:
% ./buildconf
% ./configure --prefix= /usr/local/apache  --with-layout=Apache --enable-
     modules=most --enable-mods-shared=all% make # make install
If you want more detailed information about the various options  and their meanings, you can use the following command:
% ./configure --help
Discussion
Building the server from the sources can be complex and  time-consuming, but it's required if you intend to make any changes to the  source code. It gives you much more control over things, such as the use of  shareable object libraries and the database routines available to modules.  Building from source is also de rigeur if you're  developing your own Apache modules.
The options to the configure script are many and varied;  if you haven't used it before to build Apache, locate some online tutorials (such as those at http://Apache-Server.Com/tutorials/ or http://httpd.apache.org/docs-2.0/install.html) when you want  to change the defaults. The default options generally produce a working server,  although the filesystem locations and module choices may not be what you'd like;  they may include modules you don't want or omit some you do.
 See Also
-  
Published by O'Reilly & Associates, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 
 Posted in:  
0 Comments:
Post a Comment