8 Installing Apache Web Server

This chapter describes how to install Apache HTTP Server systems. You can install Apache HTTP Server on the same machine that will host WebLogic and WebCenter Sites, or you can install and use it on a separate host.

This chapter contains the following sections:

8.1 Is Apache Web Server Already Installed?

  1. Apache HTTP Server can come pre-installed on UNIX-based platforms such as Solaris and Linux. Determine whether Apache is installed on the environment(s) on which you plan to run it.

    Note:

    If Apache Web Server is already installed, ensure the installed version matches the minimum version supported in the Oracle WebCenter Sites Certification Matrix. If Apache Web Server exists and is supported, then you can skip the installation of Apache Web Server. However, if the version installed on your environment is out of date, you are required to compile a new version.
  2. If Apache is already installed, continue with Section 8.3, "Documenting Your Apache Parameters." If Apache is not installed, continue to Section 8.2, "Installation Options."

8.2 Installation Options

To install Apache Web Server, you can do one of the following:

  • Install it from your source medium.

  • Download it from the Internet.

  • Build it from source; that is, select the modules and compile the Apache executable yourself, as described in this section. For detailed instructions, refer to the information that the Apache Foundation makes available at http://www.apache.org/.

To build Apache Web Server 2.2 from source

  1. Extract, compile, and install Apache 2.2.x as follows:

    1. tar xvfjp httpd-2.2.x.tar.bz2

    2. ./configure --enable-so --enable-mods-shared="proxy cache ssl all" --prefix=<PATH_TO_APACHE_HOME> --with-included-apr

    3. make

    4. make install

  2. Set the variable $APACHE2_HOME to the directory in which Apache 2.2.x was installed.

To build Apache Web Server 2.4.x from source

  1. Download APR, APR-util (Apache Portable Runtime), PCRE (Perl-Compatible Regular Expressions Library), and Apache HTTP 2.4.x.

  2. Unpack Apache HTTP 2.4.x. Under the srclib directory (located in the root folder), create an apr, apr-util, and pcre directory.

  3. Unpack APR, APR-util, and PCRE into their respective directories (created in step 2).

  4. Build Apache 2.4.x

    ./configure --enable-so --enable-mods-shared="proxy cache ssl all" --prefix=<APACHE_HTTPD_HOME> --with-included-apr --with-pcre
    

8.3 Documenting Your Apache Parameters

We strongly recommend that you document the details of your Apache installation as mentioned in Table 8-1.

Table 8-1 Apache Parameters

Parameter Description / Your Value

Web Server Version

(WebVersion)

The version of Apache that the host is running. Note that you must use a version that WebCenter Sites supports.

Your Value:

Web Host Name

(WebHost)

The name by which the Apache host machine is known on the network.

Your Value:

Web Host IP Address

(WebIP)

The numeric Internet Protocol address assigned to the Apache host machine.

Your Value:

Web Server Port

(WebPort)

The port number assigned for Apache communications. By default, it has the value 80.

Your Value:

Apache Root Directory

(ApacheRoot)

The top-level directory in which Apache is installed. Immediate subdirectories of ApacheRoot include bin and conf.

Your Value:


8.4 Verifying that Apache Runs Properly

In this step, you will start Apache and verify that it is running properly. For verification instructions, see the Apache web site (http://www.apache.org).

8.5 Next Step

Configure Apache to run with WebLogic and WebCenter Sites. For instructions, see the Oracle Fusion Middleware WebCenter Sites Installation Guide.