Due to work needs, we are now studying the PHP language. It was difficult to build a server environment at the beginning. First, I read the configuration instructions, which are complex and complex (Miss Visual Studio ). Then I asked the old birds in the next group. They all installed the wampserver environment package, which contains the PHP, MySQL, and Apache environments. So I downloaded one in PhP100 (Portal: wampserver 5 Integrated Environment ver 2.0c ).
The installation process is smooth, and the next step is fine. When wampserver is opened, a small fan will appear in the tray icon in the lower right corner, and then right-click to select the language "Chinese. Then left-click to start all services. Click the left-click localhost to test whether it can be used. PhpMyAdmin is the Web Page Management Interface of MySQL. Default Account: Root, password: null.
Then the tangle begins. At the beginning, I thought that IIS occupied port 80, so I opened the httpd. conf configuration file and changed the listen port number to 88. Then, we still cannot. Then I uninstalled IIS because Visual Studio is available locally for debugging. Still not. Then I registered the apache service, but it still does not work. I opened the service in the management tool and found that wampapache is in the stopped state. I started him manually and reported an error: non-Microsoft Service, errorCode1. I checked it on the Internet. It is said that the port number is occupied. During the installation process, do not enable thunder, Skype, and so on, which occupy port 80. Then, enter the CMD interface. Click netstat. Check that there is no port 80 at all.Program. The LmHosts (m) method for modifying the local connection wins is invalid.
Specific Method: local connection --- properties ---- Internet Protocol (TCP/IP) --- properties --- advanced --- wins ---- import LmHosts (m ).
Add {apache2dir} \ bin \ httpd.exe to start or enter wins to close the LmHosts (m) query.
Or invalid. Finally, I uninstalled wampserver and reinstalled it. Use all default configurations. The result is successful. Finally, it was found that it was the installation path of the Chinese folder...
If you encounter a problem where the port cannot be opened, follow these steps.
1. Open CMD and tap netstat to check whether port 80 is occupied.
2. Modify the port number of httpd. conf. Then register the service.
3. Check whether the wmapapache service is enabled.
4. Check whether the installation path contains Chinese characters.
3. Pay attention to the installation path