What should I do if the Apache service fails to start after the Win8 system is upgraded?

  

Users who use Win8 system know that they will receive patch upgrades of system upgrades. Under normal circumstances, Win8 system users will upgrade, but some users have encountered some inexplicable problems after upgrading, including Apache. The service failed to start, or the Apache service disappeared. What is going on?

Apache is the world's number one web server software. It runs on almost all widely used computer platforms and is the most popular web server-side software because of its widespread use across platforms and security. When developing a PHP or Java server program, programmers will choose to use the Apache server as a background server. The reason why the service disappeared after the win8 upgrade to 8.1 is because the registry has not been updated after the upgrade.

Solution

1. First, open the browser, enter localhost and press Enter. If the page shown below appears, continue. If a response occurs, it's very likely that your other servers are still open, such as IIS, which needs to be shut down first. Because these servers will take up port 80 of the computer. Win8.1 shutdown IIS may have a bug, the specific steps are not described here, if you encounter this problem, please Baidu search.

2, then, find the installation directory of the Apache server, usually appear in \\Apache Software Foundation\\Apache2.2, open the bin directory. The bin directory is the directory of the executable. As shown below.

3. Locate the httpd.exe command in the bin directory, as shown in the following figure. Start cmd, the command line, run as administrator, cd to the bin directory.

4, use cmd to execute the following command to install the service: httpd.exe -k install -n Apache2.2. Apache2.2 is the name of the service to be installed.

5. After the installation is complete, use the command net start Apache2.2 to start the service you just installed. If you are not used to using commands, you can open the list of services and start the service manually. As shown in the figure

The above is the solution to the failure of the Apache service startup after the Win8 system upgrade. It is important to remind everyone that the service attributes installed by default using the command line are automatic, if you do not want these services. Booting automatically starts, you need to modify it in the properties of the service list.

Copyright © Windows knowledge All Rights Reserved