Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Port settings

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
Lennart Ericson
Asked:
Lennart Ericson
  • 4
  • 2
  • 2
1 Solution
 
mcsweenSr. Network AdministratorCommented:
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
 
David Johnson, CD, MVPOwnerCommented:
you may also have Skype enabled go to the Skype advanced options and connection and uncheck use port 80/443
0
 
Lennart EricsonAmateurAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Lennart EricsonAmateurAuthor Commented:
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
 
David Johnson, CD, MVPOwnerCommented:
what happens when you do a http:\\localhost
0
 
Lennart EricsonAmateurAuthor Commented:
It shows page can't be found
0
 
mcsweenSr. Network AdministratorCommented:
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
 
Lennart EricsonAmateurAuthor Commented:
Thanks! Worked great.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now