![]() | |||||
![]() ![]() ![]() ![]() ![]() |
Before extending a virtual server, you must first make sure that you've created it in Internet Information Services (IIS). Also, if you are adding a server to a farm, you must connect the content database to the virtual server before extending.
Note To complete this procedure, you must be logged on as a member of the Administrators group on the local computer, or you must be logged on using an account that is both a member of the SharePoint administrators group and that has been granted permissions to administer IIS.
Create a virtual server in IIS
If you are adding a new virtual server to an existing server, you must create the virtual server in IIS first. To do this, create a folder on your hard disk (usually under the \Inetpub folder) to store the virtual server's files and then add the virtual server in IIS.
You do not need to assign a host header, because Microsoft Windows SharePoint Services handles the hosting.
The default permissions, Read and Run Scripts (such as ASP), are recommended. Windows SharePoint Services adds the Execute (such as ISAPI applications or CGI) permission automatically to the appropriate folders.
For more information about creating Web sites on servers running the Microsoft Windows Server 2003, see Help for IIS.
Connecting to a configuration database (server farm only)
If you are adding a server to a server farm, and provisioning the first virtual server for that server, you must connect to the configuration database for your server farm before you can extend the virtual server. To connect to a configuration database, use the Set Configuration Database Server page. For more information, see Specifying configuration database settings. After you have connected to the configuration database, you can extend the virtual server.
Remove FrontPage Server Extensions (if installed)
Note If you wish to preserve the content from your FrontPage 2002 Server Extensions-based site, use the Microsoft SharePoint Migration tool (smigrate.exe) to migrate the content to your new Windows SharePoint Services-based site before uninstalling. For information on smigrate, see About migrating Web sites.
cd ..\..\program files\common files\microsoft shared\web server extensions\50\bin
owsadm.exe -o fulluninstall -p <port number>
Extend and create a content database by using SharePoint Central Administration
Notes
If you selected Use an existing application pool, select the application pool to use. If you selected Create a new application pool, type the new application pool name, user name, and password to use.
The virtual server is extended, a site is created at the root of the virtual server, and the browser window returns to the Virtual Server Settings page, where you can configure default settings for new top-level Web sites.
When you connect to an existing content database, you do not need to create a top-level Web site. After you extend the virtual server, the virtual server hosts the existing sites in the database.
Extend and connect to an existing content database by using SharePoint Central Administration
Notes
If you selected Use an existing application pool, select the application pool to use. If you selected Create a new application pool, type the new application pool name, user name, and password to use.
The virtual server is extended and can now provide the same content as the other virtual servers pointing to that content database. You can add a new top-level Web site to the virtual server if you need to, and it will be hosted by any virtual server that is connected to the content database.
Extending a virtual server from the command line
You can extend virtual servers from the command line by using the extendvs operation. The extendvs operation allows you to extend a virtual server and either connect to an existing content database or create a new content database, specify the language for the top-level Web site, and specify a template to use for the top-level Web site. The extendvs operation takes the following required parameters: url, ownerlogin, owneremail and the following optional parameters: ownername, databaseserver (ds), databaseuser (du), databasepassword (dp), databasename (dn), lcid, sitetemplate, donotcreatesite, apcreatenew, apidname, apidtype, apidlogin, and apidpwd.
The lcid parameter allows you to specify a language to use for the default top-level Web site. For example, to specify U.S. English as the language to use, type -lcid 1033 on the command line. If you do not specify a locale ID (LCID) by using the lcid parameter, the language of the server is used for the default top-level Web site.
The donotcreatesite parameter allows you to extend a virtual server and create a content database without a top-level Web site. Use this parameter when you are setting up a server farm and hosting sites with URLs like http://server_name/site1, http://server_name/site2, and so on. (To use this site naming scheme, you must create a wildcard inclusion for the path under which you create the sites. For more information about inclusions, see About managed paths.)
The sitetemplate parameter allows you to extend a virtual server, create a top-level Web site, and apply a site template to the top-level Web site during site creation. If you do not use the sitetemplate parameter, the site owner can choose a site template when he or she first goes to the site.
To extend a virtual server and use the default content database server and default application pool, use the following syntax:
Stsadm –o extendvs -url <url> -ownerlogin DOMAIN\username -owneremail
someone@example.com [-ownername <full name>]
To extend a virtual server, specify a content database name and server, and create a new application pool, use the following syntax:
stsadm -o extendvs -url <url> -ownerlogin DOMAIN\user -owneremail
someone@example.com [-ownername <full name>] -ds <database server name>
[-du <database user name> -dp <password>] -dn <database name>
-lcid <lcid> -sitetemplate sts -apcreatenew -apidname <application pool name>
-apidtype <configurableid/NetworkService/LocalService/LocalSystem>
-apidlogin <DOMAIN\name> -apidpwd <password>
Note that you do not need the -du and -dp parameters if you are using Windows authentication to connect to the SQL Server databases.
To extend a virtual server and create a new application pool, use the following syntax:
stsadm -o extendvs -url <url> -ds <database server name>
[-du <database user name> -dp <password>] -dn <database name>
-ownerlogin <owner login as DOMAIN\username> -owneremail <e-mail address
as someone@example.com> -ownername <owner's full name as "Owner
Name"> -lcid <lcid>
If you are in a server farm environment, you can use the extendvsinwebfarm operation. The extendvsinwebfarm operation uses the following syntax:
stsadm -o extendvsinwebfarm -url <url> -vsname <virtualservername>
[-apcreatenew] [-apidname <app pool id>]
[-apidtype <configurableid/NetworkService/LocalService/LocalSystem>]
[-apidlogin <app pool user account>]
[-apidpwd <app pool password>]