Home >System Tutorial >Windows Series >Solution to the failure to start the apache service in win8 system
php editor Banana will introduce a solution to you today - solving the problem of Apache service failure to start under Win8 system. When using Apache as the local development environment, some users may encounter a situation where Apache cannot be started, resulting in the inability to develop and debug the website normally. In response to this problem, we have compiled some feasible solutions, hoping to be helpful to everyone. Let’s find out next!
1. First, open the browser, enter localhost and press Enter. If the page shown below appears, continue. If a response appears, it is likely that your other servers are still open, such as IIS, and these servers need to be shut down first. Because these servers will occupy port 80 of the computer. There may be a bug in closing IIS in Win8.1. The specific steps are not described here. If you encounter this problem, please search the Internet yourself. As shown in the figure:
2. Then, find the installation directory of the Apache server, which usually appears in Apache Software FoundationApache2.2, and open the bin directory. The bin directory is the directory for executable files. As shown in the figure:
3. Find the httpd.exe command in the bin directory, start cmd, which is the command line, run it as an administrator, and cd to the bin directory. As shown in the figure:
4. Use cmd to execute the following command to install the service: httpd.exe -k install -n Apache2.2. Apache2.2 is the service to be installed. The name. As shown in the figure:
5. After the installation is completed, use the command net start Apache2.2 to start the service just installed. If you are not comfortable using commands, you can open the service list and start the service manually. as the picture shows:
The above is the detailed content of Solution to the failure to start the apache service in win8 system. For more information, please follow other related articles on the PHP Chinese website!