Disable IIS service on Windows Server 2008

I have a conflict between Apache and IIS on Windows Server 2008. They both want control over port 80; we don't use IIS for anything so I wanted to disable the service.

However I can't find it anywhere! Is this something that can be disabled? I'd rather disable than remove the feature, in case anything IS using IIS after all.

Thanks in advance Duncan


Solution 1:

Don't just disable the service. Go to your server manager and remove the Web Server role from the machine. That will make sure something doesn't accidentally (or maliciously) start the service again for some reason. It will keep windows update from wanting to install patches for IIS (unless you install it again) and is just cleaner.

Solution 2:

Option 1

If you want to be able to start the service ad-hoc later, the you could just disable the Windows Service

IIS Admin Service

Update: this service is only there if you've enabled IIS 6 compatibility.

This is the service to disable:

World Wide Web Publishing Service

Option 2

Remove the Web Server (IIS) Role. This will permanently remove the feature from your server. You'll have to add the role later if you think you'll need the service.

Solution 3:

Change the port of IIS to another one. By default it's port is 80 but you can change it. So later you can use both.