- Backup your farm (i.e. full SQL backup)
- Backup IIS on all WFE servers
- Backup the web.config of the site you wish to modify the application pool for
- Create the new application pool and document the new identity (service account) used
- Document any custom Web parts that are deployed to the Web application
- Document regional settings - e.g. time zone
- Document authentication settings (e.g. Basic, Integrated)
1. Delete Web application in SharePoint Central Administration - do NOT delete the content database or IIS Web site just yet.
2. Delete IIS Web site
3. Create new Web application with new IIS site (making sure to select your brand new application pool) & note down default content DB name (to be deleted)
4. Perform an “IISreset /noforce”
5. Reconfigure your IIS settings (e.g. authentication providers, SSL certificate, host header bindings, home directory, logging, virtual directories)
5. Remove automatically created content db in SharePoint Central Administration
6. Confirm DB create date and delete temporary content db in SQL Server management studio.
7. Rename & Reattach correct content DB and confirm no. sites > 0 (could have attached the wrong content DB – minimal chance as I have checked all portal URLs)
8. Restore web.config (as SharePoint overwrites it upon creating a new Web application - you backed it up right?)
9. Add policy for web application if applicable
10. Redeploy web parts to all restored web applications if applicable
11. Set authentication providers
12. Set general settings (timezone) for restored web application
13. Set People picker settings for restored web application using STSADM
I think it's worth stating again that you should attempt these steps yourself in a test environment before attempting them on your production servers.
Feel free to let me know if you encounter any issues or whether these steps worked for you.
Cheers, Ben.
Follow my Networked Blog on Facebook
Thanks for interesting post :-)
ReplyDeleteI just created new app pools, assign sharepoint applications to them, and then manually modify keys like this
in app pools' config files, typically placed in folders like this "c:\inetpub\temp\appPools\SharePoint Auto-Generated Content\SharePoint Auto-Generated Content.config"
I did it on my work environment, with sharepoint server 2010 standalone installation, so not sure this method is suitable for real-world farms.
Michael Gamza
Hi Michael,
ReplyDeleteThanks for the comment.
I wrote this post a while ago so look at things a little differently nowadays.
SharePoint manages the association between Web applications and application pools and you should not be making these changes yourself.
As far as I know the only supported way of changing the app pool/ web app association (in 2007 at least) is to recreate the Web app, as I outline above.
For more on app pools, see this post from Spencer Harbar: http://www.harbar.net/archive/2009/12/04/more-on-sharepoint-2010-application-pools.aspx
I also did a recent blog on common SharePoint administration mistakes if you are interested: http://www.benjaminathawes.com/blog/Lists/Posts/Post.aspx?ID=22