<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.4 $ ($Date: 2000/04/04 17:06:14 $)
+ $Revision: 1.5 $ ($Date: 2001/02/28 03:35:59 $)
</P>
<P>
The latest version of this FAQ is always available from the main
<LI><A NAME="what">
<STRONG>What is Apache?</STRONG>
</A>
- <P>The Apache httpd server
+ <P>The Apache httpd server</P>
+
<UL>
<LI>is a powerful, flexible, HTTP/1.1 compliant web server
<LI>implements the latest protocols, including HTTP/1.1 (RFC2616)
</DL>
</UL>
- </P>
<HR>
</LI>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.5 $ ($Date: 2000/11/13 02:03:36 $)
+ $Revision: 1.6 $ ($Date: 2001/02/28 03:35:59 $)
</P>
<P>
The latest version of this FAQ is always available from the main
But modern operating systems shouldn't cause any trouble
at all.
</P>
- <P>
- Users of Apache 1.2.x should upgrade to a current version of Apache 1.3
- (see <A HREF="../new_features_1_3.html#misc">year-2000 improvements in
- Apache 1.3</A> for details).
- </P>
<p>
The Apache HTTP Server project is an open-source software product of
the Apache Software Foundation. The project and the Foundation
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.7 $ ($Date: 2000/11/13 02:03:36 $)
+ $Revision: 1.8 $ ($Date: 2001/02/28 03:35:59 $)
</P>
<P>
The latest version of this FAQ is always available from the main
fills with "<SAMP>fcntl: F_SETLKW: No record locks
available</SAMP>" or similar messages</A>
</LI>
- <LI><A HREF="#aixccbug">Why am I getting "<SAMP>Expected </Directory>
+ <LI><A HREF="#aixccbug">Why am I getting "<SAMP>Expected </Directory>
but saw </Directory></SAMP>" when I try to start Apache?</A>
</LI>
<LI><A HREF="#redhat">I'm using RedHat Linux and I have problems with httpd
</A>
<P>
Your
- <A HREF="../mod/core.html#group"><SAMP>Group</SAMP></A>
+ <A HREF="../mod/mpm_common.html#group"><SAMP>Group</SAMP></A>
directive (probably in <SAMP>conf/httpd.conf</SAMP>) needs to name a
group that actually exists in the <SAMP>/etc/group</SAMP> file (or
your system's equivalent). This problem is also frequently seen when
<A HREF="../mod/core.html#serverroot">ServerRoot</A>
directory. As of Apache version 1.3, the location can be set <EM>via</EM>
the
- <A HREF="../mod/core.html#coredumpdirectory"
+ <A HREF="../mod/mpm_common.html#coredumpdirectory"
><SAMP>CoreDumpDirectory</SAMP></A>
directive to a different directory. Make sure that this directory is
writable by the user the server runs as (as opposed to the user the server
<P>
The directory should not be generally writable (<EM>e.g.</EM>, don't use
<SAMP>/var/tmp</SAMP>).
- See the <A HREF="../mod/core.html#lockfile"><SAMP>LockFile</SAMP></A>
+ See the <A HREF="../mod/mpm_common.html#lockfile"><SAMP>LockFile</SAMP></A>
documentation for more information.
</P>
<HR>
</LI>
<LI><A NAME="aixccbug"><STRONG>Why am I getting "<SAMP>Expected
- </Directory> but saw </Directory></SAMP>" when
+ </Directory> but saw </Directory></SAMP>" when
I try to start Apache?</STRONG></A>
<P>
This is a known problem with certain versions of the AIX C compiler.
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.6 $ ($Date: 2000/08/04 11:44:17 $)
+ $Revision: 1.7 $ ($Date: 2001/02/28 03:35:59 $)
</P>
<P>
The latest version of this FAQ is always available from the main
Each log file requires a file descriptor, which means that if you are
using separate access and error logs for each virtual host, each
virtual host needs two file descriptors. Each
- <A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
+ <A HREF="../mod/mpm_common.html#listen"><SAMP>Listen</SAMP></A>
directive also needs a file descriptor.
</P>
<P>
</P>
<OL>
<LI>Reduce the number of
- <A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
+ <A HREF="../mod/mpm_common.html#listen"><SAMP>Listen</SAMP></A>
directives. If there are no other servers running on the machine
on the same port then you normally don't
need any Listen directives at all. By default Apache listens to
(see your system's documentation on the <CODE>limit</CODE> or
<CODE>ulimit</CODE> commands). For some systems, information on
how to do this is available in the
- <A HREF="perf.html">performance hints</A> page. There is a specific
+ <A HREF="perf-tuning.html">performance hints</A> page. There is a specific
note for <A HREF="#freebsd-setsize">FreeBSD</A> below.
<P>
For Windows 95, try modifying your <SAMP>C:\CONFIG.SYS</SAMP> file to
<LI>"Don't do that" - try to run with fewer virtual hosts
</LI>
<LI>Spread your operation across multiple server processes (using
- <A HREF="../mod/core.html#listen"><SAMP>Listen</SAMP></A>
+ <A HREF="../mod/mpm_common.html#listen"><SAMP>Listen</SAMP></A>
for example, but see the first point) and/or ports.
</LI>
</OL>
the directives are not necessarily those of the running server; they
are extracted from the configuration files themselves at the time of
the request. If the files have been changed since the server was last
- reloaded, the display will will not match the values actively in use.
+ reloaded, the display will not match the values actively in use.
If the files and the path to the files are not readable by the user as
which the server is running (see the
- <A HREF="../mod/core.html#user"><SAMP>User</SAMP></A>
+ <A HREF="../mod/mpm_common.html#user"><SAMP>User</SAMP></A>
directive), then <SAMP>mod_info</SAMP> cannot read them in order to
list their values. An entry <EM>will</EM> be made in the error log in
this event, however.
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.8 $ ($Date: 2001/02/10 23:33:36 $)
+ $Revision: 1.9 $ ($Date: 2001/02/28 03:36:00 $)
</P>
<P>
The latest version of this FAQ is always available from the main
runs fine from the command line, remember that the environment and
permissions may be different when running under the web server. The
CGI can only access resources allowed for the <A
- HREF="../mod/core.html#user"><CODE>User</CODE></A> and
- <A HREF="../mod/core.html#group"><CODE>Group</CODE></A> specified in
+ HREF="../mod/mpm_common.html#user"><CODE>User</CODE></A> and
+ <A HREF="../mod/mpm_common.html#group"><CODE>Group</CODE></A> specified in
your Apache configuration. In addition, the environment will not be
the same as the one provided on the command line, but it can be
adjusted using the directives provided by <A
Two alternatives are:
<OL>
<LI>Place the cgi-bin directory next to the public_html directory:
- <P>
+
<DL>
<DD><CODE>ScriptAliasMatch ^/~([^/]*)/cgi-bin/(.*) /home/$1/cgi-bin/$2</CODE>
</DD>
</DL>
- </P>
+
</LI>
<LI>Place the cgi-bin directory underneath the public_html directory:
- <P></p>
<DL>
<DD><CODE><Directory /home/*/public_html/cgi-bin><BR>
Options ExecCGI<BR>
</Directory></CODE>
</DD>
</DL>
- <p></P>
</LI>
</OL>
<HR>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.4 $ ($Date: 2000/09/12 15:16:45 $)
+ $Revision: 1.5 $ ($Date: 2001/02/28 03:36:00 $)
</P>
<P>
The latest version of this FAQ is always available from the main
</P>
<P>
To eliminate this problem you should
+ </P>
+
<OL>
<LI>Always use the trailing slash when requesting directories;
<LI>Change the <CODE>ServerName</CODE> to match the name you are
using in the URL; and/or
<LI>Set <CODE>UseCanonicalName off</CODE>.
</OL>
- </P>
<HR>
</LI>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.8 $ ($Date: 2001/01/28 00:19:28 $)
+ $Revision: 1.9 $ ($Date: 2001/02/28 03:36:00 $)
</P>
<P>
The latest version of this FAQ is always available from the main
<STRONG>How can I rotate my log files?</STRONG>
</A>
<P>The simple answer: by piping the transfer log into an appropriate
- log file rotation utility.</P> <P>The longer answer: In the
+ log file rotation utility.</P>
+
+ <P>The longer answer: In the
src/support/ directory, you will find a utility called <a
href="../programs/rotatelogs.html">rotatelogs</a> which can be used
- like this:<PRE> TransferLog "|/path/to/rotatelogs
- /path/to/logs/access_log 86400" </PRE> to enable daily rotation of
- the log files.<BR> A more sophisticated solution of a logfile
+ like this:</p>
+
+ <PRE>TransferLog "|/path/to/rotatelogs
+ /path/to/logs/access_log 86400"</PRE>
+
+ <p>to enable daily rotation of
+ the log files.<BR>
+ A more sophisticated solution of a logfile
rotation utility is available under the name <CODE>cronolog</CODE>
from Andrew Ford's site at <A
HREF="http://www.ford-mason.co.uk/resources/cronolog/"
automatically create logfile subdirectories based on time and date,
and can have a constant symlink point to the rotating logfiles. (As
of version 1.6.1, cronolog is available under the <A
- HREF="../LICENSE">Apache License</A>). Use it like this:<PRE>
- CustomLog "|/path/to/cronolog
+ HREF="../LICENSE">Apache License</A>). Use it like this:</p>
+
+ <PRE>CustomLog "|/path/to/cronolog
--symlink=/usr/local/apache/logs/access_log
- /usr/local/apache/logs/%Y/%m/access_log" combined </PRE></P>
+ /usr/local/apache/logs/%Y/%m/access_log" combined </PRE>
+
<HR>
</LI>
<LI><A NAME="conditional-logging">
<A HREF="../mod/mod_setenvif.html#SetEnvIf"><CODE>SetEnvIf</CODE></A>
directive to set an environment variable for certain requests and
then using the conditional
- <A HREF="../mod/mod_log_config.html#customlog-conditional"><CODE>CustomLog</CODE></A>
+ <A HREF="../mod/mod_log_config.html#customlogconditional"><CODE>CustomLog</CODE></A>
syntax to prevent logging when the environment variable is set.
</P>
<HR>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Server Frequently Asked Questions</H1>
<P>
- $Revision: 1.146 $ ($Date: 2000/09/12 15:16:46 $)
+ $Revision: 1.147 $ ($Date: 2001/02/28 03:36:00 $)
</P>
<P>
The latest version of this FAQ is always available from the main
<!-- - permission denied -->
<!-- - address already in use -->
<!-- - mod_auth & passwd lines "user:pw:.*" - ++1st colon onward is -->
-<!-- treated as pw, not just ++1st to --2nd. -->
+<!-- treated as pw, not just ++1st to \-\-2nd. -->
<!-- - SSL: -->
<!-- - Can I use Apache-SSL for free in Canada? -->
<!-- - Why can't I use Apache-SSL in the U.S.? -->