Solved

Port settings

Posted on 2014-09-18
8
204 Views
Last Modified: 2014-09-18
When installing a web server (apache) I find port 80 is already taken. For reasons of simplicity I'd like to assign port 80 to the web server. How can that be accomplished?
0
Comment
Question by:lericson
  • 4
  • 2
  • 2
8 Comments
 
LVL 21

Expert Comment

by:mcsween
ID: 40330124
If port 80 is already open you likely have IIS installed.  You can either remove IIS, change the port on the site, shutdown the site, or shutdown IIS.

If IIS is not installed you can find the PID of what is listening on that port by running the following command and look for the local address that ends with :80 (it could be 0.0.0.0 or the actual IP of the system preceding the port)
netstat -ano

Open in new window

You can then open task manager, and click the processes tab
Click View, Select Columns and add the PID and command line columns
Find the PID and look at the command line that was used to start it and you've found your culprit.  Get rid of them or move them to another port and Apache should be good to run on 80.
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 40330273
you may also have Skype enabled go to the Skype advanced options and connection and uncheck use port 80/443
0
 

Author Comment

by:lericson
ID: 40330434
Thanks for replies!

I have changed configuration of Skype to David Johnson's suggestion and restarted the system.

Following mcsween's suggestion, I get this:

Name        PID      Username        Command line
System       4         SYSTEM             (empty)

Does this tell you guys anything?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:lericson
ID: 40330445
Furthermore, when XAMPP Control Panel is started, it shows:

Problem detected!
Port 80 in use by "Unable to open process" with PID 4!
Apache WILL NOT start without the configured ports free!
You need to uninstall/disable/reconfigure the blocking application
or reconfigure Apache and the Control Panel to listen on a different port
0
 
LVL 79

Expert Comment

by:David Johnson, CD, MVP
ID: 40330481
what happens when you do a http:\\localhost
0
 

Author Comment

by:lericson
ID: 40330502
It shows page can't be found
0
 
LVL 21

Accepted Solution

by:
mcsween earned 500 total points
ID: 40330811
PID 4 is the system process.  It's loading http.sys driver for some reason.

Change the following registry key and reboot then try again.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Start = 4
0
 

Author Closing Comment

by:lericson
ID: 40331399
Thanks! Worked great.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question