Englisth DOC: http://httpd.apache.org/docs/2.0/platform/windows.html
Because of the time, the article has not been fully translated. It should be enough for convenient configuration. It will be completed in another day. :) I. OS requirements mainly run the windwos platform of Apache 2.x, which is the Win NT series. The binary installer is only applicable to x86 series Processors, such as AMD and Intel. All operating systems must have TCP/IP installed and can work. 2. Download Apache installation package http://httpd.apache.org/download.cgi.3. install Apache on Windows. Note: you cannot install Apache 2.0 in two binary formats on the same computer. However, if you need two Apache packages on your PC, you can install an installation package in the binary format of 1.x and 2.x. If you want to install two different 2.0 Apache on the same PC, you can use the source code to compile and install it on your PC. Run the Apache. MSI installation package you just obtained. You will perform the following steps during installation:
1,Network domain
Enter the DNS domain in which your server is or will be registered in. For example, if your server's full DNS name isserver.mydomain.net
, You wocould typemydomain.net
Here
2,Server Name
Your server's full DNS name. From the example above, you wocould typeserver.mydomain.net
Here.
3,Administrator's email address
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
4,For whom to install Apache
Selectfor All Users, on Port 80, as a Service - Recommended
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) Selectonly for the Current User, on Port 8080, when started Manually
If you 'd like to install Apache for your personal experimenting or if you already have another WWW server running on port 80.
5,The installation type
SelectTypical
For everything development t the source code and libraries for module development.Custom
You can specify what to install. A full install will require about 13 megabytes of free disk space. This doesNotInclude the size of your web site (s ).
6,Where to install
The default path isC:/Program Files/Apache Group
Under which a directory calledApache2
Will be created by default.
During the installation, Apache will configure the files inconf
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.default
. So, for example, ifconf/httpd.conf
Already exists, it will be renamedconf/httpd.conf.default
. After the installation you shoshould manually check to see what new settings are in.default
File, and if necessary, update your existing configuration file.
Also, if you already have a file calledhtdocs/index.html
, It will not be overwritten (and noindex.html.default
Will be installed either ). this means it shoshould be safe to install Apache over an existing installation, although you wowould have to stop the existing running server before doing the installation, and then start the new one after the installation is finished.
After installing Apache, you must edit the configuration files inconf
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 specified ents server from the subdirectoryhtdocs
. There are lots of other options which you shoshould set before you really start using Apache. However, to get started quickly, the files shoshould work as installed.
4. To install Apache and PhP5 in the Apache module, add the following two lines to the Apache Httpd. confSet the PHP module of Apache 2.0 in the configuration file:
Example 6-6. php module in Apache 2.0
# Use these two lines for PHP 4: loadmodule php4_module "C:/PHP/php4apache2. dll" # Do not forget to copy php4apache2. dll from the SAPI directory! Addtype application/X-httpd-PHP. PHP # use these two lines for PHP 5: loadmodule php5_module "C:/PHP/php5apache2. DLL "addtype application/X-httpd-PHP. PHP # configure PHP. INI path phpinidir "C:/PHP" |
|
See specific: http://cn2.php.net/manual/zh/install.windows.php