Installing SharePoint 2010
Installing SharePoint 2010 on Windows 7
When you create or customize SharePoint solutions, it is usually best to develop the solution on a local computer where Microsoft SharePoint Server 2010 or Microsoft SharePoint Foundation 2010 is installed. This tutorial describes how to install a development environment with Microsoft SharePoint 2010.
In order to use this tutorial do not require any software purchase for a developer that wants to be familiar with the new release of SharePoint 2010
Choose and Preconfigure the Operating System : The requirements for a development environment are less stringent and costly than the requirements for a production environment, and the guidelines in this topic do not support a production environment installation. You have several options for preconfiguring the operating system of a local computer on which you will install SharePoint 2010 for development purposes. The choice that you make will be determined by factors specific to your organization and environment (such as budget, the size of your development team, and the operating systems that you and your organization are already using).
In any development environment, you should use a computer with an x64-capable CPU, and at least 2 gigabytes (GB) of RAM to install and run SharePoint Foundation; 4 GB of RAM is preferable. You should use a computer with 4 GB of RAM to install and run SharePoint Server; 6 GB to 8 GB of RAM is preferable.
Following are the options:
- Install SharePoint on Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64).
- Use Microsoft Hyper-V and install SharePoint on a virtual machine running a Windows Server 2008 Service Pack 2 x64 (or Windows Server 2008 R2 x64) guest operating system.
- Install SharePoint on Windows 7 x64, Windows Vista Service Pack 1 x64, or Windows Vista Service Pack 2 x64.
- Use Microsoft Hyper-V and install SharePoint on a virtual machine running a Windows 7 x64, Windows Vista Service Pack 1 x64, or Windows Vista Service Pack 2 x64 guest operating system.
We are going to use Option three (3) Install SharePoint on Windows 7 x64 for this tutorial…
Before starting I assume that Visual Studio 2010 and MS SQL Server 2008 is already installed on the Windows 7 x64 System (As MOSS 2010 requires a 64 bits OS to run.) if not one can download trial version from the following link given below:
Download and install trial version of both the software.
- You must install the WCF Hotfix for Microsoft Windows. The hotfix is available for Windows Server 2008 Service Pack 2, Windows Vista Service Pack 1, and Windows Vista Service Pack 2 and for Windows Server 2008 R2 and Windows 7.
- You must install the ADO.NET Data Services Update for .NET Framework 3.5 SP1 to enable REST-based data services. This update is available for Windows Server 2008 Service Pack 2, Windows Vista Service Pack 1, and Windows Vista Service Pack 2 and for Windows Server 2008 R2 and Windows 7.
Downloading the Microsoft SharePoint Server 2010 new release Go to the below page to download the Microsoft SharePoint Server 2010. You have to register to access to the download.
Download the Microsoft SharePoint Server 2010
Choose the SharePoint Server 2010 for Internet Sites, Enterprise(the Enterprise version will give you all the SharePoint 2010 features)
.. SharePoint Server 2010 system requirements
Note : If you have the previous SharePoint 2010 Beta version installed on this machine, uninstall it and uninstall also the Microsoft “Geneva” Framework, As précised by Microsoft : “If you have Microsoft “Geneva” Framework installed, you must uninstall it before you install the Windows Identity Foundation (WIF).”7 Configuring the server – Configuration Operations for SharePoint 2010.
Installing Prerequisites Software manually
Downloading and installing SQL Server 2008 SP1 :
First, we have to update the previously installed SQL Server with the SP1 downloadable at : SQL Server 2008 Service Pack 1.. Do not forget to choose the x64 package
Downloading and installing Cumulative update package 2 for SQL Server 2008 Service Pack 1 :
Then, we have to install the Cumulative Update package 2 for SQL Server 2008 Service Pack 1. We also could install a later Cumulative Update, except the 3 as Microsoft précises it : “We do not recommend that you use CU3 or CU4, but instead CU2, CU5, or a later CU than CU5.”
Cumulative update package 2 for SQL Server 2008 Service Pack 1 (Follow the registration process. You will be provided an auto extractable package that needs a password and the appropriate password.)
Downloading and installing SQL Server 2008 Analysis Services ADOMD.NET :
For ending with the products related to SQL Server 2008 download and install the SQL Server 2008 Analysis Services ADOMD.NET. This is normally installed by the prerequisites installation of SharePoint 2010, but I had issues letting the SharePoint 2010 wizard install it, so I prefer to do it manually. Here is the direct link to the download: ADOMD.NET
Microsoft SharePoint Server 2010 Installation
SharePoint requires your operating system to have certain prerequisites installed before installation begins. For this reason, SharePoint includes a PrerequisiteInstalle.exe tool that installs all of these prerequisites for you. If your developer workstation is set up with the Windows Server 2008 Service Pack 2 or Windows Server 2008 R2 operating system, you can install SharePoint 2010 by running the PrerequisiteInstaller.exe tool (which is included with SharePoint 2010) to install the prerequisites that SharePoint needs, and then run Setup.exe. However, you cannot use PrerequisiteInstaller.exe on Windows 7 or Windows Vista. For those operating systems, you must follow the additional instructions in this section.
Because the default installation works only for Windows Server 2008, you must edit one configuration file and install many of the prerequisites manually. You must perform each of the following steps while logged on with an account that has administrator access on the local computer. These steps assume that you received the SharePoint 2010 distribution as a single compressed executable file named SharePointFoundation.exe for SharePoint Foundation 2010 and setup.exe for SharePoint Server 2010.
To set up a developer workstation :
- Copy the SharePointFoundation.exe (or setup.exe) installation file to a folder on the computer where you are installing SharePoint and doing your development, such as in the following path:
- Extract the installation files by opening a Command Prompt window, and then typing the following command at the directory location of the folder where you copied the installation files in the previous step.
- Using a text editor such as Notepad, open the installation configuration file, config.xml, located in the following path: c:SharePointFilesfilesSetupconfig.xml Add this line inside the <configuration> tag:
<Setting Id=”AllowWindowsClientInstall” Value=”True”/>
- Save the configuration file.
- Review the complete configuration file. It now looks similar to the following for SharePoint Foundation 2010. The complete configuration file will be longer for SharePoint Server 2010 (and therefore the text below cannot replace the contents of that file), but should use the same setting for the AllowWindowsClientInstall attribute.
<Setting Id=”SETUPTYPE” Value=”CLEAN_INSTALL” />
<DATADIR Value=”%CommonProgramFiles%Microsoft SharedWeb Server
<Logging Type=”verbose” Path=”%temp%” Template=”Microsoft Windows
SharePoint Services 4.0 Setup *.log” />
<PIDKEY Value=”PIDKey Value” />
<Setting Id=”UsingUIInstallMode” Value=”1″ />
<Setting Id=”SETUP_REBOOT” Value=”Never” />
<Setting Id=”AllowWindowsClientInstall” Value=”True”/>
All of the text in this configuration file is case-sensitive. If you do not edit the configuration file as described in the previous step or if you do not save the configuration file, when you try to run the installation you see the error message shown in Figure below.
The following text contains line breaks.
- start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;^
- Verify that the required Windows Features are enabled. The command in the previous step enables all of the required features in the Internet Information Services section of the Windows Features dialog box (which you can access through the Programs section in Control Panel). Use Figure 2 and Figure 3 to check that you have enabled all of the required Windows Features. If any features are missing in your operating system, return to the Internet Information Services section of the Windows Features dialog box and enable them.
The following figures represent one Windows Features dialog box on a computer running the Windows 7 operating system.
Install SharePoint 2010
- To install SharePoint Server 2010 or SharePoint Foundation 2010, open a Command Prompt window, and then type the following at the command prompt:
- Accept the Microsoft Software License Terms.
- On the Choose the installation you want page, click Server Farm to install everything on one developer workstation.
Click On Install..
When the installation of the SharePoint files is finished you are asked to continue with the SharePoint Products Configuration Wizard.
Do not continue with the Wizard but cancel it otherwise you will have an issue due to the current installation described in this post. In the SharePoint 2010 version, you are not allowed as before to mount a Farm installation on a single machine using local accounts. If you had continued with the wizard you would have been stopped in the configuration by the following issue:
the specified user Administrator is a local account. Local accounts should only be used in standalone mode.
Creating several service accounts – about least privilege administration policy
The minimal SharePoint installation requires us to create 2 more local accounts (we already have “administrator” account for installation):
- One is for the process of the IIS Application Pool of the central administration. Assume we call it SPS_Farm
- The second will be used for the process of the IIS Application Pool of the first Web Application if it is isolated in its own Application Pool. Assume we call the first Web Application WebApp-80 because it will use the 80 port, let us call this account SPS_WebApp-80.
let us create these two accounts and configuring them in order password never expires.
Right Click on my Computer and click on “manage”. Expand “Local User and Groups” and right click on “User” And select “New User”.
Using SharePoint 2010 Management Shell to create the SharePoint 2010 Configuration databases
Open the SharePoint 2010 Management Shell.
Type the following command
run the command by pressing the Carriage Return Key
The Shell will ask you for:
The database name –> choose any name, for example SharePoint_Config
The database Server name –> type the name of your Machine in my case VMDEV-012
You will be then prompt for the system account credential. It is now the time to pass the credential of the SPS_FARM service account. Don’t forget the machine (domain) name otherwise you will get an exception of the SharePoint shell.
Then you are asked for a passphrase. You can use P@ssw0rd that matches the security policies required.
(This passphrase will be asked when you will add a new server to the SharePoint Farm)
At this step of the installation you can check that two operations have been performed behind the scene.
Two databases have been created in the database server referenced in the shell window. There is at this point no difference with MOSS 2007 installation.
3 web services has been created in IIS with 3 distinct application pools for each. That is a new feature of SharePoint 2010.
Running the SharePoint Products Configuration Wizard
This time you can open the SharePoint Products Configuration Wizard.
Let the option “Do not disconnect from this server farm” checked.
Then you will be prompted to choose the Central Administration Site port number. I personally always use 55555 for the configuration of all my development environments in order to type the same Url on all my Machines.
Let the default NTLM value for the “Authentication provider”, Kerberos requires network configuration we cannot perform in the current environment anyway.
The wizard, then, summarize your choices. Click Next
Then the 9 main configuration operations are performed.
Finally, the “configuration Successful” dialog summarizes your configuration again and informs you that the central Administration of SharePoint 2010 will be launched when you close it.
When you click “Finish” to close the wizard, the Central Administration Site is opening, and you are prompted for credentials
Then you are asked to sign up to User Experience Improvement Program. Click Ok
Another page let you choose between configuring your farm yourself or by using a wizard.
When this choice is made, you display for the first time the brand new Welcome Page of SharePoint 2010 Central Administration.
Creating your first site in Microsoft SharePoint Server for Internet Sites Enterprise 2010
Creating a managed local account for SharePoint 2010.
Now we have to perform operations in order the previously created local account SPS_WebApp-80 be referenced as a managed account by SharePoint 2010.
So reopen the SharePoint 2010 shell windows and type the following:
$myWebAppServiceAccount = Get-Credential VMDEV-012SPS_WebApp-80
You will be prompt for this account credentials
Then, type the following
New-SPManagedAccount -Credential $myWebAppServiceAccount
The SharePoint 2010 Managemant Shell warns you that the managed account should be use in standalone environment since it is a local account.
Creating your first Web Application for SharePoint 2010
On the default page of the SharePoint 2010 Central Administration, click the “Manage Web Application” link in the “Application Management” section
On the “Manage Web Application” page click the “New” menu entry then click “New Web Application”
I have personally chosen to create it on the default IIS web site, and as a personal usage
named it “Web App – 80”
let the Application pool default settings
named the content database “WSS_Content_WebAppp-80”
You notice then that you have the previously service account available as a SharePoint 2010 managed account to be the account under the which the process of the new Application Pool will run .
You are then prompted the changes are processed and finally that the SharePoint 2010 Web Application is created.
Click “OK” to close the wizard and to be taken back to the Web Application Management Page where you can see the new SharePoint 2010 Web Application.
Creating your first Site Collection for SharePoint 2010
From the Central Administration Home Page, click on “Create site collections” in order to proceed to the creation of your first SharePoint 2010 Site Collection.
Then, click the “Create site collections” link under the “Site Collections” section. You are taken to the “Create Site Collection” page.
I have personally chosen to create a team site called “SharePoint 2010″ team site”
When launching the creation, you are prompted the changes are processed
Then prompted on that the site was created successfully.
When clicking on this site link, you can display your first SharePoint 2010 site.
Permanent link to this article: http://zappmania.in/2012/11/05/installing-sharepoint-2010-2.htm