Apache2.2 Tip The requested operation has failed and cannot start

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.