PHP + Apache + Windows Settings

Source: Internet
Author: User

This article is original. If you need to reprint it, please indicate the author and the source. Thank you!

1. Find <ifmodule mime_module> In the httpd. conf file of Apache and add the following two lines.
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP-source. PHPs

Note: There are spaces before. php and. PHPs.

2. Locate the loadmodule section and add the following line
Loadmodule php5_module D:/tools/Language/php5.2/php5apache2_2.dll

3. You can modify the Apache web root directory. You need to modify it in two places. If you want to change it to D:/root, modify the following two lines.

DocumentRoot "C:/program files/Apache Group/apache2/htdocs"
Change
DocumentRoot "D:/root"

<Directory "C:/program files/Apache Group/apache2/htdocs">
Change
<Directory "D:/root">

The best Google Android technology community in China (eoeandroid). Welcome to visit!

Galaxy series original tutorial released

Java Web development quick learning guide published, please order

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.