Index: apache-troubleshooting.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/apache-troubleshooting.xml,v retrieving revision 1.5 diff -u -b -B -r1.5 apache-troubleshooting.xml --- apache-troubleshooting.xml 11 Oct 2007 20:20:53 -0000 1.5 +++ apache-troubleshooting.xml 28 Nov 2007 10:10:16 -0000 @@ -14,6 +14,9 @@ Bryan Østergaard + + Benedikt Böhm + This document covers a number of ways to figure out how to fix your Apache @@ -24,8 +27,8 @@ -1.7 -2007-10-11 +1.8 +2007-11-28 Checking the Logs @@ -47,7 +50,7 @@
-access_log +access_log and ssl_access_log
@@ -103,7 +106,7 @@
 
 
-error_log +error_log and ssl_error_log
@@ -203,60 +206,11 @@
 

-There are several options you can add to APACHE2_OPTS that are -specified in the default configuration: +There are several options you can add to APACHE2_OPTS that are specified +in the default configuration and well explained in +/etc/conf.d/apache2.

- - - - - - - USERDIR - - Enables user public_html folders to be accessible by http://server/~username - - - - INFO - - Enables the mod_info module, which displays information about the running - server's configuration at http://localhost/server-info - - - - PROXY - Enables mod_proxy - - - SSL - - Enables SSL/HTTPS support. (Apache must have been compiled with the ssl - USE-flag) - - - - DAV - Enables mod_dav, the built-in WebDav module - - - DAV_FS - Enables mod_dav_fs, support for file systems in WebDav - - - LDAP - - Enables mod_ldap, which allows Apache to connect to LDAP resources. - (Requires the ldap USE-flag to be enabled) - - - - AUTH_LDAP - Enables authentication to resources via a LDAP resource. - -
OptionResult
-

Documentation for all of the built-in modules can be found in the Apache 2.0 documentation. Index: apache-upgrading.xml =================================================================== RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/apache-upgrading.xml,v retrieving revision 1.8 diff -u -b -B -r1.8 apache-upgrading.xml --- apache-upgrading.xml 30 Jul 2007 18:06:35 -0000 1.8 +++ apache-upgrading.xml 28 Nov 2007 10:10:17 -0000 @@ -8,6 +8,9 @@ Michael Stewart + + Benedikt Böhm + This document describes the procedure end-users should follow to safely @@ -18,15 +21,84 @@ -2.5 -2007-07-30 +2.6 +2007-11-28 - -Introduction + +Upgrading from <2.2.6-r4

+The Apache ebuilds have used /etc/apache2/apache2-builtin-mods for +a very lone time to select the built-in modules during compile time. This +behaviour has several disadvantages though: +

+ +
    +
  • + Selecting built-in modules during the initial merge is not possible. +
  • +
  • + Portage does not know which modules have been installed. This is especially + annoying for binary packages. +
  • +
  • + Portage will try to overwrite apache2-builtin-mods on every + upgrade. +
  • +
+ +

+To rectify this situation /etc/apache2/apache2-builtin-mods has +been deprecated and migrated to the new APACHE2_MODULES +USE_EXPAND variable. To convert your custom module selection to the new +format use the following command: +

+ +
+$ echo APACHE2_MODULES=\"$(sed '/^mod_/s/mod_\(.*\)\s\+\(shared\|static\)/\1/;t n;d;:n' /etc/apache2/apache2-builtin-mods)\" >> /etc/make.conf
+$ rm /etc/apache2/apache2-builtin-mods
+
+(You can now safely upgrade apache:)
+$ emerge -uvp '>=www-servers/apache-2.2.6-r4'
+
+ +

+Additionally to the new APACHE2_MODULES the local USE flags have +been cleaned up: +

+ +
    +
  • + All MPM USE flags have been moved to the APACHE2_MPMS + USE_EXPAND variable +
  • +
  • + no-suexec is now suexec +
  • +
  • + static-modules is now static +
  • +
+ +

+For a detailed description of old and corresponding new USE flags see +below. +

+ + +
+ + + +Upgrading from <2.0.52-r3 + +
+Introduction + + +

The state of Apache and its modules in Gentoo was becoming dismal. There were a number of problems that caused support problems and made maintaining everything the Apache herd is responsible for difficult: @@ -57,12 +129,6 @@

-The solution? The Apache herd was expanded, adding several new members, who -worked together to create an eclass, update all the modules and fix a number -of bugs. -

- -

This document details how to upgrade without breaking your system. If you are a developer or would like to know what we changed, or how ebuilds need to be modified to take advantage of our eclass, then check the

-
- - -Upgrade Instructions
+Upgrading

-We have made many changes to how Apache works within Gentoo. Every package +There have been many changes to how Apache works within Gentoo. Every package that is directly related to Apache needs to be updated and some things that worked previously will no longer work.

@@ -200,8 +263,8 @@
- -Apache supported USE-flags + +Supported USE-flags in <2.2.6-r4
@@ -215,98 +277,90 @@

- + - - - + + apache2 - depend.apache eclass (all modules) Should always be set if using the Apache-2.0 line, should not be set if using the Apache-1.3 line. The eclass uses this to determine what version of apache to depend on. - - + + + debug + + Enables a hook that allows external modules to plug in and do something + after a child crashed. There are already two modules, + mod_whatkilledus and mod_backtrace that make use of this + hook. + + + + doc + + Install the Apache manual and configuration. + + + + ldap + + Install mod_ldap and mod_auth_ldap/mod_authnz_ldap. + + + + ssl + + Installs mod_ssl. + + + + mpm-itk + Builds the itk MPM + + mpm-leader - apache-2* Builds the leader MPM - - - mpm-metux - apache-2* - Builds the metux MPM - - + + mpm-peruser - apache-2* Builds the peruser MPM - - + + mpm-prefork - apache-2* Builds the prefork MPM - - + + mpm-threadpool - apache-2* Builds the threadpool MPM - - + + mpm-worker - apache-2* Builds the worker MPM - - - no-suexec - apache - - Disables building of the suexec module (for those that don't want a - potentially unsafe suid binary on their system) - - - + + static-modules - apache Statically links the modules into the apache binary, so that a LoadModule isn't required for loading the base modules into Apache. - - - lingerd - apache-1* - - Adds support for lingerd - - - - no-htdocs - gentoo-webroot-default - - Disables installing the default webroot into - /var/www/localhost so that custom files there are not - overwritten. Instead the webroot is installed into - /usr/share/doc/gentoo-webroot-default-*/webroot/. - - +
USE-flagPackages Description
@@ -320,4 +374,523 @@
+ +Supported USE-flags in 2.2.6-r4 and above +
+ + +

+With the advent of APACHE2_MODULES a general cleanup of USE flags +was necessary. The following table lists supported USE flags for +apache-2.2.6-r4 and above as well as their equivalent in previous +versions. +

+ + + + + + + + + debug + debug + + Enables a hook that allows external modules to plug in and do something + after a child crashed. There are already two modules, + mod_whatkilledus and mod_backtrace that make use of this + hook. + + + + doc + doc + + Install the Apache manual and configuration. + + + + ldap + ldap + + Install mod_ldap and mod_authnz_ldap. + + + + ssl + ssl + + Installs mod_ssl. + + + + static + static-modules + + Statically links the modules into the apache binary, so that a + LoadModule isn't required for loading the base modules into + Apache. + + + + suexec + no-suexec + + Install mod_suexec and the suexec helper binary. + + + + threads + threads + + Selects the default MPM if none is set in APACHE2_MPMS + + +
USE-flagOld USE-flagDescription
+ +

+The following table lists supported APACHE2_MPMS as of +apache-2.2.6-r4 and their corresponding previous local USE flag. +

+ + + + + + + + + event + mpm-event + + An experimental variant of the standard worker MPM + + + + itk + mpm-itk + + Allows to run each virtual host under a separate uid and gid + + + + peruser + mpm-peruser + + Peruser is a working implementation of the perchild MPM allowing to run + each apache child process as its own user and group, each handling its + own set of virtual hosts + + + + prefork + mpm-prefork + + Implements a non-threaded, pre-forking web server + + + + worker + mpm-worker + + Multi-Processing Module implementing a hybrid multi-threaded + multi-process web server + + +
FlagOld USE-flagDescription
+ +

+The following table lists supported APACHE2_MODULES as of +apache-2.2.6-r4. +

+ + + + + + + + actions + + Provides for executing CGI scripts based on media type or request method + + + + alias + + Provides for mapping different parts of the host filesystem in the + document tree and for URL redirection + + + + asis + + Sends files that contain their own HTTP headers + + + + auth_basic + + Basic authentication + + + + auth_digest + + User authentication using MD5 Digest Authentication + + + + authn_alias + + Provides the ability to create extended authentication providers based on + actual providers + + + + authn_anon + + Allows "anonymous" user access to authenticated areas + + + + authn_dbd + + User authentication using an SQL database + + + + authn_dbm + + User authentication using DBM files + + + + authn_default + + Authentication fallback module + + + + authn_file + + User authentication using text files + + + + authz_dbm + + Group authorization using DBM files + + + + authz_default + + Authorization fallback module + + + + authz_groupfile + + Group authorization using plaintext files + + + + authz_host + + Group authorizations based on host (name or IP address) + + + + authz_owner + + Authorization based on file ownership + + + + authz_user + + User Authorization + + + + autoindex + + Generates directory indexes, automatically, similar to the Unix ls + command + + + + cache + + Content cache keyed to URIs + + + + cern_meta + + CERN httpd metafile semantics + + + + charset_lite + + Specify character set translation or recoding + + + + dav + + Distributed Authoring and Versioning (WebDAV) functionality + + + + dav_fs + + filesystem provider for mod_dav + + + + dav_lock + + generic locking module for mod_dav + + + + dbd + + Manages SQL database connections + + + + deflate + + Compress content before it is delivered to the client + + + + dir + + Provides for "trailing slash" redirects and serving directory index files + + + + disk_cache + + Content cache storage manager keyed to URIs + + + + dumpio + + Dumps all I/O to error log as desired + + + + env + + Modifies the environment which is passed to CGI scripts and SSI pages + + + + expires + + Generation of Expires and Cache-Control HTTP headers according to + user-specified criteria + + + + ext_filter + + Pass the response body through an external program before delivery to the + client + + + + file_cache + + Caches a static list of files in memory + + + + filter + + Context-sensitive smart filter configuration module + + + + headers + + Customization of HTTP request and response headers + + + + ident + + RFC 1413 ident lookups + + + + imagemap + + Server-side imagemap processing + + + + include + + Server-parsed html documents (Server Side Includes) + + + + info + + Provides a comprehensive overview of the server configuration + + + + log_config + + Logging of the requests made to the server + + + + log_forensic + + Forensic Logging of the requests made to the server + + + + logio + + Logging of input and output bytes per request + + + + mem_cache + + Content cache keyed to URIs + + + + mime + + Associates the requested filename's extensions with the file's behavior + (handlers and filters) and content (mime-type, language, character set + and encoding) + + + + mime_magic + + Determines the MIME type of a file by looking at a few bytes of its + contents + + + + negotiation + + Provides for content negotiation + + + + proxy + + HTTP/1.1 proxy/gateway server + + + + proxy_ajp + + AJP support module for mod_proxy + + + + proxy_balancer + + mod_proxy extension for load balancing + + + + proxy_connect + + mod_proxy extension for CONNECT request handling + + + + proxy_ftp + + FTP support module for mod_proxy + + + + proxy_http + + HTTP support module for mod_proxy + + + + rewrite + + Provides a rule-based rewriting engine to rewrite requested URLs on the + fly + + + + setenvif + + Allows the setting of environment variables based on characteristics of + the request + + + + speling + + Attempts to correct mistaken URLs that users might have entered by + ignoring capitalization and by allowing up to one misspelling + + + + status + + Provides information on server activity and performance + + + + unique_id + + Provides an environment variable with a unique identifier for each + request + + + + userdir + + User-specific directories + + + + usertrack + + Clickstream logging of user activity on a site + + + + version + + Version dependent configuration + + + + vhost_alias + + Provides for dynamically configured mass virtual hosting + + +
FlagDescription
+ + +
+
+