The local computer fails to start Apache troubleshooting, Apache troubleshooting _php Tutorial

Source: Internet
Author: User
Tags learn php apache tomcat

The local computer fails to start Apache troubleshooting, Apache fault handling

Recently, due to work needs, to learn the basic programming of PHP, so learning to set up PHP working environment.

However, as described in the textbook, after the installation of WMAP, has been unable to run successfully. It was found that Apache was not running. Go to the Apache option in WMAP to select Start but not start.

After the expert guidance, summed up the following possibilities can not start Apache:

Possible situation one:

The path to install Apache2 cannot contain Chinese.

Possible situation two:

Restart Apache will pop up the error box, prompting "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 "
Resolution: Mainly in the Apache installation directory under the \conf\httpd.conf, modify the httpd.conf file under the
# Listen on specific IP addresses as shown below to
# Prevent Apache from glomming onto all bound IP addresses.
Listen 80
Change the port 80 to 81 or something,
After the change,
Listen 8080
If you restart Apacheservices, there won't be any problems.
Perhaps this approach may have different workarounds for different versions of Apache, which I use when configuring Apache_2.2.11-win32-x86-no_ Ssl.msi version of, the other version of I am not very clear, is not so changed, here to share the joy after I solve the problem!

Possible Scenario Three:

Because these weeks are busy, so seldom to do PHP. But today I suddenly think of a few calendar-based PHP programs that were written at school and wanted to improve it, so I started Apache from the service, but there was a warning that:
"Windows cannot start apache2 on the local computer. For more information, consult the system event log. If this is a non-Microsoft service, contact your service vendor and refer to the specific service error code 1. ”
Try it a few times, and then start MySQL. But you can start it successfully. Why can't I start Apache? Think of it as if I had changed the httpd.conf file last time. It was just to change "Addcharset GB2312" to "Adddefaultcharset GB2312 "Because my PHP program can't get the Chinese characters in the URL. So I thought it was a problem here, so then it was changed to" Adddefaultcharset GB2312 ", thought the next time to go to verify the line is not, so it did not launch Apache, This problem was found until the start of the day. Change back to the original "Addcharset GB2312" to start again! But it starts! It seems to be the problem with this character setting!

Possible situation four:

Turn on the Thunderbolt, Thunderbolt default occupies 80 port. Turn off the Thunder and restart Apache service!

When you start the service under Windows, you are prompted as follows: "Windows cannot start Apache on the local computer

It is possible that Apache listening port conflicts with other software, this is a common mistake made by novice, Windows installed IIS server while installing Apache server, two server software is listening to TCP/IP protocol 80 port, so there is one of the services can not be started, If you want two services to run at the same time, then modify the Apache listening port, modify the specific method please refer to the Apache manual. Different compiled version, the modification method is slightly different, generally is to modify the httpd.conf file, the 80 port of the change to other, such as 8080.
If IIS is not installed, you are prompted not to start. That is the Thunder and other peer software in the mischief, to find out which software, in the Command line window input: Netstat-o-an
The column in the Local address will appear as follows:
Find the process where the 80 port is occupied, and then find the PID of the process PID corresponding to this column, then find it out in Task Manager, or end the process.

Windows can not start Apache Tomcat 6 on the local computer

Re-uninstall and install again, it is estimated that the firewall and other software bar your service is banned true techarticle The local computer does not start Apache fault handling, Apache troubleshooting recently due to work needs, to learn PHP BASIC programming, so learn to set up PHP working environment. But according to the textbook ...

  • 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: 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.