Re: Create a site from command line



Hi there,

I get the same error message, but my scenario is a little different.

I created this web app in prodcution "mysharepoint.com" at port 80 with host
header. Eventually, this site was bound to port 443 using SSL Binding.
Because it was live in production, I cannot just delete and recreate it. Now
I want to create another web app using the same host header, but pointing to
port 80 instead and I got this error message. On IIS, I took out the host
header value for the https app but somehow Sharepoint still thinks that this
app is still bound to port 80.

Please help.

""Lambert Qin [MSFT]"" wrote:

Hi super1,

I am glad to hear that the information is helpful. Thank you for your
additional sharing and feedbacks. I believe that other newsgroup customers
will benefit from it.

It is my pleasure to work with you on this issue. For your reference, I
have summarized this issue as the following:

-----------------------------------------------------------------
Problem Description
-----------------------------------------------------------------
When customer was trying to create a new web application from the command
line. He got an error saying the IIS Web site you have selected is in use
by SharePoint.
If he ran the exact same script again and changed the -url from https:// to
http://, it worked.

Here are the command script:
stsadm -o extendvs
-url https://chemistry.sharepointdev.company.com
-ownerlogin DOMAIN\ACCOUNT
-owneremail EMAIL@xxxxxxxxxxx
-exclusivelyusentlm
-databaseserver spssqldev-1
-databasename WSS_ChemistryContent
-description chemistry.sharepointdev.company.com
-apidname AASharePoint

-----------------------------------------------------------------
Cause
-----------------------------------------------------------------
The parameter "url" indicated the name of the Web application and the value
should be a valid URL name, such as http://server_name:Port, SharePoint
would get the port number from the parameter.
If you didn't specify the port number in the "url" parameter, SharePoint
will use the default port number 80 for http and 443 for https

There was a site existed in the port 80, the error "the IIS Web site you
have selected is in use" should be shown if you created another site
without specifying the host header in the same port.

-----------------------------------------------------------------
Resolution
-----------------------------------------------------------------
Add the parameter "sethostheader" in order to enable the host header.

For more information about Extendvs: Stsadm operation (Office SharePoint
Server) command, please refer to
http://technet.microsoft.com/en-us/library/cc263040.aspx

After the web application created, you need to create a site collection
using "stsadm -o createsite" command.

For more information about Createsite: Stsadm operation (Office SharePoint
Server) command, please refer to:
http://technet.microsoft.com/en-us/library/cc262594.aspx



Thanks for your contribution again. If you need any assistance in the
future, please feel free to post in our newsgroup.


Sincerely,
Lambert Qin
Microsoft Online Support

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights
.



Relevant Pages

  • Re: more than one WSS 3.0 Web Application on the same server
    ... I went into IIS and tried browsing Test02 from there and still received the ... Same IP + Host Header ... Same IP + Unique Port ...
    (microsoft.public.sharepoint.windowsservices)
  • Bug is restore when useing host headers
    ... I have a server with 3 web applications running on port 80 with different ... host headers... ... and in checking IIS sure enough the restore doesn't fill in the host header ... adding the host header in each time. ...
    (microsoft.public.sharepoint.windowsservices)
  • IE 6 on Win2K generates non RFC Host: header on redirect
    ... Specifically if the redirect is to an address ... specifying a port number, the Host header does not include the required port ... generating the Host: HTTP header. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: External drives not installing or working properly on USB
    ... with the USB system before but these disappearred when I disabled the ... Only one of the five host controllers is connected to the 6 ... work on any port on the PC? ... operating system to recognise the four additional 'drives'. ...
    (microsoft.public.windowsxp.general)
  • Re: A firewall wont stop this one
    ... On top of that I implement IPF on each host ... >> for further access control to limit NFS, ... By restricting access to the NFS server. ... >> via port filtering that only allowed specific hosts rather than all. ...
    (alt.computer.security)

Loading