Wednesday, September 15, 2010

Can't login to the page after creating a site collection in SharePoint 2010

If you're getting prompted to login to your new site collection, try three times and get thrown back, you're likely going to have to disable the loopback check:

To set the DisableLoopbackCheck registry key, follow these steps:

1. Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
281308 Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name
2. Click Start, click Run, type regedit, and then click OK.
3. In Registry Editor, locate and then click the following registry key:
4. Right-click Lsa, point to New, and then click DWORD Value.
5. Type DisableLoopbackCheck, and then press ENTER.
6. Right-click DisableLoopbackCheck, and then click Modify.
7. In the Value data box, type 1, and then click OK.
8. Quit Registry Editor, and then restart your computer.

Creating a Site Colleciton in SharePoint 2010

After creating a web application, you should next create a site collection:

1) Go to Central Administration -> Application Management and under Site Collection select "Create Site Collections".
2) Give it a title, url and then select the template you'd like to use.
3) Assign the Site Collection Administrators and press okay.

Now your site collection will be created. BUT, since we want to use the host headers, you should go to your C:\windows\system32\drivers\etc\hosts file and add the IP of your machine to that file along with your host header.

Setting up a SharePoint 2010 Web Application

Use the following steps to create a SharePoint 2010 Web Application.

1) Go to Central Administration -> Manage Web Applications.
2) Click on the New button in the ribbon.
3) Create the website (name it something that's relevant, and I recommend appending the port at the end like intranet.com80)
4) Use Port 80
5) Setup a host header with the same as the website (
6) The Path will be automatically filled in with the Host Header and Port (
7) Make the Public URL the same as the host header.
8) Name the applicaiton pool the same as the website.
9) Name the Database WSS_Content_Intranet
10) Press okay and voila!