Apache doesnt start with default port after restart .

MAS
MAS used Ask the Experts™
on
I have Xampp installed in Windows2012R2.
I have this error after a reboot in Xampp. I have opencart installed.  
If I change the port from 80 to 81 or other port apache starts. Any idea what could be wrong?
It seems port is used somewhere not sure where?
Capture53.JPG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fractional CTO
Distinguished Expert 2018
Commented:
Sounds like some other process is already listening on port 80.

Check the output of this command which will show all listening processes with related ports...

netstat -a -b

Open in new window

MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Author

Commented:
I changed to port 81 to start apache. I replaced servername with mydomain
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Administrator>netstat -a -b

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    0.0.0.0:21             mydomain:0           LISTENING
 [FileZilla Server.exe]
  TCP    0.0.0.0:80             mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    0.0.0.0:81             mydomain:0           LISTENING
 [httpd.exe]
  TCP    0.0.0.0:135            mydomain:0           LISTENING
  RpcSs
 [svchost.exe]
  TCP    0.0.0.0:443            mydomain:0           LISTENING
 [httpd.exe]
  TCP    0.0.0.0:445            mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    0.0.0.0:3306           mydomain:0           LISTENING
 [mysqld.exe]
  TCP    0.0.0.0:3389           mydomain:0           LISTENING
  TermService
 [svchost.exe]
  TCP    0.0.0.0:5985           mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    0.0.0.0:47001          mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    0.0.0.0:49152          mydomain:0           LISTENING
 [wininit.exe]
  TCP    0.0.0.0:49153          mydomain:0           LISTENING
  EventLog
 [svchost.exe]
  TCP    0.0.0.0:49154          mydomain:0           LISTENING
  Schedule
 [svchost.exe]
  TCP    0.0.0.0:49155          mydomain:0           LISTENING
 [spoolsv.exe]
  TCP    0.0.0.0:49156          mydomain:0           LISTENING
 [lsass.exe]
  TCP    0.0.0.0:49157          mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    127.0.0.1:14147        mydomain:0           LISTENING
 [FileZilla Server.exe]
  TCP    192.168.0.167:139      mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    192.168.0.167:3389     dell-pc:55715          ESTABLISHED
  TermService
 [svchost.exe]
  TCP    [::]:21                mydomain:0           LISTENING
 [FileZilla Server.exe]
  TCP    [::]:80                mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    [::]:81                mydomain:0           LISTENING
 [httpd.exe]
  TCP    [::]:135               mydomain:0           LISTENING
  RpcSs
 [svchost.exe]
  TCP    [::]:443               mydomain:0           LISTENING
 [httpd.exe]
  TCP    [::]:445               mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    [::]:3306              mydomain:0           LISTENING
 [mysqld.exe]
  TCP    [::]:3389              mydomain:0           LISTENING
  TermService
 [svchost.exe]
  TCP    [::]:5985              mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    [::]:47001             mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    [::]:49152             mydomain:0           LISTENING
 [wininit.exe]
  TCP    [::]:49153             mydomain:0           LISTENING
  EventLog
 [svchost.exe]
  TCP    [::]:49154             mydomain:0           LISTENING
  Schedule
 [svchost.exe]
  TCP    [::]:49155             mydomain:0           LISTENING
 [spoolsv.exe]
  TCP    [::]:49156             mydomain:0           LISTENING
 [lsass.exe]
  TCP    [::]:49157             mydomain:0           LISTENING
 Can not obtain ownership information
  TCP    [::1]:14147            mydomain:0           LISTENING
 [FileZilla Server.exe]
  UDP    0.0.0.0:3389           *:*
  TermService
 [svchost.exe]
  UDP    0.0.0.0:5355           *:*
  Dnscache
 [svchost.exe]
  UDP    192.168.0.167:137      *:*
 Can not obtain ownership information
  UDP    192.168.0.167:138      *:*
 Can not obtain ownership information
  UDP    [::]:3389              *:*
  TermService
 [svchost.exe]

C:\Users\Administrator>

Open in new window

David FavorFractional CTO
Distinguished Expert 2018

Commented:
Some unnamed process (might be Malware running) is holding port 80 + port 443, so you have to find + kill this process first.

Since the port 80 process is unnamed... this suggests Malware may be running, as most well crafted daemons will show up by name.
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Author

Commented:
I found WWW service running.
Afert stopping www service and apache started with port 80
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Author

Commented:
I found WWW service running.
Afert stopping www service and apache started with port 80
David FavorFractional CTO
Distinguished Expert 2018

Commented:
Excellent!

Glad you figured this out!
MASEE Solution Guide - Technical Dept Head
Most Valuable Expert 2017

Author

Commented:
Your command gave me hint  to figure it out. Thanks :))

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial