Windows installation httpd + mysql + phpphp display source code

Source: Internet
Author: User
After httpd + mysql + phpphp is installed in Windows, the source code is displayed. after httpd + mysql + php is installed in Windows, I copy a test php document to the apache Directory D: \ Program Files (x86) under \ Apache Group \ Apache2 \ htdocs, this should be the default directory. enter localhost/1. php displays the source code, but cannot be parsed normally. How can this problem be solved 〉? > 〉〉?


Reply to discussion (solution)

The PHP file is not attached to PHP for explanation. Search.

The PHP file is not attached to PHP for explanation. Search.

Google cannot find the answer. what should I do? How to Let php parse it

After the installation is complete, restart Apache once, if not. During the php installation process, the modified apache configuration file does not take effect.
Similarly, any php. ini configuration has been modified. the configuration in httpd. conf takes effect only after Apache is restarted.

Create a File> phpinfo. php

Echo phpinfo ();
?>
Try

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.