summaryrefslogtreecommitdiff
path: root/docs/manual/platform/windows.html.en
diff options
context:
space:
mode:
Diffstat (limited to 'docs/manual/platform/windows.html.en')
-rw-r--r--docs/manual/platform/windows.html.en252
1 files changed, 28 insertions, 224 deletions
diff --git a/docs/manual/platform/windows.html.en b/docs/manual/platform/windows.html.en
index 3675ed09..af93757b 100644
--- a/docs/manual/platform/windows.html.en
+++ b/docs/manual/platform/windows.html.en
@@ -26,7 +26,7 @@
</div>
<p>This document explains how to install, configure and run
- Apache 2.3 under Microsoft Windows. If you have questions after
+ Apache 2.4 under Microsoft Windows. If you have questions after
reviewing the documentation (and any event and error logs), you
should consult the peer-supported
<a href="http://httpd.apache.org/userslist.html">users' mailing
@@ -40,8 +40,6 @@
</div>
<div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#req">Operating System Requirements</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#down">Downloading Apache for Windows</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#inst">Installing Apache for Windows</a></li>
-<li><img alt="" src="../images/down.gif" /> <a href="#advinst">Advanced Installation Topics</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#cust">Customizing Apache for Windows</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#winsvc">Running Apache as a Service</a></li>
<li><img alt="" src="../images/down.gif" /> <a href="#wincons">Running Apache as a Console Application</a></li>
@@ -53,9 +51,8 @@
<h2><a name="req" id="req">Operating System Requirements</a></h2>
- <p>The primary Windows platform for running Apache 2.3 is Windows
- 2000 or later. The binary installer only works with the x86 family
- of processors, such as Intel and AMD processors. Always obtain and
+ <p>The primary Windows platform for running Apache 2.4 is Windows
+ 2000 or later. Always obtain and
install the current service pack to avoid operating system bugs.</p>
<div class="note">Apache HTTP Server versions later than 2.2 will not run on any
@@ -65,170 +62,10 @@
<h2><a name="down" id="down">Downloading Apache for Windows</a></h2>
- <p>Information on the latest versions of Apache can be found on the
- web site of the Apache web server at
- <a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a>.
- There you will find the current release, as well as more recent alpha
- or beta test versions, and a list of HTTP and FTP mirrors from which
- you can download the Apache web server. Please use a mirror near to
- you for a fast and reliable download.</p>
-
- <p>For Windows installations you should download the version of
- Apache for Windows with the <code>.msi</code> extension. This is a
- single Microsoft Installer file, which contains a ready-to-run
- build of Apache. There is a separate <code>.zip</code> file,
- which contains only the source code, see the summary above.</p>
-
- <p>There is a choice between an *-openssl-*.msi flavor and
- a *-no_ssl.msi flavor. The *-openssl-*.msi flavor is distributed
- by the Apache Software Foundation under ECCN 5D002 pursuant to
- US Export Law license exception TSU. This law may or may not
- apply to your circumstance, please review the httpd README as
- well as the <a href="http://www.apache.org/licenses/exports/">ASF
- Export Classifications and Source Links</a> page. The project
- provides no further guidance to third parties in resolving the
- legal circumstances which apply in each circumstance.</p>
- </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
-<h2><a name="inst" id="inst">Installing Apache for Windows</a></h2>
-
-
- <p>You need Microsoft Installer 2.0 or above for the installation
- to work. For Windows NT 4.0 and 2000 refer to Microsoft's article
- <a href="http://support.microsoft.com/kb/292539/">KB 292539</a>.
- Windows XP and later do not require this update.</p>
-
- <p>Note that you cannot install two versions of Apache 2.3 on the
- same computer with the binary installer. You can, however, install
- a version of the 1.3 series <strong>and</strong> a version of the
- 2.3 series on the same computer without problems. If you need to
- have two different 2.3 versions on the same computer, you have to
- <a href="win_compiling.html">compile and install Apache from the
- source</a>.</p>
-
- <p>Run the Apache <code>.msi</code> file you downloaded above. The
- installation will ask you for these things:</p>
-
- <ol>
- <li><p><strong>Network Domain.</strong> Enter the DNS domain in which
- your server is or will be registered in. For example, if your
- server's full DNS name is <code>server.example.net</code>, you would
- type <code>example.net</code> here.</p></li>
-
- <li><p><strong>Server Name.</strong> Your server's full DNS name.
- From the example above, you would type <code>server.example.net</code>
- here.</p></li>
-
- <li><p><strong>Administrator's Email Address.</strong> Enter the
- server administrator's or webmaster's email address here. This
- address will be displayed along with error messages to the client
- by default.</p></li>
-
- <li><p><strong>For whom to install Apache</strong> Select <code>for
- All Users, on Port 80, as a Service - Recommended</code> if you'd
- like your new Apache to listen at port 80 for incoming traffic.
- It will run as a service (that is, Apache will run even if no one
- is logged in on the server at the moment) Select <code>only for
- the Current User, on Port 8080, when started Manually</code> if
- you'd like to install Apache for your personal experimenting or
- if you already have another WWW server running on port 80.</p></li>
-
- <li><p><strong>The installation type.</strong> Select <code>Typical</code>
- for everything except the source code and libraries for module
- development. With <code>Custom</code> you can specify what to
- install. A full install will require about 13 megabytes of free
- disk space. This does <em>not</em> include the size of your web
- site(s).</p></li>
-
- <li><p><strong>Where to install.</strong> The default path is
- <code>C:\Program Files\Apache Software Foundation</code>
- under which a directory called
- <code>Apache2.3</code> will be created by default.</p></li>
- </ol>
-
- <p>During the installation, Apache will configure the files in the
- <code>conf</code> subdirectory to reflect the chosen installation
- directory. However, if any of the configuration files in this
- directory already exist, they will not be overwritten. Instead, the
- new copy of the corresponding file will be left with the extension
- <code>.default</code>. So, for example, if <code>conf\httpd.conf</code>
- already exists, it will be renamed as <code>conf\httpd.conf.default</code>.
- After the installation you should manually check to see what new
- settings are in the <code>.default</code> file, and if necessary,
- update your existing configuration file.</p>
-
- <p>Also, if you already have a file called <code>htdocs\index.html</code>,
- it will not be overwritten (and no <code>index.html.default</code>
- will be installed either). This means it should be safe to install
- Apache over an existing installation, although you would have to
- stop the existing running server before doing the installation, and
- then start the new one after the installation is finished.</p>
-
- <p>After installing Apache, you must edit the configuration files
- in the <code>conf</code> subdirectory as required. These files
- will be configured during the installation so that Apache is ready
- to be run from the directory it was installed into, with the
- documents server from the subdirectory <code>htdocs</code>. There
- are lots of other options which you should set before you really
- start using Apache. However, to get started quickly, the files
- should work as installed.</p>
- </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
-<div class="section">
-<h2><a name="advinst" id="advinst">Advanced Installation Topics</a></h2>
-
-
- <p>One feature of the installer, "Build Headers and Libraries", can be
- ignored by most users, but should be installed if compiling third party
- modules. The "APR Iconv Code Pages" can similarly be omitted by most
- users, unless using <code class="module"><a href="../mod/mod_charset_lite.html">mod_charset_lite</a></code> or a third party
- module which relies on APR internationalization features.</p>
-
- <p>There are requests to ship a .zip file from time to time. There is
- no point in the ASF consuming additional storage, mirroring and bandwidth
- for this purpose, because the .msi installer allows the installation
- artifacts to all be unpacked using the <code>msiexec /a</code> network
- installation option. Using this command against any .msi will result
- in an exploded tree of all of the individual files and components.</p>
-
- <p>The installation options above can be customized by users familiar
- with msiexec.exe options and silent installation. The actual installer
- sources are available in the httpd/httpd/win32-msi/ tree of the httpd
- project subversion respository. For reference, some of the more common
- variables which may be modified are;</p>
-
- <ul>
- <li><code>AgreeToLicense</code> (toggle to "Yes")</li>
- <li><code>ALLUSERS</code> (choose between Null and "1")</li>
- <li><code>ApplicationUsers</code> (toggle to "OnlyCurrentUser")</li>
- <li><code>EXISTING_APACHE_SERVICE_PATH</code></li>
- <li><code>INSTALLDIR</code> (default "ProgramFilesFolder\Apache Software Foundation\Apache2.4\")</li>
- <li><code>INSTALLLEVEL</code> (default "100", refer to list below)</li>
- <li><code>RESOLVED_WINSOCK2</code> (toggle to "1")</li>
- <li><code>SERVERADMIN</code></li>
- <li><code>SERVERDOMAIN</code></li>
- <li><code>SERVERNAME</code></li>
- <li><code>SERVERPORT</code> (default "80")</li>
- <li><code>SERVERSSLPORT</code> (default "443")</li>
- <li><code>SERVICEINTERNALNAME</code> (default "Apache2.4", no spaces!)</li>
- <li><code>SERVICENAME</code> (default "Apache2.4", include spaces)</li>
- <li><code>SetupType</code> (default "Typical")</li>
- </ul>
-
- <p>The installation level of various features, which may be individually
- toggled, include;</p>
-
- <ul>
- <li>Apache (1, base Apache HTTP Server 2.4 feature)</li>
- <li>ApacheDocs (11, Apache Documentation)</li>
- <li>ApacheMonitoring (41, Apache Service Taskbar Icon)</li>
- <li>ApacheRuntime (1, Apache Runtime)</li>
- <li>BuildFiles (101, Build Headers and Libraries)</li>
- <li>Iconv (21, APR Iconv Code Pages)</li>
- <li>OpensslBin (31, OpenSSL Runtime)</li>
- <li>SslBin (41, Ssl Binaries)</li>
- </ul>
-
-
+ <p>The Apache HTTP Server Project itself does not provide binary releases of
+ software, only source code. If you cannot compile the Apache HTTP Server
+ yourself, you can obtain a binary package from numerous binary distributions
+ available on the Internet.</p>
</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="section">
<h2><a name="cust" id="cust">Customizing Apache for Windows</a></h2>
@@ -277,9 +114,7 @@
Windows filenames instead of Unix ones. However, because Apache
may interpret backslashes as an "escape character" sequence, you
should consistently use forward slashes in path names, not
- backslashes. Drive letters can be used; if omitted, the drive
- of the SystemRoot directive (or -d command line option) becomes
- the default.</p></li>
+ backslashes.</p></li>
<li><p>While filenames are generally case-insensitive on
Windows, URLs are still treated internally as case-sensitive
@@ -307,14 +142,14 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
validate all path names given. This means that each directory
which Apache evaluates, from the drive root up to the directory
leaf, must have read, list and traverse directory permissions.
- If Apache2.3 is installed at C:\Program Files, then the root
- directory, Program Files and Apache2.3 must all be visible
+ If Apache2.4 is installed at C:\Program Files, then the root
+ directory, Program Files and Apache2.4 must all be visible
to Apache.</p></li>
<li><p>Apache for Windows contains the ability to load modules at
runtime, without recompiling the server. If Apache is compiled
normally, it will install a number of optional modules in the
- <code>\Apache2.3\modules</code> directory. To activate these or
+ <code>\Apache2.4\modules</code> directory. To activate these or
other modules, the new <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code>
directive must be used. For example, to activate the status
module, use the following (in addition to the status-activating
@@ -360,13 +195,6 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
<h2><a name="winsvc" id="winsvc">Running Apache as a Service</a></h2>
- <p>You can install Apache as a service automatically during the
- installation. If you chose to install for all users, the
- installation will create an Apache service for you. If you specify
- to install for yourself only, you can manually register Apache as a
- service after the installation. You have to be a member of the
- Administrators group for the service installation to succeed.</p>
-
<p>Apache comes with a utility called the Apache Service Monitor.
With it you can see and manage the state of all installed Apache
services on any machine on your network. To be able to manage an
@@ -384,7 +212,8 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
<p>If you need to specify the name of the service you want to
install, use the following command. You have to do this if you
have several different service installations of Apache on your
- computer.</p>
+ computer. If you specify a name during the install, you have to
+ also specify it during any other -k operation.</p>
<div class="example"><p><code>
httpd.exe -k install -n "MyServiceName"
@@ -398,7 +227,7 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
</code></p></div>
<p>If you use the first command without any special parameters except
- <code>-k install</code>, the service will be called <code>Apache2.3</code>
+ <code>-k install</code>, the service will be called <code>Apache2.4</code>
and the configuration will be assumed to be <code>conf\httpd.conf</code>.
</p>
@@ -416,8 +245,8 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
<p>Normal starting, restarting and shutting down of an Apache
service is usually done via the Apache Service Monitor, by using
- commands like <code>NET START Apache2.3</code> and <code>NET STOP
- Apache2.3</code> or via normal Windows service management. Before
+ commands like <code>NET START Apache2.4</code> and <code>NET STOP
+ Apache2.4</code> or via normal Windows service management. Before
starting Apache as a service by any means, you should test the
service's configuration file by using:</p>
@@ -429,27 +258,27 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
too. To start an installed Apache service you'll use this:</p>
<div class="example"><p><code>
- httpd.exe -k start
+ httpd.exe -k start -n "MyServiceName"
</code></p></div>
<p>To stop an Apache service via the command line switches, use
this:</p>
<div class="example"><p><code>
- httpd.exe -k stop
+ httpd.exe -k stop -n "MyServiceName"
</code></p></div>
<p>or</p>
<div class="example"><p><code>
- httpd.exe -k shutdown
+ httpd.exe -k shutdown -n "MyServiceName"
</code></p></div>
<p>You can also restart a running service and force it to reread
its configuration file by using:</p>
<div class="example"><p><code>
- httpd.exe -k restart
+ httpd.exe -k restart -n "MyServiceName"
</code></p></div>
<p>By default, all Apache services are registered to run as the
@@ -495,7 +324,7 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
</ol>
<div class="note">It is usually a good practice to grant the user the Apache
- service runs as read and execute (RX) access to the whole Apache2.3
+ service runs as read and execute (RX) access to the whole Apache2.4
directory, except the <code>logs</code> subdirectory, where the
user has to have at least change (RWXD) rights.</div>
@@ -518,7 +347,7 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
Windows Control Panel, you may get the following message:</p>
<div class="example"><p><code>
- Could not start the Apache2.3 service on \\COMPUTER <br />
+ Could not start the Apache2.4 service on \\COMPUTER <br />
Error 1067; The process terminated unexpectedly.
</code></p></div>
@@ -552,7 +381,7 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
<p>You can also run Apache via the shortcut Start Apache in Console
placed to <code>Start Menu --&gt; Programs --&gt; Apache HTTP Server
- 2.3.xx --&gt; Control Apache Server</code> during the installation.
+ 2.4.xx --&gt; Control Apache Server</code> during the installation.
This will open a console window and start Apache inside it. If you
don't have Apache installed as a service, the window will remain
visible until you stop Apache by pressing Control-C in the console
@@ -598,12 +427,13 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
Programs. Change to the folder to which you installed Apache, type
the command <code>httpd.exe</code>, and read the error message. Then
change to the logs folder, and review the <code>error.log</code>
- file for configuration mistakes. If you accepted the defaults when
- you installed Apache, the commands would be:</p>
+ file for configuration mistakes. Assuming httpd was installed into
+ <code>C:\Program Files\Apache Software Foundation\Apache2.4\</code>,
+ you can do the following:</p>
<div class="example"><p><code>
c: <br />
- cd "\Program Files\Apache Software Foundation\Apache2.3\bin" <br />
+ cd "\Program Files\Apache Software Foundation\Apache2.4\bin" <br />
httpd.exe
</code></p></div>
@@ -676,32 +506,6 @@ RewriteRule (.*) ${lowercase:$1} [R,L]
<code>HTTPD_ROOT</code>.</li>
</ol>
- <p>During the installation, a version-specific registry key is
- created in the Windows registry. The location of this key depends
- on the type of the installation. If you chose to install Apache
- for all users, the key is located under the
- <code>HKEY_LOCAL_MACHINE</code> hive, like this (the version
- numbers will of course vary between different versions of Apache:
- </p>
-
- <div class="example"><p><code>
- HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Apache\2.43
- </code></p></div>
-
- <p>Correspondingly, if you chose to install Apache for the current
- user only, the key is located under the <code>HKEY_CURRENT_USER</code>
- hive, the contents of which are dependent of the user currently
- logged on:</p>
-
- <div class="example"><p><code>
- HKEY_CURRENT_USER\SOFTWARE\Apache Software Foundation\Apache\2.43
- </code></p></div>
-
- <p>This key is compiled into the server and can enable you to test
- new versions without affecting the current version. Of course, you
- must take care not to install the new version in the same
- directory as another version.</p>
-
<p>If you did not do a binary install, Apache will in some
scenarios complain about the missing registry key. This warning can
be ignored if the server was otherwise able to find its
@@ -835,7 +639,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/platform/windows.htm
}
})(window, document);
//--><!]]></script></div><div id="footer">
-<p class="apache">Copyright 2012 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
+<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
prettyPrint();