Apache port 80 occupation problems, apache80 port occupation
After installing mongodb today, apache cannot be started.
Command Line services. msc open the service
Start the Apache2a service in the service with the error code 1.
1 reported in many cases for online queries
You can use the command line to execute httpd.exe in apache bin for more information.
AH00548: NameVirtualHost has no effect and will be removed in the next release D:/phpStudy/Apache/conf/extra/httpd-vhosts.conf: 34
(OS 10013) attempted to access the socket in a way that the access permission is not allowed. : AH00072: make_sock: cocould not bind to address [:]: 80
(OS 10013) attempted to access the socket in a way that the access permission is not allowed. : AH00072: make_sock: cocould not bind to address 0.0.0.0: 80
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs
It is estimated that port 80 is occupied. I have encountered that port 80 is occupied by System before, and then changed the listener port in httpd. conf to solve this problem.
Run the command line netstat-ano | findstr 80 to check that the occupied pid is 4.
Display All processes through tasklist
System 4 Services 0 108 K
Sure enough, it is still occupied by System. This time it must be solved. We can see that System is generally a service of SQL Server Reporting Services (MSSQLSERVER ).
Disable it directly in the service. apache is enabled successfully.