What should I do if the apache server cannot be started?

(*-*)浩
Release: 2019-10-29 09:31:31
Original
25002 people have browsed it

What should I do if the apache server cannot be started?

Three problems with Apache startup failure

1. Port occupation problem(Recommended study:apache Use)

1. This is one of the most likely problems that cannot be started. Run CMD and then execute netstat -aon | findstr: 80;

2. If it is found that the port is blocked For multiple occupations, you can use Win R, enter Regedit to enter the registry, find HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP and modify the Start item to 0.

2. Apache storage path problem

1. Use the command line to open CMD and locate: [Your Apache path. I downloaded the decompressed file, and then decompress the path directly. It is D:\httpd-2.4.20-x64-vc14-r2\Apache24]\bin, and enter httpd.exe -k install -n "Apache2.4" in the command line and press Enter;

2. If you find that the path prompt is wrong, there are two solutions. Put Apache24 in the root directory, or configure your Conf file. This article takes the path change method as an example to store Apache24 in the root directory of drive D;

3. At this time, locate path:/bin and run httpd.exe -k install -n "Apache2.4" That’s it.

3. Running mode issues

1. Through the third step above, we found that the prompts tell us that we need to run as an administrator;

2. Then execute the third step above, locate path:/bin, and run httpd.exe -k install -n "Apache2.4".

The above is the detailed content of What should I do if the apache server cannot be started?. For more information, please follow other related articles on the PHP Chinese website!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!