Pick a Free OS

User login

Navigation

A WebServer Guide -- Help Using Apache

ftp://ftp.redhat.com/pub/redhat/current/i386/RedHat/RPMS

and pick yourself up a copy. If you\'ve not already done so, you\'ll need to

become root. Navigate to the same directory as the .rpm file you obtained, and

then type the following command, substituting the name of the .rpm you\'re

using for apache-1.x.x-x.i386.rpm.

rpm

-ivh apache-1.x.x-x.i386.rpm

RPM should

grind away, displaying its progress with a primitive ####### progress bar.

Barring any errors, you\'re done.

If you\'re

interested in knowing how to install Apache from scratch, read on. Or you can

skip on to

Starting Apache.

Building

Apache from source

may seem a daunting proposition to newcomers, but the Apache developers have

done a wonderful job of making the task about as simple as could be. Just

three more commands than a binary installation and you skip the arduous task

of figuring out which binary is the right one for your particular operating

system. Let\'s give it a whirl, shall we?

Point your Web browser at

http://www.apache.org/dist and

download the gzip\'d form of the current version of

Apache.

Now let\'s uncompress that

archive using gunzip and tar. You should replace

the

apache_1.3.11.tar.gz

below with the name of the gzip\'d file you

downloaded.

gunzip apache_1.3.11.tar.gz | tar xvf -

 

You should end up with an

apache_1.3.x directory,

x being the particular sub-version of Apache you downloaded. Move into the

newly created directory.

cd apache_1.3.x

Now we\'ll use the

the

configure and

make commands to (you

guessed it) configure, make, and install Apache. If you\'ve not already done

so, now would be the time to become root.

./configure

Your screen should look

something like:

# ./configure

Configuring for Apache, Version 1.3.11

...

Creating Makefile

Creating Configuration.apaci in src

Creating Makefile in src

+ configured for Linux platform

+ setting C compiler to gcc

+ setting C pre-processor to gcc -E

+ checking for system header files

+ adding selected modules

+ checking sizeof various data types

+ doing sanity check on compiler and options

...