From fd7fd59e02a41447de058e273db94a1fb0fa14f8 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Sun, 18 Dec 2011 20:15:42 +0000 Subject: [PATCH] Update transformations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1220525 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/index.html.en | 1 + docs/manual/platform/index.html.en | 23 +++- docs/manual/platform/rpm.html | 5 + docs/manual/platform/rpm.html.en | 205 +++++++++++++++++++++++++++++ docs/manual/platform/rpm.xml.meta | 12 ++ 5 files changed, 243 insertions(+), 3 deletions(-) create mode 100644 docs/manual/platform/rpm.html create mode 100644 docs/manual/platform/rpm.html.en create mode 100644 docs/manual/platform/rpm.xml.meta diff --git a/docs/manual/index.html.en b/docs/manual/index.html.en index 2b55f296a8..a771340282 100644 --- a/docs/manual/index.html.en +++ b/docs/manual/index.html.en @@ -84,6 +84,7 @@ Documentation

Platform Specific Notes

diff --git a/docs/manual/platform/index.html.en b/docs/manual/platform/index.html.en index 963e0b8f48..79a405decc 100644 --- a/docs/manual/platform/index.html.en +++ b/docs/manual/platform/index.html.en @@ -24,6 +24,7 @@
top
@@ -35,7 +36,7 @@
Using Apache
-

This document explains how to install, configure and run Apache 2.0 +

This document explains how to install, configure and run Apache 2.4 under Microsoft Windows.

See: Using Apache with Microsoft Windows

@@ -54,6 +55,22 @@
top
+

Unix Systems

+ + + +
+
RPM Based Systems (Redhat / CentOS / Fedora)
+
+

This document explains how to build, install, and run Apache 2.4 + on systems supporting the RPM packaging format.

+ +

See: Using Apache With RPM Based Systems

+
+
+ +
top
+

Other Platforms

@@ -61,7 +78,7 @@
Novell NetWare
-

This document explains how to install, configure and run Apache 2.0 +

This document explains how to install, configure and run Apache 2.4 under Novell NetWare 5.1 and above.

See: Using Apache With Novell NetWare

@@ -77,7 +94,7 @@
Warning: This document has not been updated to take into account changes made in - the 2.0 version of the Apache HTTP Server. Some of the + the 2.4 version of the Apache HTTP Server. Some of the information may still be relevant, but please use it with care.
diff --git a/docs/manual/platform/rpm.html b/docs/manual/platform/rpm.html new file mode 100644 index 0000000000..8776009a2e --- /dev/null +++ b/docs/manual/platform/rpm.html @@ -0,0 +1,5 @@ +# GENERATED FROM XML -- DO NOT EDIT + +URI: rpm.html.en +Content-Language: en +Content-type: text/html; charset=ISO-8859-1 diff --git a/docs/manual/platform/rpm.html.en b/docs/manual/platform/rpm.html.en new file mode 100644 index 0000000000..8f24342fb0 --- /dev/null +++ b/docs/manual/platform/rpm.html.en @@ -0,0 +1,205 @@ + + + +Using Apache With RPM Based Systems (Redhat / CentOS / Fedora) - Apache HTTP Server + + + + + +
<-
+

Using Apache With RPM Based Systems (Redhat / CentOS / Fedora)

+
+

Available Languages:  en 

+
+ + +

This document explains how to build, install, configure and run + Apache 2.4 under Unix systems supporting the RPM packaging format.

+ +
+ +
top
+
+

Creating a Source RPM

+ + +

The Apache httpd source tarball can be converted into an SRPM as + follows:

+ +

+ rpmbuild -ts httpd-2.4.x.tar.bz2 +

+ +
top
+
+

Building RPMs

+ + +

RPMs can be built directly from the Apache httpd source tarballs using + the following command:

+ +

+ rpmbuild -tb httpd-2.4.x.tar.bz2 +

+ +

If successful, the following RPMs will be created:

+ +
+
httpd-2.4.x-1.i686.rpm
+
The core server and basic module set.
+ +
httpd-debuginfo-2.4.x-1.i686.rpm
+
Debugging symbols for the server and all modules.
+ +
httpd-devel-2.4.x-1.i686.rpm
+
Headers and development files for the server.
+ +
httpd-manual-2.4.x-1.i686.rpm
+
The webserver manual.
+ +
httpd-tools-2.4.x-1.i686.rpm
+
Supporting tools for the webserver.
+ +
mod_authnz_ldap-2.4.x-1.i686.rpm
+
mod_ldap and mod_authnz_ldap, with + corresponding dependency on openldap.
+ +
mod_lua-2.4.x-1.i686.rpm
+
mod_lua module, with + corresponding dependency on lua.
+ +
mod_proxy_html-2.4.x-1.i686.rpm
+
mod_proxy_html module, with + corresponding dependency on libxml2.
+ +
mod_socache_dc-2.4.x-1.i686.rpm
+
mod_socache_dc module, with + corresponding dependency on distcache.
+ +
mod_ssl-2.4.x-1.i686.rpm
+
mod_ssl module, with + corresponding dependency on openssl.
+ +
+ +
top
+
+

Installing the Server

+ + +

The httpd RPM is the only RPM necessary to get a basic + server to run. Install it as follows:

+ +

+ rpm -U httpd-2.4.x-1.i686.rpm +

+ +

Self contained modules are included with the server. Modules that + depend on external libraries are provided as separate RPMs to install + if needed.

+ +
top
+
+

Configuring the Default Instance of Apache httpd

+ + +

The default configuration for the server is installed by default + beneath the /etc/httpd directory, with logs written by + default to /var/log/httpd. The environment for the + webserver is set by default within the optional + /etc/sysconfig/httpd file.

+ +

Start the server as follows:

+ +

+ service httpd restart +

+ +
top
+
+

Configuring Additional Instances of Apache httpd on the Same Machine

+ + +

It is possible to configure additional instances of the Apache + httpd server running independently alongside each other on the same + machine. These instances can have independent configurations, and + can potentially run as separate users if so configured.

+ +

This was done by making the httpd startup script aware of its own + name. This name is then used to find the environment file for the + server, and in turn, the server root of the server instance.

+ +

To create an additional instance called + httpd-additional, follow these steps:

+ +
    +
  • Create a symbolic link to the startup script for the additional + server: + +

    + ln -s /etc/rc.d/init.d/httpd /etc/rc.d/init.d/httpd-additional
    + chkconfig --add httpd-additional +

    + +
  • + +
  • Create an environment file for the server, using the + /etc/sysconfig/httpd file as a template: + +

    + # template from httpd
    + cp /etc/sysconfig/httpd /etc/sysconfig/httpd-additional +

    + +

    + # blank template
    + touch /etc/sysconfig/httpd-additional +

    + + Edit /etc/sysconfig/httpd-additional and pass the + server root of the new server instance within the + OPTIONS environment variable. + +

    + OPTIONS="-d /etc/httpd-additional -f conf/httpd-additional.conf" +

    + +
  • + +
  • Edit the server configuration file + /etc/httpd-additional/conf/httpd-additional.conf to + ensure the correct ports and paths are configured. +
  • + +
  • Start the server as follows: + +

    + service httpd-additional restart +

    + +
  • + +
  • Repeat this process as required for each server instance.
  • +
+ +
+
+

Available Languages:  en 

+
+ \ No newline at end of file diff --git a/docs/manual/platform/rpm.xml.meta b/docs/manual/platform/rpm.xml.meta new file mode 100644 index 0000000000..bf85489f9a --- /dev/null +++ b/docs/manual/platform/rpm.xml.meta @@ -0,0 +1,12 @@ + + + + + rpm + /platform/ + .. + + + en + + -- 2.50.1