Wampserver solve "can't switch online" and run "404 Problem"
Initial installation using wampserver2.2, the following problems may occur due to different computer installed applications or different computer models:
1. After installation, you cannot switch "server online" or "Server offline"
2. After setting up the site, run the written code with 404 errors
For these problems, Baidu has a lot of solutions, the author of the new himself tried, there are some methods are not feasible.
So the author again nagging:
There are two reasons to note these problems:
1. Computer's default 80 port, has been occupied
An error occurred while configuring 2.wampserver
For the first question, you only need to change the product number to a 8080-end product:
Open wampserver/apache/httpd.conf file, modify port number:
When you're done, restart the Apache server and you'll see that the wampserver icon turns green from Orange, indicating that the server is working properly.
There are 404 problems with running code through the server:
This is due to a very easy to neglect the problem, the computer default port number is 80, now has the port number of Apache to 8080, then set the site, configure the server when you also set the port number:
Once this is set up, running the code again will not be an error;