Home>Article>Operation and Maintenance> How to solve the problem that apache cannot be started in phpstudy?

How to solve the problem that apache cannot be started in phpstudy?

青灯夜游
青灯夜游 Original
2019-10-10 16:29:34 9828browse

Novices developing PHP programs mostly use the phpStudy integrated environment. During use, there will be a problem that the Apache or MySQL service cannot be started. How to solve this problem? The following article will introduce you to the solution.

How to solve the problem that apache cannot be started in phpstudy?

The Apache or MySQL service cannot start mostly because the port is occupied. Let’s take a look at how to solve it.

Solution steps:

1. Display port information

Use cmd to open cmd.exe, and then enter the following command to view the port usage information:

netstat -ano

After executing the command, the following figure is displayed:

How to solve the problem that apache cannot be started in phpstudy?

It is found that the process with PID="7088" occupies the 443 port set in Apache.

2. Find the process occupying the port

Use the following command to find the process with PID="7088":

tasklist | findstr "7088"

How to solve the problem that apache cannot be started in phpstudy?

It was found that port 443 was occupied by a process of vmware, causing Apache to be unable to use port 443.

3. Close the process occupying the port

Close the vmware process in [Task Manager] to give up port 443 to the Apache service.

4. Restart the Apache service and it will run normally.

For more PHP related knowledge, please visitphp中文网!

The above is the detailed content of How to solve the problem that apache cannot be started in phpstudy?. 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