Recently because of work needs, to learn the basics of PHP programming, so learn to set up a PHP work environment.
However, as described in the textbook, the installation of WMAP, has been unable to run successfully. After discovering that Apache has not been in the running state. To the Apache option in WMAP to select startup but not boot.
After the expert advice, summed up the following possibility can not start Apache:
Possible conditions one:
The path to install Apache2 cannot contain Chinese.
Possible situation two:
Restart Apache will pop-up error prompt box, prompt "The requested operation has failed!" and then open the service, start Apache2, prompted me:
"Windows cannot start Apache2 on the local computer .... and refer to the specific service error code 1 "
Solution: Mainly in the Apache installation directory of the \conf\httpd.conf, modify the httpd.conf file under the
# Listen on specific IP addresses as shown below to
# prevent Apache glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Change the 80 port to 81 or something.
After the change,
#Listen 12.34.56.78:81080
Listen 8080
Restart Apacheservices, and there's no problem.
Perhaps this approach may have different solutions for different versions of Apache, which I used when configuring the Apache_2.2.11-win32-x86-no_ Ssl.msi version of the other version of the I am not very clear, is not this change, here to share my resolution after the joy of the problem!
Possible conditions three:
Because these weeks are busy, so very little to engage in PHP. But today, I suddenly remembered a few of the calendar of the PHP program, want to improve it, so from the service there to start Apache, but there are warnings that:
"Windows cannot start apache2 on the local computer. For more information, check the system event log. If this is a non-Microsoft service, contact your service manufacturer and refer to the specific service error code 1. ”
Try a few times, and then start MySQL. But it can start. Why can't I start Apache? Think of it as if you had changed the httpd.conf file last time. It was only to change "Addcharset GB2312" to "Adddefaultcharset GB2312 "Because my PHP programs can't get the Chinese characters in the URL. So I thought it was a problem here, so I changed it to" Adddefaultcharset GB2312 ", thinking that the next time I went to verify the line, I didn't start Apache, This problem was found at the start of the day. Change back to the original "Addcharset GB2312" Start again! It seems to be the problem with this character setting!
Possible situation four:
Opened the Thunderbolt, the Thunderbolt by default occupies 80 ports. Turn off the Thunder and restart the Apache service!