Home > Backend Development > PHP Tutorial > About the local computer unable to start Apache2, computer starts Apache2_PHP tutorial

About the local computer unable to start Apache2, computer starts Apache2_PHP tutorial

WBOY
Release: 2016-07-13 10:21:11
Original
989 people have browsed it

About the local computer cannot start Apache2, the computer starts Apache2

Recently, due to work needs, I have to learn basic programming of PHP, so I learned to set up a PHP working environment.

But according to the introduction in the textbook, after installing WMAP, it has not been able to run successfully. Later I found that Apache was never running. Go to the Apache option in WMAP and choose to start it but it cannot be started.

After receiving some advice from experts, I concluded that the following possibilities cannot be used to start Apache:

Possible situation one:
The path to install Apache2 cannot contain Chinese.

Possible scenario two:
Restarting Apache will pop up an error message box, prompting "The requested operation has failed!" Then open the service and start Apache2, and it will prompt me:
"Windows cannot start Apache2 on the local computer. .......And refer to the specific service error code 1"
Solution: Mainly in the confhttpd.conf in the Apache installation directory, modify the
in the httpd.conf file# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
Change port 80 to 81 or other Yes,
after changing to,
#Listen 12.34.56.78:81080
Listen 8080
Restart ApacheServices and there will be no problem
Maybe, this method is possible for different versions of Apache There are different solutions. I used the apache_2.2.11-win32-x86-no_ssl.msi version when configuring it. I’m not sure about other versions. Is this how to change it? I would like to share my joy after solving the problem here. Bar!

Possible situation three:
Because I have been busy these past few weeks, I rarely work on PHP. But today I suddenly remembered some PHP programs about calendars that I wrote at the beginning of school. I wanted to improve them, so I started them from the service. Apache, but a warning appears:
"Windows cannot start apache2 on the local computer. For more information, consult the system event log. If this is a non-Microsoft service, please contact the service vendor and refer to the specific service error code 1. ”
Try After trying it several times, it didn't work. Then I started MYSQL, but it started successfully. Why can't I start Apache? Think about it, it seems that the httpd.conf file was changed last time. At that time, it was just Change "AddCharset GB2312" to "AddDefaultCharset GB2312" Because my PHP programs cannot obtain the Chinese characters in the URL. So I thought there was a problem here, so I changed it to "AddDefaultCharset" GB2312", I thought I would verify it next time, so I didn't start Apache until I found this problem when I started it today. I changed it back to the original "AddCharset GB2312" Started again! But it can be started successfully! It seems to be a problem with this character setting!

Possible situation four:
Thunder is turned on, and Thunder occupies port 80 by default. Just close Xunlei and restart the Apache service!

Windows cannot start Apache2 on the local computer, it is a win7 system

Did you turn off the IIS service? Just right-click My Computer, manage IIS in the service category, and the Windows 7 system will run automatically without shutting down. . Is it a 64-bit system?

Windows cannot start Apache2 on the local computer

Apache-20\conf\mime.types

The solution is to copy this file directly and then restart!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/860921.htmlTechArticleAbout the local computer cannot start Apache2, the computer starts Apache2. Recently, due to work needs, I have to learn basic programming of PHP, so I learned Set up a PHP working environment. But according to the introduction in the textbook...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template