Solution to the problem that other machines on the LAN cannot be accessed after WAMP sets up a PHP environment: First, make sure the firewall is turned off and port 80 is not occupied; then modify the [httpd.conf] file of apache; and finally restart apache.
[Related learning recommendations: php graphic tutorial]
Solution to the problem that other machines on the LAN cannot be accessed after WAMP sets up a PHP environment:
After just installing wamp, it can be accessed locally by accessing localhost or 127.0.0.1, but If other computers in the LAN access, a 403 error will occur. I searched a lot on the Internet and found various explanations, but few were useful. The solution to the problem is as follows:
1. First, make sure the firewall is turned off and port 80 is not occupied.
2. Modify the httpd.conf file of apache in two places:
The first
Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all
is modified to:
Options FollowSymLinks AllowOverride None Order deny,allow # Deny from all Allow from all #允许所有访问 Satisfy all
The second part
# onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1
is modified to:
# onlineoffline tag - don't remove Order Deny,Allow # Deny from all # Allow from 127.0.0.1 Allow from all
In addition, if you use DVWA, the above settings will not work because htaccess restricts access. After decompressing DVWA, place it in the home directory, and modify the rules in htaccess as follows:
order deny,allow deny from none allow from all
After modification, restart apache, and other machines in the LAN can access the DVWA platform built on this machine.
Related learning recommendations: php programming (video)
The above is the detailed content of What should I do if other machines on the LAN cannot access the PHP environment after setting up WAMP?. For more information, please follow other related articles on the PHP Chinese website!