Access to testmysql.php file under localhost file not Found

Source: Internet
Author: User

However, the access localhost:8081/index.php did not report the error, the page displayed success, and did not show Wamp's home page

Error reason:Apache and PHP are not associated well, modify the Apache httpd.conf file, bind php a bit .

Open the httpd.conf file (F:\wamp\bin\apache\apache2.4.9\conf\httpd.conf), where you want to modify it:
1. Search DocumentRoot Find the previous no #, after the change to: DocumentRoot "d:/web/www", this www is your future all the site code file directory and access to the directory, specifically please set yourself.
2. Search <directory found similar to: <directory "d:/web/www" ></Directory> this pair of labels, added or modified as "d:/web/www" at the label's properties, note that This path is consistent with the path above 1.
Restart Apache again, it should be.

Access to testmysql.php file under localhost file not Found

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.