Databases Reference
In-Depth Information
Getting ready
This recipe assumes a Web tier with two dedicated Linux x86-64 machines named
web01
and
web02
. Both machines should have Apache HTTP Server 2.2.x running and listening for
HTTP requests on port
80
. The Apache HTTP Server runs under the shell user
webadmin
.
In production, use a minimum of two machines in all
tiers to avoid a single point of failure.
Download Apache HTTP Server 2.2.x at
http://httpd.apache.org/docs/2.2/install.
html#download
. Make sure you download the Unix Source and the latest stable version. The
filename should be
httpd-2.2.xx.tar.gz
where the
xx
stands for the minor version.
Also, verify if the operational system meets the requirements at
http://httpd.apache.
org/docs/2.2/install.html#requirements
to build and install Apache HTTP Server.
To simplify the reading, we'll use the term
$APACHE_HOME
when referring
to to the Apache HTTP Server directory,
/oracle/apache
.
How to do it...
To install Apache HTTP Server, carry out the following steps:
1. Create a dedicated user to host and run Apache HTTP Server 2.2.x in Linux. Log in
as the
root
user and create the user and group named
webadmin
and set a new
password for it:
[root@web01]# groupadd webadmin
[root@web01]# useradd -g webadmin webadmin
[root@web01]# passwd webadmin
Changing password for user webadmin.
New UNIX password: <new password>
Retype new UNIX password: <new password>
2. Log in as a
webadmin
user, create a temporary directory and extract the downloaded
file to it. Consider that the
httpd-2.2.xx.tar.gz
file is located in the home
directory:
[webadmin@web01]$ cd
[webadmin@web01]$ gunzip -d httpd-2.2.xx.tar.gz
[webadmin@web01]$ mkdir ~/apache-tmp
Search WWH ::
Custom Search