Home>Article>Operation and Maintenance> What is the reason why apache fails to start in phpstudy?
Novices who develop PHP programs mostly use the phpStudy integrated environment. During use, there will be problems with the Apache or MySQL service being unable to start. So what's the reason for not starting?
What is the reason why apache fails to start in phpstudy?
Reason one: Firewall interception;
Reason two: The VC9 runtime library is not installed, php and apache are both compiled by VC9;
Reason three: Port 80 has been Used by other programs, such as IIS, Thunder, etc.
Most of them are due to the port being occupied.
The following will introduce to you the solution to the problem that the port is occupied:
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 image is displayed:
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"
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 What is the reason why apache fails to start in phpstudy?. For more information, please follow other related articles on the PHP Chinese website!