starting Apache Today, a dialog box appears prompting "The requested operation has failed". Can not start, very depressed.
Read a lot of articles , summed up about two aspects caused the above error :
One. is 80 ports occupied by other programs or services;
Two. Is the configuration error, that is, the installation directory of apache2.2\conf\httpd.conf, the configuration file inside the problem;
How to check the use of the port?
Using NETSTAT-AON|FINDSTR "80" on the command line
This command will allow you to see the program using the 80 port. And then I saw some of the process PID using the 80 port, through the TASTLIST/FI "PID EQ * * *" (PID) can see which programs are in use (or directly through the Task Manager------View---Select column, the PID , you can also see the corresponding process).
After that, turn them off. Then start Apache, and the result is the same problem.
No way, fortunately there is a possibility (at first I was strange, I have never configured httpd.conf, how the problem will be on it). Look at the information on the Internet, in the command line into the installation directory Apache2.2\bin, using the command httpd-t, and then appear
"Httpd:syntax error on line 248 of e:/phpcms/apache2.2/conf/httpd.conf: </direct
ory> without matching <Directory> section ",
Look at it tip information, description, 248 lines in this config file, </Directory> no matching <Directory>.
Navigate to the 248 lines of this file and find that sure </Directory> matched <Directory> was inadvertently commented out.
Workaround: #<directory 217 lines of "e:/phpcms/htdocs/www.aerchi.com"/> # Cancel.
OK, start Apache again and start successfully.
Happy to be original
This address: http://blog.csdn.net/aerchi/article/details/50692627
Apache2.2 Tip The requested operation has failed and cannot start