A Web application consists of a IIS (Internet Information Services) website
each may combine one or more site collections that you create. The first step is to create a Web application.
Open the SharePoint 2010 Central Administration:
In the Application Management section, click the Manage web applications link. The page lists the referenced web applications on the server. For a basic installation, you have two:
- The default site:SharePoint - 80
- The administration site:SharePoint Central Administration v4
- Click the New button in the toolbar to open the creation form:
- Regulars of SharePoint 2007 will notice that this form has many similarities to the functional level. By cons, level design, opening in a layer shows a part of the efforts made by Microsoft to improve the ergonomics of the product.
- The authentication section offers a choice between two types of authentication:
- Claims Based Authentication
- Classic Mode Authentication
- The default choice isClassic Mode Authentication, a classic Windows authentication. The authentication type Claims Based Authentication aims to make it simpler authentication through systems such as Active Directory and provide Single-Sign-On methods for applications based on shared environment or Cloud.
- We will choose the default authentication typeClassic Mode Authentication to our new web application.
- You can use an existing IIS Web site or create a new completely dependent from others. Choose to create a new IIS Web site and name it theSandBox.
- Change the value ofPort field by 80.
- Specify in theHost Header filed the value sandbox.priv.
- You can leave the default value for thePath field: C:\inetpub\wwwroot\wss\VirtualDirectories\www.sandbox.priv80
- The first is the authentication provider (Authentication provider), you can choose between valuesNegotiate (Kerberos) and NTLM. The latter is the default choice of the form. The choice of the authentication provider will depend on your infrastructure, in our case, a single server without Active Directory, we will use the NTLM
- The second option allows you to enable or disable anonymous access on the site. If you choose to allow anonymous access, access will be using the machine specific anonymous access accountIUSR. Site administrators can configure the use of anonymous access to their sites. If anonymous access is not permitted at the Web application, it will not be at the site. For this article, we choose No.
- The third and final option is to specify whether SSL is used. If you want to enable SSL on your Web application, you must configure IIS more finely (How to configure SSL on IIS7).
- Enter theURL of the web application. It will be used as a base in the links on the pages in this zone of Web application. The default URL is the name and port of the current server, it's automatically updated according to the SSL settings, header host and port number defined on the form.
- The value of theZone field is automatically defined on Default. The zone can be changed when you extend a Web application.
- Each Web application is represented by a different IIS Web site with a unique application pool or a shared one. This section lets you specify whether you want to use an existing application pool or create a new one. We choose to create a new application pool namedSand Box.
- When creating a new application pool, you must specify the user who executes it. This choice is important because this account must have permissions to access different parts of the server. You can create a specific user or select an existing one. We choosePredefined and the Network Service
- When you create a Web application, you also create a database of content and set the authentication method used to connect to the database. This section allows you to choose the database server to use, by default, the SQL server which is running the administration is selected in theDatabase Server
- TheDatabase Name field is the name of the database to be created on the SQL server. By default, the name is a GUID prefixed by WSS_Content_. We will name it Sand Box.
- This section also lets you set the authentication method used for the Web application connects to SQL server. There are two options:Windows authentication (recommended) and SQL authentication. The Windows authentication method is recommended because the login information is sent encrypted to the SQL server. The account used will be the application pool. This implies that the user running the application pool for Web application can access to SQL server.
- This section allows you to specify a mirror SQL server. In case of problem on the SQL server, queries are sent to the following. The authentication method and the account used for this mirror server will be the same settings as the principal server.
- This section allows you to specify the search server used. It's set to use the SharePoint Server search.
- In this section, select the connections to the service application will be available for the Web application. From the dropdown menu, choosedefault or [custom]. The [custom] option lets you choose the connections to the service applications that you want to use for the Web application. The default is to make available all services.
- We will choose the default option in this section.
- Customer Experience Improvement Program
- In this section, simply clickYes or No to specify whether you want to participate in the CEIP (Customer Experience Improvement Program)
- The configuration is now complete, click OK to validate the creation of the Web application. When the creation process is completed, you receive a confirmation message:
- You can go to IIS to see the new IIS Web site and on your SQL server to verify the creation of the new database:
Creating the site collection
- To create a new site collection, you can either click on theCreate Site Collection link in the message confirming the creation of a new Web application, or click the Create Site Collections link from the Application Management section on the homepage of the central administration.
The form for creating a site collection is very similar to SharePoint 2007:
- This section allows you to specify on which Web application the new site collection will be created. We choose the application you created earlier.
- You can specify the title of the collection sites and give a description.
- This section allows you to specify the base folder of the site collection; it can be the root folder or the foldersites. There can be only one site collection to the root of a Web application, then others will be on the folder sites.
- Template Selection
- The site template defines the basic functionality will be enabled. This choice depends greatly on the type of project to be realized. We choosePublishing Portal under the tab Publishing. This is a site template including workflow features for publishing content.
Here you must specify a user (you can not specify a group) as the administrator of the collection site. We choose the server administrator.
Like the previous option, this section allows administrator to define a second site collection administrator. This field is optional and we leave it empty.
- This last section allows you to specify a quota for the site collection.
- Click theOK button to begin creating the site collection.
- After you have updated your DNS or Host file, you should be able to access the site via its URLhttp://www.sandbox.priv:
- As I created site collection at root of web application (listening at port 10101), you can directly access it using “http://SharePointServerName:10101” and you should see the screen as follows:
- You can also check the site collection details in database as shown below:
SELECT SiteId AS SiteGuid,
Id AS WebGuid,
FullUrl AS Url,
WHERE (ParentWebId IS NULL)
Create a site collection by using Windows Power Shell
You typically use Windows Power Shell to create a site collection when you want to automate the task, which is common in enterprises.
To create a site collection by using Windows Power Shell
- Verify that you meet the following minimum requirements: SeeAdd-SPShellAdmin.
- On theStart menu, click All Programs.
- ClickMicrosoft SharePoint 2010 Products.
- ClickSharePoint 2010 Management Shell.
- From the Windows PowerShell command prompt (that is, PS C:\>), type the following command and press ENTER:
6. Get-SPWebTemplate7. $template = Get-SPWebTemplate "STS#0"8. New-SPSite -Url "<URL for the new site collection>" -OwnerAlias "<domain\user>" -Template $template
We recommend that you use Windows PowerShell when performing command-line administrative tasks. The Stsadm command-line tool has been deprecated, but is included to support compatibility with previous product versions.
Create a site
- Open site collection in browser. If you are following from previous articles, it would look like the following
- Go to Site Actions –> New Site as shown below
- Select a template (in this case, “Team Site”), provide name and URL and finally click on “Create” (you can customize more using “More Options” button)
- The site gets created and it looks something like the following
- If you go back to Site Collection, you should also site as shown below:
You can follow the same above method for creating sub-sites, except that you would start with site instead of site-collection. Most of the options available for “Site Collection” would also be available for “Site”.
We can also achieve similar to above using a different approach
- go to Site Actions –> Site Settings as shown below
- Under “Site Administration”, select “Sites and Workspaces”
- You can click on “Create” at the top
- Provide site details as necessary
- Customize as necessary and click on “Create”
- Once created, you should see new “HR” site
- You can use “up” button to go through different site hierarchies
- Once you move back to “Site collection” home, you should see both sites available from home page of site collection as shown below
Aspired to become an SharePoint? Explore the post to discover the know-hows on SharePoint training course.
- You can also check the above sites in database as shown below
SELECT SiteId AS SiteGuid, Id AS WebGuid, FullUrl AS Url, Title, TimeCreated FROM dbo.Webs
SiteId AS SiteGuid,
Id AS WebGuid,
FullUrl AS Url,
Another approach is to go to “Site Actions –> View All Site Content” and filter “View” with “Sites and Workspaces” and click on “Create” at the top as shown below:
For Indepth understanding of SharePoint click on