apache http server

apche- cannot start in windows AH00015: Unable to open logs

Symptom

Install apache on windows successful but when start service it show error.
Open Event Viewer in Application view we see below detail error

AH00015: Unable to open logs

Cause

There are application using 80 port so apache cannot listen on that.
You can check by following command:

C:\Users\ThaiThinh>netstat -ao -p tcp

Active Connections

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:25             ThinhPT-PC:0           LISTENING       1960
  TCP    0.0.0.0:80             ThinhPT-PC:0           LISTENING       3228
  TCP    0.0.0.0:110            ThinhPT-PC:0           LISTENING       1960
  TCP    0.0.0.0:135            ThinhPT-PC:0           LISTENING       852
  TCP    0.0.0.0:143            ThinhPT-PC:0           LISTENING       1960
  TCP    0.0.0.0:443            ThinhPT-PC:0           LISTENING       3228
  TCP    0.0.0.0:445            ThinhPT-PC:0           LISTENING       4
  TCP    0.0.0.0:587            ThinhPT-PC:0           LISTENING       1960
  TCP    0.0.0.0:1025           ThinhPT-PC:0           LISTENING       632
  TCP    0.0.0.0:1026           ThinhPT-PC:0           LISTENING       1000
  TCP    0.0.0.0:1027           ThinhPT-PC:0           LISTENING       396
  TCP    0.0.0.0:1028           ThinhPT-PC:0           LISTENING       1404
  TCP    0.0.0.0:1029           ThinhPT-PC:0           LISTENING       744
  TCP    0.0.0.0:1035           ThinhPT-PC:0           LISTENING       728
  TCP    0.0.0.0:1433           ThinhPT-PC:0           LISTENING       1212
  TCP    0.0.0.0:3306           ThinhPT-PC:0           LISTENING       2272
  TCP    0.0.0.0:63933          ThinhPT-PC:0           LISTENING       3228
  TCP    127.0.0.1:1030         lmlicenses:5354        ESTABLISHED     1612
  TCP    127.0.0.1:1031         lmlicenses:5354        ESTABLISHED     1612
  TCP    127.0.0.1:2186         lmlicenses:2187        ESTABLISHED     3888
  TCP    127.0.0.1:2187         lmlicenses:2186        ESTABLISHED     3888
  TCP    127.0.0.1:2947         lmlicenses:2948        ESTABLISHED     4636
  TCP    127.0.0.1:2948         lmlicenses:2947        ESTABLISHED     4636
  TCP    127.0.0.1:5354         ThinhPT-PC:0           LISTENING       1728
  TCP    127.0.0.1:5354         lmlicenses:1030        ESTABLISHED     1728
  TCP    127.0.0.1:5354         lmlicenses:1031        ESTABLISHED     1728
  TCP    127.0.0.1:5939         ThinhPT-PC:0           LISTENING       3180
  TCP    127.0.0.1:6942         ThinhPT-PC:0           LISTENING       3888
  TCP    127.0.0.1:27015        ThinhPT-PC:0           LISTENING       1612
  TCP    127.0.0.1:50911        ThinhPT-PC:0           LISTENING       2412
  TCP    127.0.0.1:63342        ThinhPT-PC:0           LISTENING       3888
  TCP    192.168.0.101:139      ThinhPT-PC:0           LISTENING       4
  TCP    192.168.0.101:1041     sinwns1011312:https    ESTABLISHED     1636
  TCP    192.168.0.101:3117     192.0.78.22:https      TIME_WAIT       0

You can check PID with Taskmanager to find out which process use this port in my case that is Skype.

Solution

Stop application or change port that application use.

Leave a Reply