Running SharePoint on Windows 7(转)

Running SharePoint on Windows 7

原文地址:

http://weblogs.asp.net/gunnarpeipman/archive/2009/05/07/running-sharepoint-on-windows-7.aspx

 

 

I tried to put up SharePoint development environment on Windows 7 and guess what – I succeeded. I took smaller challenge and installed WSS 3.0 SP2. Of course, you can also install SharePoint Server instead of WSS. On my machine WSS 3.0 uses SQL Server 2008 Express edition as database. For MOSS 2007 you should have SQL Server 2008 Developer edition.

Here is the step-by-step guide to get SharePoint development environment up and running on Windows 7. I assume you have Visual Studio already installed. My laptop has 32 bit architecture, so I am not sure if WSS works also on 64 bit Windows 7 the way described below.

  1. Follow the instructions given in Bamboo Team Blog entry How to install Windows SharePoint Services 3.0 SP1 on Vista x64/x86. Follow these instructions *EXACTLY* to get things work. When you insert computer name or SQL Server address then don’t use (local) or localhost – SharePoint installer cannot understand later what is going on. Use your machine name (windows7\username, windows7\SQLEXPRESS) and install goes smoothly.
  2. You may have problems with SharePoint Central Administration site because some menu options are missing. In this case you must run IE in administrator privileges as described in thekid.me.uk blog entry Missing Create or Extend Web Application in Central Administration. If you still have problems you may find some help from Bamboo Nation forum thread Access Denied to extendvs.aspx.
  3. Install Windows SharePoint Services SDK.
  4. Install VSeWSS 1.2. There is said that VSeWSS 1.2 requires Windows Server 2003 or Windows Server 2008. Don’t get confused – you can install VSeWSS on Windows 7 without any problems.
  5. Before deploying features to your fresh installation you must change permissions of SharePoint services. I found these accounts to be work without problems for services. 

    Service

    Account

    Windows SharePoint Services Administration Local System
    Windows SharePoint Services Search Local Service
    Windows SharePoint Services Timer Local System
    Windows SharePoint Services Tracing Local System
    Windows SharePoint Services VSS Writer Local System

Now your development environment is ready. You can create your test site and deploy your features to it.

To test web part deployment I wrote simple web part that prints out testing message. If you don’t have web part to test deployment you can use my TestPart (ZIP archive with source code and deployment files). Result should be something like this.

 

I suggest you to run Visual Studio as administrator so you can be sure you have enough privileges to deploy your features.

 

 

How to install Windows SharePoint Services 3.0 SP1 on Vista x64/x86

If you are a developer for SharePoint your best friend has been Virtual PC or VMWare. It’s time to introduce a new friend, Bamboo Nation's SharePointOnVista J 

We have put together an installer that allows you to install WSS3.0 SP1 on Vista, both x86 and x64.  This will allow you to develop on your workstation with all the power of a non virtualized environment. You still need VPC and VMWare so don’t feel sorry.

There’s been much discussion about SharePoint being a "bad" development platform. This will remove the objection that you NEED to develop on a Server OS.  I think we all as SharePoint developers have built our “virtualization skills” to a comfortable level now so it’s time to give us a break ;)

So please download the setup helper and try it out. I really want to hear from you about problems you encountered so we can fix them.  Please leave your comments here or we can discuss in this forum. It would be nice to hear about successful installations too J

UPDATE: If you run Windows Vista Home Premium IIS only supports Basic Authentication. Therefore you MUST manually enable Basic Authentication in the IIS management console. 

UPDATE: John McBride has posted a solution for all of us that runs Vista 64 bit so we can install the new VSeWSS 1.2 with support for VS 2008. Just go here to see how to solve it. Thanks John!

You no longer need this workaround since the latest version of VSeWSS 1.3 CTP supports 64bit operating systems and we have successfully installed it on both Vista and Windows7. Look at this post for more information.

UPDATE: Jim Parshall has created a detailed video tutorial that walks you through everything you need to do to get WSS running on Vista. It's pretty big so it takes a while to download but it's well worth it. Click here to get the video. Thanks Jim!

UPDATE: If you are installing on Windows 7 RC (build 7100) you need to read this post before continuing.

If you are interested to know how we did it read this post.

Current limitations:

  •  You must select the Advanced option during install.
  •  If you want to run on SQLExpress, manually install it first.  Get it here.
  •  You have to manually enable IIS7 with the proper options (explained).
  •  Your workstation has to be part of a domain. UPDATE: This is not required.

 

 

 Here’s how you install it.

First download the installation helper and the correct version of WSS with SP1.

Windows SharePoint Services 3.0 with Service Pack 1

Windows SharePoint Services 3.0 x64 with Service Pack 1

Go here to download our Setup Helper file

Now run the setup helper (WssVista.msi).

wssvistainstall_01

You will see an UAC prompt select Continue to proceed with the installation.  

 

 

 

Once the install has completed you will find the SetupLauncher.exe in the install location you selected. If you didn’t change the default option you will see it under the directory ..\Program Files\WssOnVista\Setup

 

Configuring IIS7

Before we go any further we need to make sure IIS7 is installed with all required options .

Go to Control Panel and click Programs.

  

 Under Program and Features click Turn Windows features on or off.

 

 Under Windows Features select Web Management Tools and World Wide Web Services. Enable at least the following options and choose OK.

 

 

Wait until Windows has configured all options.

 Installing Windows SharePoint Services 3.0 SP1 on Vista.

After completing the above steps it’s time for the interesting part. Locate SetupLauncher.exe and start it. You will once again see an UAC prompt, select Continue.

wssvistainstall_8

After the SetupLauncher run, select the WSS installation file Sharepoint.exe, or the MOSS installation file, and click OK.  First, the package will be extracted.

After the files have been extracted the WSS setup program will be started.

The current version only supports the advanced installation option so select that one.

 

Select Web Front End when asked about Server Type. The database will be created later.

(If you are installing MOSS select the option which installs all services on the Web Front End)

 Sit back and relax while SharePoint is being installed, you are running Vista remember ;)

Hopefully you will see the following screen at the end of the installation. If you would get an error during the installation step try to run a Repair.

 

Leave the checkbox checked and click Close to run the Configuration Wizard.

wssvistainstall_10

At the second screen select the option to create a new server farm.

wssvistainstall_12

Specify your database server (e.g. MYLAPTOP\SQLEXPRESS) and account information.

  config

     
image wssvistainstall_16  

  Let the Configuration Wizard do it's work.

 

image

And you should end up with this screen, congratulations!

image

image

The final result is WSS running on Vista, Enjoy!

  

/Jonas

Note: Remember that this is a "beta" product tool from Bamboo.  Do not use it for any production work, as well as the usual "backup your system before install this program".  Obviously, running WSS v3 or MOSS on Vista is not a supported environment by MS. 

UPDATE: Additional discussions and solutions on instalation issues can be found in this forum.

UPDATE:  If you run Vista Home Premium you have to enable Basic Authentication in IIS, if you don't you will only see a blank page.

Here's how to do it:

Open up IIS management console and Enable Basic Authentication. You have to do this for ALL Web Applications you are creating.

Vista.Home.EnableBasic

posted @ 2010-02-07 01:53  玛雅人  阅读(811)  评论(0编辑  收藏  举报