Deploying SharePoint … the beginning…


First and the most important item here is that this will be based on a Very Small SharePoint implementation.  The service is to support less than 100 users.  If there was more trust of the cloud based products, the web based version of SharePoint would have been a likely choice.  Not so much for us though.  Even though we are a small company, we’ve employed the enterprise version of SharePoint.  This was after running through Foundation, and then Standard versions.  With Microsoft, all the good stuff comes in the Enterprise version.  No a la carte here…Hello?  Microsoft?  A La Carte model please???

One of the first lessons learned was that SharePoint is more of a concept than a concrete object you can put your hands on.  Sure, it has that element but…like that piece of dense chocolate cake that goes thunk… it’s heavier than you think.  SharePoint is a server product that can have a inclusive SQL Express server or access an external server.  Depending on which model you opt for, be prepared to create a lot of AD entries if you go for the more than a single server model.

SQL Server is a critical element of SharePoint

When isn’t SQL Server a critical element?  While SharePoint does provide functionality to access external content, SQL Server is a central and critical piece of the SharePoint solution.  In our deployment, I set it up so that we used an external, dedicated SQL Server to support SharePoint first.  Secondary databases were added after the solution was in place and evaluated for their impact.  The SQL Server is a bare metal server.  While it has been documented that SQL will run virtualized, we did not want to take the chance and dedicated a server.  Hardware is getting cheaper by the day.

What version?  Since it is well known the the future of Microsoft products is going to be on 64 bit servers, we went with the latest version of SQL on a 64 bit box (SQL 2008 R2 x64).

image

Servers and Web Roles…More fun

Start up a Windows Server (2008 R2 x64 please) and you’re confronted with ROLES.  Well, SharePoint needs a ROLE or two to function.  Since it is an application the Application Server Role would be good.  Web?  I think SharePoint has “some” web parts to it, so IIS would probably be a good idea.  Go to this PowerShell and SharePoint link for PowerShell stuff.

In addition to the roles mentioned, some other stuff should be set up ahead of time:

NOTE: I’ve tried to pull in the latest links but please double check as things to change and it’s always best to get stuff fresh.

In the small scenario, all of these components and roles are on one server.  The only separation used is that the SQL Server is on a different box.

Looking around my office and thinking about this project, I have four books on SharePoint 2010 that I’ve collected over the past year or so (see below).  Most of these were not even in Print when I started this project.  It’s been a long an interesting road for sure.  Some are dog eared.  Others a full of sticky notes and yellow highlighter.  Go figure…

SharePoint has a lot of Service Applications that can be enabled

image

Not all of the services should be activated just because.  Only activate what you need.  Just because you’ve activated it doesn’t mean you’re done either.

To get familiar with PowerShell support, go to the Microsoft SharePoint 2010 Products on the server menu:

image

Open up the SharePoint 2010 Management Shell and type Get-Command.

You will see a long list…

image

SharePoint Search:  As mentioned in other blogs, there are two SharePoint search facilities, SharePoint Search and Fast Search.  For fast, you want a different server.  We’ve not implemented Fast.  Normal search will suffice for now.  When we need thumbnails and other fancy stuff, we’ll get another server for Fast.

One of the roles that will need to be enabled for our server will be Email Integration.  This will require some separate steps but is necessary for records and content management.

Again, since this is a limited server farm, the default of having server administration role on the same server is not an issue.  When our farms grows HUGE, then it might make sense to put the role on it’s own dedicated server.

Development Needs: Say what you will, having your own personal SharePoint server to do development is a good thing.  Having it as a virtual system is even better.  To facilitate this, I leveraged VMware Workstation to build separate SharePoint environments to mimic the three systems we have in place: Foundation, Standard and Enterprise.  Why go through the trouble of setting Virtual Environments for SharePoint?  In a word – SNAPSHOT.  SharePoint is a large environment that can go sideways on you in an instant.  Not all sideways events are easy to recover from either.  By using a virtual environment, you can test stuff out without risking your sanity.  I follow the same process for almost any additional tweak to the system:

1. Snapshot

2. Develop

3. Confirm

4. Snapshot

If only the server was running with a similar facility!  I’d have fewer gray hairs…

Notice the VMware reference?  Well, I have to admit that I’m a bit confused on Microsoft’s virtual pc offerings.  Eventually, I’m sure I’ll find a concise HOWTO and start using it.  So far, mostly due to lake of time, the resources on MSDN and Virtualization seem, detailed but scattered.  <—opinion!!!

Recap:

Server acquired

Pre-requisites installed

At least one installation of SharePoint using VMware completed and a snapshot taken

Ready for the plunge, bringing up the server…taking down the server…bringing it back up.  Crud, it isn’[t working as expected and what is this about Kerberos anyway?

Books Used…

http://www.wrox.com/WileyCDA/WroxTitle/Beginning-SharePoint-2010-Development.productCd-0470584637.html

http://book.pdfchm.net/microsoft-sharepoint-2010-unleashed/9780672333255/ – the overall reference book

http://blah.winsmarts.com/2009-12-Microsoft_SharePoint_2010__Building_Solutions_for_SharePoint_2010.aspx <- a great reference for setting that all important Development Environment.

http://www.wrox.com/WileyCDA/WroxTitle/Professional-SharePoint-2010-Development.productCd-0470529423.html

Of course various .Net and SQL server references as well.

SharePoint takes a plan and other requirements…


SharePoint is not a system that you can just deploy.  Basically, if you compare SharePoint 2010 with SharePoint 2003 it would be the same as Comparing a 2010 Dodge Challenger with one built in 1975.  The may look similar on the outside but the insides are all different (scratch that… you can make SP2010 look like 2003 but why?).  In 75, you could tweak or replace a carburetor for better performance but with the 2010 model, it’s a setting managed by the onboard computer system.  Even changing the light bulb on the new Challenger is a challenge (trust me, you have to pull the front bumper off…)!  Sorry, back to SharePoint.

With Improvement Comes Complexity

Under the hood, SharePoint is all new.  While there may be some remnants hanging around the new beast is really comprised of a bunch of independent services.  Something you discover pretty quickly after the bits are installed and you’ve visited both sides of the administration points.  Both sides?  Well, that depends on the the number of folks working on the project, who’s on first, what’s on second and so on.

image

The thing that’s nice about the service model is the ability to scale out over multiple servers.  This adds a nice bit of scalability to the platform and reduces the strain on the crystal ball.

Search

Now promoted and does more.  Check…SNAGHTML1799997  Well, a little more than that.  Native search is one of the new services.  Now, just because you’ve enable the service doesn’t mean it just works…  There are a few steps and site particulars that need to be addressed before search is usable.  See Post-installation steps for search…

But just talking about search brings up some interesting points.  Which version of SharePoint you run will largely be dependent on the budget available.  Enterprise builds upon Standard that builds upon Foundation.  In fact, Foundation may be all the SharePoint you need at this time. See SharePoint Products.  For some additional content, see SharePoint Server 2010 Operations Framework and Checklists.

SharePoint is a large ecosystem with deep features.  Great stuff but be prepared for a learning curve.

Heath and Well Being of SharePoint

This one gets a bit sticky.   It was also the most challenging point to convince the IT department to set up a sufficient number of service accounts.  What really doesn’t help is the challenge of finding a concise list of what accounts are needed.  You are going to love to learn to hate this:

image

You’ll spend a lot of time going through messages like:

image

Now, the ability to get help from within the application has improved.  When I first started clicking on the links,  the web page that opened was the general SharePoint landing page with no reference to the error provided the link…

Now, 9 time out of 10, you land on a page with helpful information:

image

The following figure shows that there is just one or two accounts that can be specified for SharePoint:

image

First, as far as accounts go, you need a specific administration account to set up and configure the server.  After that is done, you’ll use that account to log into the server to specify the individual DOMAIN accounts to use for SharePoint.  Some services can use the same account while others it is best to specify their own account.

One of the nice features to plan for is Automatic Password Change.  Your domain accounts are going to be subjected to password expiration rules unless you override that policy.  Since SharePoint can manage its own password change process, it’s a good thing.

image

A good document that addresses the accounts is Account permissions and security settings.    Basically the list is as follows:

Account Used for Comments
sp_Admin Server administration / Farm administration Domain account, used when the server is created.  Gets many of it’s permissions through components.
sp_SetupUser used to setup each server in the farm Must be a domain account, a member of the local admin, and must be able to access the SharePoint server database.  If PowerShell is used the account must be a member of db_owner on the database server and have security admin and dbcreator rights.  You’ll want to keep this account around.  Removing it can cause all sorts of chaos.
sp_FarmService (database access account) application poll identity for central admin,  process account for SharePoint foundation and runs the TimerService Must be a domain account with user account permissions
Granted additional permissions through SharePoint tools.
sp_SearchService SharePoint basic search features Must be a domain account with user account permissions
Granted additional permissions through SharePoint tools.
sp_SearchContentAccess crawls across sp content sites Must be a domain account with user account permissions
Must be a member of the Farm Admin group
Granted additional permissions through SharePoint tools.
sp_ApplicationPool application pools Given machine level permissions through SharePoint tools or configured separately through PowerShell
sp_MySiteAppPool application pool Must be a domain account with user account permissions
Must not be a member of the farm admin group

That’s a start.  for additional information, see the provided link above.  For all accounts listed that need to be a domain account the format is <domain>\<user account>.  ex: Domain\sp_Admin

Adventures In SharePoint 2010 2


Time to change up the soundtrack a bit. At first it was Arrowsmith and “Toys in the Attic” followed by Mindi Abair and “It just happens that way” and finally ended with Joe Walsh and “Life’s been good”.

Now, I’m sitting here staring at the SharePoint Central Administration Screen. Good ol’ w2k8r2spsa:20111/default.aspx. Lots of settings to go through.

1st though, let’s look at the “Monitoring Section”. You might want to look at SharePoint Server 2010: Operations Framework and Checklists.

At this point, you will probably not see the yellow or red notification across the screen but it will come!

  1. Click on Monitoring
    1. Click on Health Analyzer’s “Review problems and solutions”. If there were any issues the reports would show up here.
    2. Return to Central Administration
  2. Click on application Management. Your blank site shows up as SharePoint -80 (Port 80)

    1. Now, for grins, click on Configuration Wizards
    2. Launch Farm Configuration Wizard
    3. Go with the defaults on the next page, click “Next”
    4. Notice how the “/” option for sites no longer exists
    5. Click “Cancel”, we’ll add another site in a different fashion
    6. At this point, hopefully you are still logged in as spAdmin
    7. Open up a new tab on your browser
    8. Type in the address for the computer less the port or add port 80 <computername>:80

 

  1. Next click on “Site Actions” then “New Site”

The default template section opens and you have “All Types” and “All Categories” open. The “blog” template is visible. If you click on the “Content” filter type, the templates are reduced to Document Workspace, Blog and Document Center. I’ll add a blog.

  1. Click on “Blog”
  2. Give the Site a title and a URL Name.
  3. Then click on more options (You can also start with this)
  4. Look at “Permissions, Navigation and Navigation Inheritance”
    1. Permissions
      1. If access to this site is the same as the parent, leave the default “Use same permissions…” checked
      2. If the site will have special permissions, select “Use Unique…” simple right?
    2. Navigation – Two options to set
      1. If you want a link on the top only, the default of No, Yes is the setting
      2. If you want a link on the top and side, Yes, Yes is the setting
      3. No links = No No
    3. Navigation Inheritance – I would have made the default “Yes” but it is set to “No”. If you want a consistent connection to the home site, switch this to “Yes”

The settings:

Get You…:

Where:

Adds “My Blog” to the link bar. The bigger deal is the “Home” button that seemed to do nothing before (e.g. Home = My Blog) has changed behavior to “Home = Site Home” and returns you to the main site page.

Ok, enough of playtime. Tomorrow it’s back to serious settings and configuration of SharePoint. It’s nice though to take a break and play with application.

Teched NA

Adding sites…

While the Jury is still out (for me at any rate) SharePoint Designer is either a help or it’s not. Prior versions of the product could be hard on SharePoint. So, taking the innocent until proven guilty, I will be using it for this iteration.

First thing, after the SharePoint Administration presented the choice, I added an Enterprise Wiki site. Et voila… What, “Adventureworks”??? Whre did that Icon come from, what’s going on??? In the land of Microsoft, Adventure Works is alive and well and a template model when you choose the Enterprise Wiki site. Templates can be changed to provide consistent site look and feel. I’ll get to those later. For now, time to modify Adventure works into something I want to use.

Steps…

  1. Using Site actions, click on Edit inSharePoint Designer – If not install, go ahead and accept the install instructions (64 bit is OK if 2010 is all you’re working in)
  2. If you opened it from the site, you’ll already be where you need to be, otherwise:
    1. Click on the Open Site button
    2. type in the root site address
    3. Click on Open
  3. Click on Master Pages Link
  4. Click on nightandday.master
  5. Edit this master page
  6. This will show you the masterpage the template used when it constructed the Enterprise Wiki site.

OK, so now what? Got the master page up and you can see a lot of stuff.

  1. So, you click on the Adventure Works logo
  2. Click delete
  3. Click on the save icon.
  4. A warning pops up:

Now what?
You could goto to the Main Site Object and then click on the Edit Site Home Page link…

  1. Click on the link
  2. Click on the Edit in Browser Button
  3. Click on the check out button
  4. Edit your page

But wait, there’s more. You can’t get to the logo. It still says Adventure Works and you’re getting really tired of that site…

To recap:
You tried editing the master page directly and ran into a warning.
Going through the main page and edit site home page allowed you to edit internal items on the page but not the header.
And hey, when did source control enter the picture…

For now, take the easy road.

  1. Exit SharePoint Designer, you’ll be back
  2. Click on Site Actions
  3. Click View All Site Content
  4. Click on Site Collection Images
  5. Click on Add New Item
  6. Navigate to your new snazzy logo and click on Open
  7. Click on OK
  8. You’re presented with a form where you can add a Title, Keywords, Comments, Author, etc. about the image
  9. Click on Check in when you are done
  10. Click on Site Actions
  11. Site Settings
  12. Click on Title, Description and icon under Look and Feel
  13. In the Logo URL and Description URL box, type: “/SiteCollection/<YourLogoName>.gif
  14. Click on Click here to test, then click on ok.

What? The stories over? Naw, just this segment. Applications are the main thrust so most of the SharePoint of this blog will be talking about that.

Todays experiment? What happens when you delete the base site? Not the admin site but the :80 site. How graceful will SharePoint handle this?

Most stuff you find on the web is all about moving forward but what if you really roll the site in something that doesn’t smell quite right?

Well, here goes.

    1. VM Ware SnapShot titled PreDelete and a date (maybe it’s just age but once you have more than one of these, it’s a nice way to figure out which one is what/when)
    2. Bring up the site – yup still there…
    3. Site Actions then Site Settings
    4. Under the Site Actions Section theres a link… Delete This SIte… [click]
    5. Read the warning…

    1. Yup, looks pretty serious…
    2. And yet one more warning…might not be a good idea
    3. The “Sites been deleted page” comes up. Click the back link to verify the site has been deleted.
    4. What happend to the Admin Site?
    5. Modify the URL and add in the Admin Port and pull it up.

As expected, the admin site is just fine. Now check on the Create Site Link and lets see what deleting the primary site actually did? Remember to be logged in as the SpAdmin account.

When you click on the create a site button, you have regained the ability to create a root level site. In fact, it’s back to the base level of the install.

  1. Enter In a new Title and Description
  2. Chosse the site type
  3. Assign Primary Site and Secondary Site Admins
  4. Provide a quota if needed
  5. Click on |OK|
  6. Now, click on the link for the new site…this is NOT the |OK| button on the same page
  7. Click on Site Actions once the page load
  8. Site Permissions and give the site owner access

Now you can go back to your site with the correct login and modify and change as needed. This is what I would call a punt. Short of rebuilding the whole SharePoint site, this method provides a way to get back to square one as long as everything on the host is solid.