Introduction
This document is written to meet the requirements of information technology (IT) professionals who will be responsible for the installation of Office SharePoint Server. This document will cover the procedures and recommendations for installing MOSS via the command line. This will include describing how to install the product by running Setup.exe from the command line and passing in a Config.xml file that can be customized further based on the installation options required. As well as how to use the admin tools PSConfig.exe and STSADM.exe to perform actions via the command line such as configuration and site creation.
Before you begin deployment
This section provides information about actions that you must perform before you begin deployment.
· Plan for security roles (Office SharePoint Server) gives an overview of the three-tier security model.
· Plan for administrative and service accounts (Office SharePoint Server) gives detailed information.
· Office SharePoint Server Security Account Requirements is a planning tool that lists accounts to use in various scenarios, including three flavors of least-privilege administration (domain user accounts, SQL authentication, and domain user accounts connecting to pre-created databases).
Overview of the deployment process
The deployment process consists of two phases: installing and configuring the server, and creating the Shared Services Provider and Site Collections.
Phase 1: Installing and configuring the server
1. Install MOSS by running Setup.exe with the appropriate Config.xml file.
2. Configure it and create the administration Web application by running PSConfig.exe with the appropriate options.
Phase2: Creating and configuring the shared services providers and site collections
3. Create a Shared Services Provider by running STSADM.exe operation (for farm installation).
4. Create a site collection by running STSADM.exe operation (for farm installation).
For a Standalone install only the above first two steps are required and after running psconfig.exe installation will be complete with the Standalone config. For a Farm install, additional command line options will be required when running psconfig.exe and additional steps using stsadm.exe will be needed to complete the Farm installation.
Prerequisites
1. Windows Server 2003 SP1
2. Configure IIS with ASP.Net enabled
3. .NET Framework 2.0 with Web Service Extensions enabled
4. Windows Workflow Foundations installed
5. SQL Server 2000 SP3 or SQL Server 2005 SP1 (for Farm configuration)
Permissions
To perform installation the user account running setup will need to be a member of the local Administrators group and have rights on the SQL server for the following actions:
· Creating new databases
· Read and write permissions
This translates into the dbcreator and securityadmin SQL server roles for the user account.
For more information about the SQL Server rights required refer to this document: http://technet2.microsoft.com/Office/en-us/library/f07768d4-ca37-447a-a056-1a67d93ef5401033.mspx?mfr=true
Setup.exe and Config.xml for Installation
Running setup can either be done in full UI mode by double-clicking on the setup.exe file or in silent mode by running the setup.exe via the command line and passing in a Config.xml file. Within the product DVD are contained examples of Config.xml files that can be used. The Config.xml file along with Setup.exe can be used for the controlling how Microsoft Office SharePoint Server will be installed.
The product DVD contains examples of Config.xml files that you can use as starting points for customizing your installation. The example files are stored under the \Files folder at the root of the DVD, in folders that correspond to different scenarios. The folders are:
|
• |
Setup - Contains a config.xml file for use in setting up a clean installation for a single server (stand-alone, with SQL Express). |
|
• |
SetupFarm - Contains a config.xml file for use in setting up a clean installation for a server farm. |
|
• |
SetupFarmSidebySide - Contains a config.xml file for use in upgrading an existing server farm gradually. |
|
• |
SetupFarmSilent - Contains a config.xml file for use in setting up a server farm in silent mode. |
|
• |
SetupFarmUpgrade - Contains a config.xml file for use in upgrading an existing server farm in place. |
|
• |
SetupSilent - Contains a config.xml file for use in setting up a clean installation for a single server (stand-alone, with SQL Express) in silent mode. |
|
• |
SetupSingleUpgrade - Contains a config.xml file for use in upgrading an existing single server (stand-alone) in place. |
To see more info about the Config.xml:
http://technet2.microsoft.com/Office/en-us/library/003e5316-1018-4949-ac54-42fa12c5e51e1033.mspx
We will examine using the SetupSilent\Config.xml to set up a clean installation for a single standalone server in silent mode and the SetupFarmSilent\Config.xml to set up a server farm in silent mode.
To run setup in silent mode via the command line you will run:
(for a Standalone install)
setup.exe /config Files\SetupSilent\config.xml
OR
(for a Farm install)
setup.exe /config Files\SetupFarmSilent\config.xml
Here is an example of the Config.xml file:
<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>
Note that you will need to bypass the prompt for the product key by providing it in the config.xml value:
<PIDKEY Value="Enter PID Key Here" />
Also note the logging path for the log file to view if you encounter a failed installation:
<Logging Type="verbose" Path="%temp%" Template="Office Server Setup(*).log"/>
To see the complete list of options for Setup.exe:
http://technet2.microsoft.com/Office/en-us/library/7e45c7b1-de7f-4f8f-81cd-7070ce483a821033.mspx
PSConfig.exe for Configuration
The PSConfig.exe command line tool is used to configure the product after setup has completed. The default location of the tool: c:\program files\common files\microsoft shared\web server extensions\12\bin.
After setup has completed, you can run PSConfig to perform the configuration setup based on installation mode. If SharePoint is installed in Standalone mode then the Standalone configuration will be performed by running the setup command. If SharePoint is installed in Farm mode there are a series of PSConfig.exe commands that will need to be run to complete configuration.
Standalone Install:
Running PSConfig.exe with the setup command will complete installation on a Standalone install. The Standalone install will be complete with web applications and site collections for a SharePoint Server install.
PSConfig.exe –cmd setup
The output will be displayed on the command window and when finished will result in a completed Standalone installation.
Farm Install:
To create a new server farm or connect to an existing server farm the following steps will need to be run in the following order:
1. Create the ConfigDB:
PSConfig.exe -cmd configdb -create -server <Server_name> -database <Database_name>
-dbuser <DOMAIN\username> -dbpassword <password>
-user <DOMAIN\username> -password <password>
-addomain <domain_name> -adorgunit <org_unit>
-admincontentdatabase <Database_name>
Note that if you wish to connect to an existing configuration database and join the server to an existing server farm you will need to perform the ConfigDB command with the -connect parameter
Sample Output:
Performing configuration task 1 of 3
Initializing SharePoint Products and Technologies configuration...
Successfully initialized the SharePoint Products and Technologies configuration.
Performing configuration task 2 of 3
Creating the configuration database...
Successfully created the configuration database.
Performing configuration task 3 of 3
Finalizing the SharePoint Products and Technologies configuration...
Successfully completed the SharePoint Products and Technologies configuration.
Total number of configuration settings run: 3
Total number of successful configuration settings: 3
Total number of unsuccessful configuration settings: 0
Successfully stopped the configuration of SharePoint Products and Technologies.
Configuration of the SharePoint Products and Technologies has succeeded.
2. Install all HelpCollections
psconfig.exe -cmd helpcollections installall
Sample Output:
Performing configuration task 1 of 3
Initializing SharePoint Products and Technologies configuration...
Successfully initialized the SharePoint Products and Technologies configuration
Performing configuration task 2 of 3
Installing help collections...
Successfully installed help collections.
Performing configuration task 3 of 3
Finalizing the SharePoint Products and Technologies configuration...
Successfully completed the SharePoint Products and Technologies configuration.
Total number of configuration settings run: 3
Total number of successful configuration settings: 3
Total number of unsuccessful configuration settings: 0
Successfully stopped the configuration of SharePoint Products and Technologies.
Configuration of the SharePoint Products and Technologies has succeeded.
3. Perform resource security enforcement
psconfig.exe -cmd secureresources
Sample Output:
Performing configuration task 1 of 3
Initializing SharePoint Products and Technologies configuration...
Successfully initialized the SharePoint Products and Technologies configuration.
Performing configuration task 2 of 3
Securing the SharePoint resources...
Successfully secured resource 'HKEY_LOCAL_MACHINE\Software\Microsoft\Office Serv
er\12.0\LoadBalancerSettings' of type 'RegKey' by granting security group 'Local
Service' 'Read' permissions .
Successfully secured resource 'D:\Program Files\Microsoft Office Servers\12.0\We
bServices\Root' of type 'Directory' by granting security group 'Users' 'Read, Ex
ecute' permissions .
…
Successfully secured the SharePoint resources.
Performing configuration task 3 of 3
Finalizing the SharePoint Products and Technologies configuration...
Successfully completed the SharePoint Products and Technologies configuration.
Total number of configuration settings run: 3
Total number of successful configuration settings: 3
Total number of unsuccessful configuration settings: 0
Successfully stopped the configuration of SharePoint Products and Technologies.
Configuration of the SharePoint Products and Technologies has succeeded.
4. Register the services in the server farm
psconfig.exe -cmd services -install
Sample Output:
Performing configuration task 1 of 3
Initializing SharePoint Products and Technologies configuration...
Successfully initialized the SharePoint Products and Technologies configuration.
Performing configuration task 2 of 3
Registering SharePoint services...
Successfully installed service: Excel Calculation Services.
Successfully installed service instance: Excel Calculation Services.
Successfully installed service: Forms Service.
Successfully installed service: Office SharePoint Usage Analytics Service.
Successfully installed service instance: Office SharePoint Usage Analytics Service.
Successfully installed service: Business Data Catalog.
Successfully installed service instance: Business Data Catalog.
Successfully installed service: Office SharePoint Server Diagnostics Service.
Successfully installed service: Shared Services Timer.
Successfully installed service instance: Shared Services Timer.
Successfully installed service: SSP Job Control Service.
Successfully installed service instance: SSP Job Control Service.
Successfully installed service: Session State Service.
Successfully installed service instance: Session State.
Successfully installed service: User Profile Service.
Successfully installed service: Document Conversions Launcher Service.
Successfully installed service instance: Document Conversions Launcher Service.
Successfully installed service: Document Conversions Load Balancer Service.
Successfully installed service instance: Document Conversions Load Balancer Service.
Successfully installed service: Office SharePoint Server Search Admin Web Service.
Successfully installed service instance: Office SharePoint Server Search Admin Web Service.
Successfully installed service: Office SharePoint Server Search.
Successfully installed service instance: Office SharePoint Server Search.
Successfully installed service instance: Office SharePoint Server Search.
Successfully installed service: Windows SharePoint Diagnostics Service.
Successfully installed service: Portal Service.
Successfully installed service instance: Portal Service.
Successfully installed service: Single Sign-on Service.
Successfully installed service instance: Single Sign-on Service.
Successfully installed service: Windows SharePoint Services Help Search.
Successfully installed service instance: Windows SharePoint Services Help Search
Successfully installed service instance: Windows SharePoint Services Search.
Successfully registered SharePoint services.
Performing configuration task 3 of 3
Finalizing the SharePoint Products and Technologies configuration...
Successfully completed the SharePoint Products and Technologies configuration.
Total number of configuration settings run: 3
Total number of successful configuration settings: 3
Total number of unsuccessful configuration settings: 0
Successfully stopped the configuration of SharePoint Products and Technologies.
Configuration of the SharePoint Products and Technologies has succeeded.
Note that before you can provision we will need to start and configure the Search service via the STSADM.exe command (more information about STSADM.exe later on):
Start the Windows SharePoint Services Search:
stsadm -o spsearch -action start -farmserviceaccount Redmond\user -farmservicepassword MyPassword