Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows server 2008 r2 - can't get apache to run on port 80

Tags:

windows

apache

I have a rackspace cloud server running windows server 2008 r2. I've uninstalled IIS because I want to install Apache.

I've installed Apache but it fails everytime i try to run it when i listen to port 80.

I've run the command netstat -aon|finderstr "80" and i see the following:

C:\Users\Administrator>netstat -aon|findstr "80" TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4 TCP 10.180.15.249:139 0.0.0.0:0 LISTENING 4 TCP [::]:80 [::]:0 LISTENING 4 UDP 10.180.15.249:137 : 4 UDP 10.180.15.249:138 : 4

So what are these things running on port 80 and why can't i get apache to start? Is there an alternative port for to run apache under that will work just as well as 80?

like image 375
Robbiegod Avatar asked Sep 09 '11 14:09

Robbiegod


People also ask

How do I open port 80 in Windows Server 2008?

Click Allow a program through Windows Firewall. Click Add Port. Type HTTP and port number 80, choose TCP, click OK. This opens port 80.


1 Answers

To enable port 80 on Windows Server 2008 R2:

NOTE: This assumes that IIS is not installed. I added this firewall rule to enable Apache to accept connections on port 80.

  1. Click Start->Control Panel->Windows Firewall
  2. Click "Advanced Settings" in the left panel of Windows Firewall
  3. Click "Inbound rules" in the left panel of Advanced Settings
  4. Click "New Rule..." in right "Actions" panel
  5. Select "Port" and click "Next>"
  6. Select "TCP", then "Specific local ports:" (should already be selected)
  7. Type 80 in the box (just the number) and click "Next>"
  8. Select "Allow the connection" and click "Next>"
  9. Leave all profiles checked and click "Next>"
  10. Enter a name and click "Finish".

Your server should now be able to accept connections on port 80.

like image 108
ClubbedAce Avatar answered Sep 23 '22 11:09

ClubbedAce