Configuration notes and PhP5 for Apache 2.x on Windows

Source: Internet
Author: User

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.netHere

2,Server Name

Your server's full DNS name. From the example above, you wocould typeserver.mydomain.netHere.

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 - RecommendedIf 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 ManuallyIf 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

SelectTypicalFor everything development t the source code and libraries for module development.CustomYou 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 GroupUnder which a directory calledApache2Will be created by default.

During the installation, Apache will configure the files inconfSubdirectory 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.confAlready exists, it will be renamedconf/httpd.conf.default. After the installation you shoshould manually check to see what new settings are in.defaultFile, 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.defaultWill 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 inconfSubdirectory 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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.