Home  >  Article  >  Backend Development  >  What should I do if I get an error when php configures apache to restart?

What should I do if I get an error when php configures apache to restart?

藏色散人
藏色散人Original
2021-09-17 11:19:452437browse

Solution to php configuration apache restart error: 1. Find the "cmd.exe" file; 2. Run "(A)cmd.exe" as an administrator; 3. Activate the apache service; 4. Use Service.msc can check whether the apache service is started.

What should I do if I get an error when php configures apache to restart?

The operating environment of this article: Windows 7 system, PHP version 7.1, DELL G3 computer

What should I do if the php configuration apache restarts and reports an error?

Apache configures the php project and starts the apache service to solve the error problem

According to the command of E:\Apache2.4.12\bin\httpd.exe -k install When trying to start the apache service, the following error is reported:

The reason for the failure to establish the service is that the service was not started as an administrator. The solution is as follows

1 . Find the cmd.exe file, generally it will be in C:\Windows\System32\cmd.exe (this is the case on my computer).

2. Then run (A)cmd.exe as an administrator.

3. Then type E:\Apache2.4.12\bin\httpd.exe -k install on the command line to activate the apache service, as shown below:

4. Use Service.msc to check whether the apache service is started, as shown below:

Recommended study: "PHP video tutorial

The above is the detailed content of What should I do if I get an error when php configures apache to restart?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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