I have just started to study ph, using the environment is Windows, the installation of the development environment is appserv.
Today, I found that the Apache service was not up, the service did not open, I turned the service back on the times a such error "Windows can not start the local computer Apache2 ...." and refer to the specific service error code 1 ". I think it is very strange, obviously yesterday was good, I did not make any special changes to the environment.
Then I searched the internet for a problem, generally said 80 port is occupied, or version of the reason.
method is to go to the \conf\httpd.conf file in the two lines changed:
Listen 80
LoadModule Php5_module C:/appserv/php5/php5apache2_4.dll
But my 80 port is really useless to use, yesterday with a good, version should also be no problem.
Search the solution on the Internet to see a say start \apache_start.bat can see the specific error message, I started to appear after this information
I found the line in the \conf\httpd.conf file, found that the default directory folder name is wrong, it was yesterday I changed the name of the folder--!
Then the default directory folder in the configuration file is changed to a consistent, and then restart the service is OK.
Windows Apache2 Service does not start the workaround