NetTalk Central

Author Topic: Running webserver on a Server that used to have IIS installed  (Read 3704 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Running webserver on a Server that used to have IIS installed
« on: December 22, 2015, 10:24:24 PM »
Hi
I have installed a webserver application on a server.
Ir works using various ports;- 88/90/1001/92 etc but not on port 80.
IIS was installed on the server but has been removed and the server restarted.
If I run netstat -ano in command line I see that PID 4 is listening on port 80.
From Task Manager I see that PID4 is  NTKernel and system.
Is this what is interfering with the webserver?
UPDATE
OK Google is your friend. I found this link
http://serverfault.com/questions/360070/iis-7-0-will-not-release-port-80-when-service-is-stopped-cannot-run-apache-on-p
which told me to do this:
netsh http show servicestate
and look for this:
Registered URLs:
    HTTP://+:80/<SERVICE_NAME>
I found 2 entries HTTP://+:80/REPORTS_SQLEXPRESS/ and HTTP://+:80/REPORTSERVER_SQLEXPRESS/
which have taken over the port.
If I stop these services, take over the port and then restart them will there be issues or will they go and look for another port and be comfortable with it?


« Last Edit: December 22, 2015, 10:45:26 PM by terryd »
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: Running webserver on a Server that used to have IIS installed
« Reply #1 on: December 22, 2015, 11:01:58 PM »
Hi Terry,

I found this a while back. I followed the instructions and haven't had any problems since.

Quote
Problem
SSRS (SQL Server Reporting Services) uses port 80 by default on any server it’s installed on.
This is crazy annoying, because you may want to have web servers or other application servers that also use the default http port 80.
Running netstat -ano from the command line at this point usually shows you that port 80 is in use by PID 4 (the system process).
Solution
Fortunately, this isn’t too hard to fix:
•   Log on to the server that hosts SSRS.
•   Go to Start > Programs > SQL Server 2008 R2 > Configuration Tools > Reporting Services Configuration Manager
•   Connect to the server in question (usually your local server)
•   Go to the Web Service URL section
•   Change the TCP port to an open port other than port 80 (81 happened to work on my server) and hit Apply
•   Go to the Report Manager URL section
•   Click Advanced
•   Click the entry with a TCP port of 80 and then click the Edit button.
•   Change the TCP Port entry to the same thing you changed it to in the Web Service URL section previously and Click OK.
•   Click OK again.
At this point, running netstat -ano should not show an entry for port 80.

Peter
« Last Edit: December 22, 2015, 11:03:46 PM by peterH »

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Running webserver on a Server that used to have IIS installed
« Reply #2 on: December 23, 2015, 01:56:39 AM »
Thanks Peter.
Worked 100%. Goes straight into my rules to live by book ;-)
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186