Php problems wampserver cannot be accessed through LAN

Source: Internet
Author: User
Php problem wampserver Lan can not access today tested a PHP web page, out of the local area network other machines can not access the query to obtain the problem solution: Original link address: www.nnbbxx.netpost-1426.html wampserver2.5 the latest version of Apache: 2.4.9MySQL: 5.6.17PHP: 5.5.12PHPMyAdmi php problem wampserver Lan cannot be accessed
I tested a PHP webpage today, and other machines outside the local area network cannot access it.

After query, the solution is as follows:

Original article link: http://www.nnbbxx.net/post-1426.html


Wampserver2.5 the latest version of Apache: 2.4.9MySQL: 5.6.17PHP: 5.5.12PHPMyAdmin: 4.1.14 after installation, open httpd. conf to see the original configuration below. The original smart local access configuration is unavailable to others. When you see the default configuration, you will find two identical ones. I feel the same. In addition, the httpd. conf file in the latest version 2.5 is opened in notepad by default without line breaks. If you use notepad ++ or sublime2 or 3, you can see the line break ## DocumentR ......... # N lines of comments are omitted here #.............. and aliases may be used to point to other locations. # DocumentRoot "D:/wamp/www/" # Each directory ......... # N lines of comments are omitted here #.............. its subdirectories ). # First, we configure the "default" to be a very restrictive set of # features. #
 Require all denied# Note that fro ......... # N lines of comments are omitted here #.............. keep CT, make sure that you have specifically enabled it # below. #
 
  
# Possible values for the Options directive are "None", "All", # N line annotations are omitted here # for more information. # Options Indexes FollowSymLinks # AllowOverride ......... # N lines of comments are omitted here #.............. ileInfo AuthConfig Limit # AllowOverride all # Controls who can get stuff from this server. # onlineoffline tag-don't remove Require local
 As mentioned above, the configuration above cannot be used. Let's talk about how to change it. I have already pasted two places above, so we need to modify them. See the following configuration method. DocumentRoot "D:/wamp/www /"
 AllowOverride none order deny, allow from all # Require all denied
 
  
Options Indexes FollowSymLinks AllowOverride all order deny, allow from all # Require local
 Do you understand the above code after reading it. In both cases, you must modify the access capability of other talents. if you only modify the access capability of one location, 403 of the access traffic may occur. The above code is to comment out Require local. when adding three lines: AllowOverride all, order deny, allow, and allow from all, other people can access it.



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.