Windows Apache2 Service does not start the workaround

Source: Internet
Author: User

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

Related Article

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.