Apache Installation configuration under Windows

Source: Internet
Author: User

Apache Installation configuration under Windowsreprinted from: http://blog.sina.com.cn/s/blog_536f16b00100cfat.html

1 Apache the Download

Apache is an open source Web server that can download the latest version on http://httpd.apache.org/download.cgi or http://www.apache.com/en_apache/index.php.

since Apache will be installed under Windows, it will beconvenient to download "Win32 Binary (MSI Installer)", such as: "apache_2.2.11- Win32-x86-no_ssl.msi ".

As shown in the following:

2 Apache the installation

After you download the above file, you can double-click to install it. The installation process is simple, as long as you follow the Installation wizard step by step. Note Set the server to open to any user, and set the server's listening port to "80".

Default installation path:C:\Program files\apache software foundation\apache2.2.

After the server is installed, it will run automatically, and after running, it is displayed in the system tray. You can use the icon in the tray to start and stop the server and other management operations.

After starting the Apache server, open ie or other Web browser, enter "http://localhost/" or "http://127.0.0.1/", if the following page appears, it means Apache installed successfully.

3 Apache configuration of the server

After successful installation, you also need to simply configure the Apache server so that you can easily locate your PHP files when you use them .

Usually the default Access file path is: "C:\Program Files\apache software Foundation\apache2.2\htdocs", the user only need to copy their own HTML files to the directory, can access the file.

Of course, the user can put the files to be accessed to other folders, at this time to modify the Apache settings. Open thehttpd.conf file in the "C:\Program Files\apache software foundation\apache2.2\conf" Directory and find the "DocumentRoot" line , such as:

Modify thepath of "DocumentRoot" to the access path you want to set, and then save the file.

here are two points to note:1,httpd.conf is a text file, can be opened with Notepad. 2. Thepath in "DocumentRoot" uses a slash "/" instead of "\".

Apache Default Connection file name is "index.html", if you want to add additional default connection filename, find the "directoryindex" keyword in the httpd.conf file.

The original settings are as follows:

DirectoryIndex index.html Index.html.var

If you want to support default.php, modify it to the following format:

DirectoryIndex default.php index.html Index.html.var

Apache Installation configuration under Windows

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.