This Web site cannot be started. Another Web site may be using the same port

Created:

2016-11-16 12:53:24 UTC

Modified:

2017-04-24 12:08:32 UTC

0

Was this article helpful?


Have more questions?

Submit a request

This Web site cannot be started. Another Web site may be using the same port

Applicable to:

  • Plesk 10.4 for Windows
  • Plesk 11.5
  • Plesk Onyx for Windows
  • Plesk 11.5 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

Domain renaming in Plesk or Horde site startup in IIS Manager fails with error:

    This Web site cannot be started. Another Web site may be using the same port.

Cause

Duplicate host headers/bindings in IIS.

Resolution

  1. Open Windows PowerShell and execute the following script:

    Get-WebBinding | % {
    $name = $_.ItemXPath -replace '(?:.*?)name=''([^'']*)(?:.*)', '$1'
    New-Object psobject -Property @{
    Name = $name
    Binding = $_.bindinginformation.Split(":")[-1]
    }
    } | Group-Object -Property Name |
    Format-Table Name, @{n="Bindings";e={$_.Group.Binding -join "`n"}} -Wrap
  2. Find the duplicates in the output. For example:

    example.com                                     example.com      <- duplicate
    www.example.com
    ipv4.example.com
    example1.com example1.com
    www.example1.com
    ipv4.example1.com
    example.com <- duplicate
  3. Open IIS > Expand the Web Sites > Right click on a web site > Select Bindings and remove duplicates.

  4. Restart the website in IIS.

Have more questions? Submit a request
Please sign in to leave a comment.