install.html revision a09d84bf1193be20d9910a8ba5d01e5dff2e2bff
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync BGCOLOR="#FFFFFF"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync TEXT="#000000"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync LINK="#0000FF"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync VLINK="#000080"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync ALINK="#FF0000"
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<!--#include virtual="header.html" -->
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<H1 ALIGN="CENTER">Compiling and Installing Apache 1.2</H1>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<P>If you wish to download and install an earlier version of Apache please
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncread <A HREF="install_1_1.html">Compiling and Installing Apache 1.1</A>.</P>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncUnixWare users will want to consult <A HREF="unixware.html">build notes</A>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncfor various UnixWare versions before compiling.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncInformation on the latest version of Apache can be found on the Apache
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncweb server at <A
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncHREF="http://www.apache.org/">http://www.apache.org/</A>. This will
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsynclist the current release, any more recent beta-test release, together
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncwith details of mirror web and anonymous ftp sites.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncIf you downloaded a binary distribution, skip to <A
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncHREF="#install">Installing Apache</A>. Otherwise read the next section
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncfor how to compile the server.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncCompiling Apache consists of three steps: Firstly select which Apache
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync<b>modules</b> you want to include into the server. Secondly create a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncconfiguration for your operating system. Thirdly compile the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncAll configuration of Apache is performed in the <CODE>src</CODE>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncdirectory of the Apache distribution. Change into this directory.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Select modules to compile into Apache in the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <CODE>Configuration</CODE> file. Uncomment lines corresponding to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync those optional modules you wish to include (among the AddModule lines
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync at the bottom of the file), or add new lines corresponding to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync additional modules you have downloaded or written. (See <A
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync HREF="misc/API.html">API.html</A> for preliminary docs on how to
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync write Apache modules). Advanced users can comment out some of the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync default modules if they are sure they will not need them (be careful
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync though, since many of the default modules are vital for the correct
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync operation and security of the server).
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync You should also read the instructions in the <CODE>Configuration</CODE>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync file to see if you need to set any of the <CODE>Rule</CODE> lines.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Configure Apache for your operating system. Normally you can just
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync type run the <CODE>Configure</CODE> script as given below. However
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync if this fails or you have any special requirements (e.g. to include
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync an additional library required by an optional module) you might need
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync to edit one or more of the following options in the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <CODE>EXTRA_CFLAGS, LIBS, LDFLAGS, INCLUDES</CODE>.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync <BLOCKQUOTE>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync % Configure
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Using 'Configuration' as config file
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync + configured for <whatever> platform
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync + setting C compiler to <whatever> *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync + setting C compiler optimization-level to <whatever> *
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync </BLOCKQUOTE>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (*: Depending on Configuration and your system, Configure
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync make not print these lines. That's OK).<P>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync This generates a Makefile for use in stage 3. It also creates a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Makefile in the support directory, for compilation of the optional
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync support programs.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (If you want to maintain multiple configurations, you can give a
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync option to <CODE>Configure</CODE> to tell it to read an alternative
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Configuration file, such as <CODE>Configure -file
HREF="http://www.apache.org/dist/contrib/modules/"><URL:http://www.apache.org/dist/contrib/modules/></a>.
while the children will change to the user as given in the httpd.conf
<!--#include virtual="footer.html" -->