In our SharePoint 2010 environment we had two sites on port 80: http://sharepoint and http://intranet
During the SP2013 upgrade, I used this powershell script to create an NTLM-based web application and then converted one of the sites (http://sharepoint) to claims-based authentication. Everything worked fine.
New-SPWebApplication -Name "SharePoint" -Port 80 -url http://sharepoint -ApplicationPool "ClassicAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "domain\spadmin")
Now, I am trying to do the same with the other site (http://intranet) using same method (first create NTLM web application, attach database upgrade, then convert to claims) and get the error below. Should I be using the HostHeaders command to set up another site on 80?
New-SPWebApplication -Name "Intranet" -Port 80 -url http://intranet -ApplicationPool "ClassicAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "domain\spadmin")
New-SPWebApplication : The IIS Web Site you have selected is in use by SharePoint. You must select another port or hostname.
At line:1 char:1
+ New-SPWebApplication -Name "Intranet" -Port 80 -url http://intranet
-Appl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:
SPCmdletNewSPWebApplication) [New-SPWebApplication], ArgumentException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWeb
Application
During the SP2013 upgrade, I used this powershell script to create an NTLM-based web application and then converted one of the sites (http://sharepoint) to claims-based authentication. Everything worked fine.
New-SPWebApplication -Name "SharePoint" -Port 80 -url http://sharepoint -ApplicationPool "ClassicAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "domain\spadmin")
Now, I am trying to do the same with the other site (http://intranet) using same method (first create NTLM web application, attach database upgrade, then convert to claims) and get the error below. Should I be using the HostHeaders command to set up another site on 80?
New-SPWebApplication -Name "Intranet" -Port 80 -url http://intranet -ApplicationPool "ClassicAppPool" -AuthenticationMethod "NTLM" -ApplicationPoolAccount (Get-SPManagedAccount "domain\spadmin")
New-SPWebApplication : The IIS Web Site you have selected is in use by SharePoint. You must select another port or hostname.
At line:1 char:1
+ New-SPWebApplication -Name "Intranet" -Port 80 -url http://intranet
-Appl ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...PWebApplication:
SPCmdletNewSPWebApplication) [New-SPWebApplication], ArgumentException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewSPWeb
Application