Install Office SharePoint Server 2007 by using the command line

Applies To: Office SharePoint Server 2007

This Office product will reach end of support on October 10, 2017. To stay supported, you will need to upgrade. For more information, see , Resources to help you upgrade your Office 2007 servers and clients.

 

Topic Last Modified: 2016-11-14

In this article:

  • Install software requirements

  • Determine required accounts for installation

  • Install Microsoft Office SharePoint Server 2007 by running Setup at a command prompt

  • Configure the server by using the Psconfig command-line tool

  • Perform additional configuration tasks

  • Create a Shared Services Provider (SSP) by using the Stsadm command-line tool

  • Create a site collection by using the Stsadm command-line tool

  • Configure the trace log

This article discusses how to do a clean installation of Microsoft Office SharePoint Server 2007 on a stand-alone server or on a server farm by using command-line tools.

The command-line tools enable you to customize the configuration of Office SharePoint Server 2007. Additionally, you can streamline deployment by using command-line installations in combination with other administrator tools to automate unattended installations.

To install Office SharePoint Server 2007 on a server farm, you have to complete the following steps:

  1. Plan the deployment and ensure that you have installed all the software requirements.

  2. Determine the required accounts that are used during installation.

  3. Install Office SharePoint Server 2007 by running Setup at a command prompt, and specifying a configuration file.

  4. Configure the server by using the Psconfig command-line tool with the appropriate options.

  5. Create a Shared Services Provider (SSP) by using the Stsadm command-line tool (only applies on server-farm installations).

  6. Create a site collection by using the Stsadm command-line tool (only applies on server-farm installations).

Install software requirements

Before you run Setup, you must perform several actions to prepare the deployment. For more information about the complete list of actions you must perform before installation, see Chapter overview: Install Office SharePoint Server 2007 in a server farm environment. Ensure that you have the following software requirements before you run Setup:

  • Office SharePoint Server 2007 on a clean installation of the Windows Server 2003 operating system with the most recent service pack. To install Office SharePoint Server 2007 on Windows Server 2008, see Installing Microsoft Office SharePoint Server 2007 on Windows Server 2008 (https://go.microsoft.com/fwlink/?LinkId=122586&clcid=0x409).

    Note

    All the instances of Office SharePoint Server 2007 in the farm must be in the same language. For example, you cannot have both English and Japanese versions of Office SharePoint Server 2007 in the same farm.

  • The Microsoft .NET Framework version 3.0. The .NET Framework version 3.0 download contains the Windows Workflow Foundation technology, which is required by workflow features.

    Note

    You can also use the Microsoft .NET Framework version 3.5. You can download the .NET Framework version 3.5 from the Microsoft Download Center (https://go.microsoft.com/fwlink/?LinkId=110508).

  • ASP.NET 2.0 enabled in the Internet Information Services (IIS) Manager on all servers that are running Office SharePoint Server 2007.

  • Microsoft SQL Server 2000 or Microsoft SQL Server 2005 with the most recent service pack running on at least one database server before you install Office SharePoint Server 2007 on the Web servers.

To deploy a server farm, you must have at least one server computer acting as a Web server and an application server, and one server computer acting as a database server.

Determine required accounts for installation

Before installing Office SharePoint Server 2007 at a command prompt, you should understand the three-tier security model for Office SharePoint Server 2007 and the detailed account permissions that are required for each configuration. For more information, see the following resources:

The following table describes the accounts that are used during installation and configuration of Office SharePoint Server 2007. These accounts must be created and configured before you run Setup.

Account Purpose Requirements

Setup user account

The Setup user account is used to run the following:

  • Setup on each server.

  • The SharePoint Products and Technologies Configuration Wizard.

  • The Psconfig command-line tool.

  • The Stsadm command-line tool.

  • Domain user account.

  • Member of the Administrators group on each server on which Setup is run.

  • SQL Server login on the computer that is running SQL Server.

  • Member of the following SQL Server security roles:

    • securityadmin fixed server role

    • dbcreator fixed server role

If you run Stsadm command-line tool commands that read from or write to a database, the Setup user account must be a member of the db_owner fixed database role for the database.

Server farm account or database access account

The server farm account is used to:

  • Configure and manage the server farm.

  • Act as the application pool identity for the SharePoint Central Administration application pool.

  • Run the Windows SharePoint Services Timer service.

  • Domain user account.

  • If the server farm is a child farm with Web applications that consume shared services from a larger farm, the server farm account must be a member of the db_owner fixed database role on the configuration database of the larger farm.

Additional permissions are automatically granted for the server farm account on Web servers and application servers that are joined to a server farm.

The server farm account is automatically added as a SQL Server login on the computer that is running SQL Server, and added to the following SQL Server security roles:

  • dbcreator fixed server role

  • securityadmin fixed server role

  • db_owner fixed database role for all databases in the server farm

Install Microsoft Office SharePoint Server 2007 by running Setup at a command prompt

After you have determined the required accounts for the installation, you can install Office SharePoint Server 2007. The product DVD contains examples of configuration (Config.xml) files. These example files are stored under the \Files folder in the root directory of the DVD, in folders that correspond to different scenarios. These example files are described in the following table.

Configuration file Description

Setup\Config.xml

Stand-alone server installation, using Microsoft SQL Server 2005 Express Edition

SetupFarm\Config.xml

Server farm installation

SetupFarmSidebySide\Config.xml

Gradual upgrade of an existing farm

SetupFarmSilent\Config.xml

Server farm installation in silent mode

SetupFarmUpgrade\Config.xml

In-place upgrade of an existing farm

SetupSilent\Config.xml

Stand-alone server installation, using SQL Server 2005 Express Edition, in silent mode

SetupSingleUpgrade\Config.xml

In-place upgrade of an existing single-server installation

Important

The example configuration files that are included with Office SharePoint Server 2007 omit the <Setting Id="SETUP_REBOOT"Value="Never"/> setting. You must include this setting if you want to suppress restarts during a command-line installation.

Example

The following example shows the configuration file for setting up a single server in silent mode (SetupSilent).

<Configuration>

<Package Id="sts">

<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>

<Setting Id="REBOOT" Value="ReallySuppress"/>

<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>

</Package>

<Package Id="spswfe">

<Setting Id="SETUPCALLED" Value="1"/>

<Setting Id="REBOOT" Value="ReallySuppress"/>

<Setting Id="OFFICESERVERPREMIUM" Value="1" />

</Package>

<Logging Type="verbose" Path="%temp%" Template="Office Server Setup(*).log"/>

<Display Level="none" CompletionNotice="no" />

<PIDKEY Value="Enter PID Key Here" />

<Setting Id="SERVERROLE" Value="SINGLESERVER"/>

<Setting Id="USINGUIINSTALLMODE" Value="0"/>

</Configuration>

Run Setup with a Config.xml file at a command prompt

  1. On the drive on which the Office SharePoint Server 2007 product DVD is located, change to the root directory to locate the setup.exe file.

  2. Run Setup with the selected Config.xml file.

    setup /config <path and file name>

    Note

    You can select one of the example files, or customize your own configuration file.

  3. Press ENTER.

Setup is now finished.

Example

To run Setup in silent mode, type one of the following commands at a command prompt, and then press ENTER:

  • setup /config Files\SetupSilent\config.xml (for a single server deployment)

  • setup /config Files\SetupFarmSilent\config.xml (for a farm deployment)

You can also customize your own configuration file. To control the installation, first edit the Config.xml file in a text editor to include the elements that you want with the appropriate settings for those elements. Then run setup /config <path and file name> to specify that Setup runs and uses the options that you set in the Config.xml file.

Some typical configuration options include the following:

  • Bypassing the prompt for the product key by providing the key as a value, <PIDKEY Value="Enter PID Key Here" />, in the Config.xml file.

  • Adding a location for a log file, <Logging Type="off" | "standard"(default) | "verbose" Path="path" Template="file name.log"/>, which you can view if command-line installation fails.

Important

Use a text editor, such as Notepad, to edit Config.xml. Do not use a general-purpose XML editor such as Microsoft Office Word 2007.

For more information about the options available for customizing the configuration file, see Config.xml reference (Office SharePoint Server).

For more information about the command-line options for Setup, see Setup.exe command-line reference (Office SharePoint Server).

Configure the server by using the Psconfig command-line tool

You use the Psconfig command-line tool to configure Office SharePoint Server 2007 after Setup has finished. The tool is located at %COMMONPROGRAMFILES%\Microsoft shared\Web Server Extensions\12\bin. The configuration options are different depending on whether you install Office SharePoint Server 2007 on a stand-alone server or on a server farm.

For more information about the Psconfig command-line tool and its operations and parameters, see Command-line reference for the SharePoint Products and Technologies Configuration Wizard (Office SharePoint Server). For more information about the services and features that are registered during the configuration, see Using PSConfig.exe command-line options to complete SharePont Server Configuration (https://go.microsoft.com/fwlink/?LinkId=122627&clcid=0x409).

Configure SharePoint Server 2007 on a stand-alone server

In stand-alone server deployments, you can run the Psconfig command-line tool with the setup command.

After you have logged on by using the Setup user account that you previously created and configured, you configure Office SharePoint Server 2007.

Configure SharePoint Server 2007 on a stand-alone server by using the Psconfig command-line tool

  1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. Type the following command, and then press ENTER:

    psconfig -cmd setup

The Psconfig command-line tool describes the configuration steps as they occur, and notes the successful completion of configuration. For a stand-alone server installation, this is the final step in a command-line installation.

Configure SharePoint Server 2007 on a farm

In server farm deployments, you use the Psconfig command-line tool to create a new farm or connect to an existing farm. The Psconfig command-line tool installs the SharePoint Central Administration Web site on the first server in the farm. Therefore, we recommend that the first server on which you install Office SharePoint Server 2007 is a server from which you want to run the Central Administration Web site.

The following procedure describes how to configure the first server in the farm. How to add servers to the farm is described at the end of this procedure.

Note

Ensure that you follow the procedure in the order that it is written to avoid configuration problems.

Configure SharePoint Server 2007 on a farm by using the Psconfig command-line tool

  1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. Create the configuration database:

    psconfig -cmd configdb -create -server <database server name> -database <database name>

    [-dbuser <domain\user name> -dbpassword <password>]

    -user <domain\user name> -password <password>

    -addomain <domain name> -adorgunit <org unit>

    -admincontentdatabase <Central Administration Web application content database name>

    Note

    The dbuser and dbpassword parameters are only used in deployments that use SQL Server authentication. If you are using Windows authentication, these parameters are not required.

  3. Install all Help collections:

    psconfig -cmd helpcollections -installall

  4. Perform resource security enforcement:

    psconfig -cmd secureresources

  5. Register services in the server farm:

    psconfig -cmd services -install

    Note

    After installing services, you must start and configure two services, Windows SharePoint Services Search and Office SharePoint Server Search, by using the Stsadm command-line tool:

    1. stsadm -o spsearch -action start -farmserviceaccount <domain\user name> -farmservicepassword <password>[-database name <content database name>] [-database server <server instance> ] [-search server <search server name>]

      For more information, see Spsearch: Stsadm operation (Windows SharePoint Services).

    2. stsadm -o osearch -action start -role IndexQuery -farmserviceaccount <domain\user name> -farmservicepassword <password> -farmcontactemail <user@domain.com>

      For more information, see Osearch: Stsadm operation (Office SharePoint Server).

    3. Provision the services of the farm:

      psconfig -cmd services -provision

  6. Register all features:

    psconfig -cmd installfeatures

  7. Provision the SharePoint Central Administration Web application:

    psconfig -cmd adminvs -provision -port <port> -windowsauthprovider onlyusentlm

  8. Install shared application data:

    psconfig -cmd applicationcontent -install

The SharePoint Central Administration Web site has now been created.

We recommend that you install and configure Office SharePoint Server 2007 on all of the farm servers before you create sites.

Note

If any of these commands fail, look in the post-setup configuration log files. The log files are available at %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Logs, and can be identified by a file name that begins with “PSC” and the .log file name extension.

To connect to an existing configuration database and join the server to an existing server farm, you have to run the configdb command together with the -connect parameter instead of the -create parameter.

psconfig -cmd configdb -connect -server <server name> -database <database name>

Note

Omit the -admincontentdatabase command because you have already included this command when you created the configuration database.

Use the psconfig -cmd adminvs -provision -port <port> -windowsauthprovider onlyusentlm command if you want to provision the SharePoint Central Administration Web application on additional servers, which reduces the risk if the server that is running the SharePoint Central Administration Web application fails.

To successfully complete the command-line installation on a server farm, you must use the Stsadm command-line tool to create the Shared Services Provider (SSP), and then a site collection for the farm. However, before you create the SSP and a site collection, we recommend that you first perform some additional configuration tasks.

Perform additional configuration tasks

After you have installed Office SharePoint Server 2007, we recommend that you perform the following administrative tasks:

Create a Shared Services Provider (SSP) by using the Stsadm command-line tool

After you create and configure Office SharePoint Server 2007 on a farm, you must use the Stsadm command-line tool to create the SSP for the farm. The Stsadm command-line tool is available on the installation drive for Office SharePoint Server 2007 at %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

Important

To run the Stsadm command-line tool, you must be a member of the Administrators group on the local computer.

The recommended procedure for creating an SSP is to create a Web application for the My Site host location, and a separate Web application for the Shared Services Administration Web site. To create a new Web application, use the following procedure.

Create a Web application by using the Stsadm command-line tool

  1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. Type the following command, and then press ENTER:

    stsadm -o extendvs

    -url <URL name>

    -ownerlogin <domain\user name>

    -owneremail <e-mail address>

    [-exclusivelyusentlm]

    [-ownername <display name>]

    [-databaseuser <database user name>]

    [-databaseserver <database server name>]

    [-databasename <new content database name>]

    [-databasepassword <database password>]

    [-lcid <language>]

    [-sitetemplate <site template>]

    [-donotcreatesite]

    [-description]

    [-sethostheader]

    [-apidname <application pool name>]

    [-apidtype {configurableID | NetworkService}]

    [-apidlogin <domain\user name>]

    [-apidpwd <application pool password>]

    [-allowanonymous]

    For more information, see Extendvs: Stsadm operation (Office SharePoint Server).

The extendvs operation creates the Web application. The donotcreatesite parameter creates the Web application without creating a site collection on the Web application.

After creating the Web applications for the My Site host location and for the Shared Services Administration Web site, you create the SSP.

Create an SSP by using the Stsadm command-line tool

  1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. Type the following command, and then press ENTER:

    stsadm -o createssp

    -title <SSP name>

    -url <Web application URL>

    -mysiteurl <My Site Web application URL>

    -ssplogin <user name>

    -indexserver <index server name>

    -indexlocation <index file path>

    [-ssppassword <password>]

    [-sspdatabaseserver <SSP database server name>]

    [-sspdatabasename <SSP database name>]

    [-sspsqlauthlogin <SQL user name**]**

    [-sspsqlauthpassword <SQL password>]

    [-searchdatabaseserver <search database server name>]

    [-searchdatabasename <search database name>]

    [-searchsqlauthlogin <SQL user name>]

    [-searchsqlauthpassword <SQL password>]

    [-ssl {Yes | No}]

    For more information, see Createssp: Stsadm operation (Office SharePoint Server).

Example

The following command creates a Web application with the URL http://intranet:8080 that can be used to host the SSP Administration site.

stsadm -o extendvs -url http://intranet:8080 -ownerlogin <domain\user name> -owneremail <user@domain.com> -exclusivelyusentlm -databaseserver <database server name> -databasename <SSP content database> -donotcreatesite -apidname <SSP application pool name> -apidtype {configurableID | NetworkService} -apidlogin <domain\user name> -apidpwd <password>

Similarly, you can create another Web application as the My Site host location by using the following command:

stsadm -o extendvs -url http://intranet:8090 -ownerlogin <domain\user name> -owneremail <user@domain.com> -exclusivelyusentlm -databaseserver <database server name > -databasename <My Sites content database name> -donotcreatesite -apidname <My Sites application pool name> -apidtype {configurableID | NetworkService} -apidlogin <domain\user name> -apidpwd <password>

Then you create the SSP, named MySSP1_db:

stsadm -o createssp -title MySSP1 -url http://intranet -mysiteurl http://intranet:8090 -ssplogin <domain\user name> -ssppassword <password> -sspdatabaseserver <SSP database server name > -sspdatabasename MySSP1_db -indexserver <index server name> -indexlocation "D:\Program Files\Microsoft Office Servers\12.0\Data\Office Server\Applications" -searchdatabaseserver <search database server name> -searchdatabasename <search database name>

For more information, see Stsadm command-line tool (Office SharePoint Server).

Create a site collection by using the Stsadm command-line tool

You create the top-level site collection by using the same extendvs command that you used to create the Web applications for My Sites and the Shared Services Administration Web site

Important

To run the Stsadm command-line tool, you must be a member of the Administrators group on the local computer.

Create a site collection by using the Stsadm command-line tool

  1. On the drive on which SharePoint Products and Technologies is installed, change to the following directory: %COMMONPROGRAMFILES%\Microsoft shared\Web server extensions\12\Bin.

  2. Type the following command, and then press ENTER:

    stsadm -o extendvs

    -url <URL name>

    -ownerlogin <domain\user name>

    -owneremail <e-mail address>

    [-exclusivelyusentlm]

    [-ownername <display name>]

    [-databaseuser <database user name>]

    [-databaseserver <database server name>]

    [-databasename <new content database name>]

    [-databasepassword <database password>]

    [-lcid <language>]

    [-sitetemplate <site template>]

    [-donotcreatesite]

    [-description]

    [-sethostheader]

    [-apidname <application pool name>]

    [-apidtype {configurableID | NetworkService}]

    [-apidlogin <domain\user name>]

    [-apidpwd <application pool password>]

    [-allowanonymous]

    For more information, see Extendvs: Stsadm operation (Office SharePoint Server) and Stsadm command-line tool (Office SharePoint Server).

Example

The following command creates a site collection at http://intranet that uses the corporate intranet site template.

stsadm -o extendvs -url http://intranet -ownerlogin <domain\user name> -owneremail <user@domain.com> -exclusivelyusentlm -sitetemplate SPSPORTAL -apidname "SharePoint AppPool" -apidtype {configurableID | NetworkService} -apidlogin < domain\user name> -apidpwd <password>

If you do not specify the site template to use, site owners can choose the site template when they first browse to the site.

The following table lists common templates.

Parameter value Description

STS#0

Team site

STS#1

Blank site

STS#2

Document workspace

MPS#0

Basic meeting workspace

MPS#1

Blank meeting workspace

MPS#2

Decision meeting workspace

MPS#3

Social meeting workspace

MPS#4

Multipage meeting workspace

BLOG#0

Blog

WIKI#0

Wiki site

If you want to create additional Web applications or site collections by using the Stsadm command-line tool, you can use either the extendvs operation or the createsite operation.

The extendvs operation extends a Web application and creates a new content database. The createsite operation creates a site collection at a specific URL with a specified user as a site owner.

Note

The createsite operation does not create a new content database. If you want to create a new content database with the new site, use the createsiteinnewdb operation.

For more information, see Createsite: Stsadm operation (Office SharePoint Server) and Createsiteinnewdb: Stsadm operation (Office SharePoint Server).

The extendvs operation also enables site collection administrators to specify the language of the site collection by using the Locale ID (LCID) parameter. If you do not specify an LCID, the language of the server is used for the top-level site collection. For more information about the available LCID values, see List of Locale ID (LCID) Values as Assigned by Microsoft (https://go.microsoft.com/fwlink/?LinkId=63028&clcid=0x409).

After creating sites, you might want to configure alternate access mappings. Alternate access mappings direct users to the correct URLs during their interaction with Office SharePoint Server 2007 (while browsing to the home page of a Office SharePoint Server 2007 Web site, for example). Alternate access mappings enable Office SharePoint Server 2007 to map Web requests to the correct Web applications and sites, and they enable Office SharePoint Server 2007 to serve the correct content back to the user. For more information, see Plan alternate access mappings.

Configure the trace log

The trace log can be useful for analyzing problems that might occur. You can use events that are written to the trace log to determine what configuration changes were made in Office SharePoint Server 2007 before the problem occurred.

By default, Office SharePoint Server 2007 saves two days of events in the trace log files. This means that trace log files that contain events that are older than two days are deleted. When you are using the Windows SharePoint Services Search service, we recommend that you configure the trace log to save seven days of events.

You can use the Diagnostic Logging page in Central Administration to configure the maximum number of trace log files to maintain, and how long (in minutes) to capture events to each log file. By default, 96 log files are kept, each one containing 30 minutes of events.

96 log files * 30 minutes of events per file = 2880 minutes or two days of events.

You can also specify where the log files are written or accept the default path.

Trace log files can help you troubleshoot issues related to configuration changes of the Windows SharePoint Services Search service. Because problems related to configuration changes are not always immediately discovered, we recommend that you save all trace log files that the system creates on any day that you make any configuration changes. Store these log files for some time in a safe location that will not be overwritten. We recommend that you store log files on a hard disk drive partition that is used to store log files only.

Download this book

This topic is included in the following downloadable book for easier reading and printing:

See the full list of available books at Downloadable books for Office SharePoint Server 2007 (https://go.microsoft.com/fwlink/?LinkId=122600&clcid=0x409).

See Also

Concepts

Plan for security roles (Office SharePoint Server)
Plan for administrative and service accounts (Office SharePoint Server)

Other Resources

Office SharePoint Server Security Account Requirements