Sunday, December 27, 2015

Everything about Web Application( Creating Ste collection etc )

SharePoint 2013 Central Administration Provides the Interface to Create Web Applications, Site Collections and to manage them. In this article we’ll look at a brief on how to create and manage Web Applications and Site Collections in SharePoint Server Using Central Administration.
Background
Terms:
·         Web Application : Web Application is a top level site in SharePoint Server hosted in IIS. Web Application behaves as a container for the Site Collections and Other Sub Sites. In other words Web Application hosts the Site Collections and sub sites in the SharePoint. SPWebApplication object represents a Web Application in SharePoint.
·         Site Collection : A site collection is a grouping of websites under a common top-level site that have the same owner and share administration settings, for example, permissions. When you create a site collection, a top-level site is automatically created in the site collection.
·         Sub Site : Sub Site is equivalent to a general asp.net site under a given Site Collection. We can have ‘n’ number of Sub Sites for a give Site Collection. In general SPWeb object represents the current site (which can be a top-level site or a sub-site).
In this Article we’ll go through the steps for creating a Web Application, Site Collection and a Sub Site respectively.
Creating a Web Application/Site Collection/Sub-Site
Creating Web Application

1.       Go to Start -> All Programs -> Microsoft SharePoint 2013 Products -> SharePoint 2013 Central Administration.
2.       By clicking on SharePoint 2013 Central Administration. Central Administration Web Site is opened in the browser as shown below.

3.       The Central Administration Web Site allows the management of the following settings and services.
a.       Application Management.
b.       System Settings.
c.       Monitoring
d.       Backup and Restore
e.       Security
f.         Upgrade and Monitoring
g.       General Application Settings
h.       Configuration Wizards.
4.       Application management section of Central Administration allows us to create and manage the Web Applications and Site Collections.
5.       Under Application Management Section of Central Administration, choose 'Manage Web Applications'.
6.       On the Ribbon menu click on New Button which displays 'Create New Web Application' Window.

7.       Choose the following options in the window:
a.       IIS Web Site: Create New/ Add to Existing ISS Web Site. Specify the port number.


If you want to create web application using port 80, there should be an entry in hosts file or DNS forward lookup zones.
Hosts file located in C:\Windows\System32\Drivers\etc\
let us add a host entry in the host file (C:\Windows\System32\drivers\etc\host). Since we haven’t configured DNS lookup for this application in the Domain Controller a host entry is required.

where justforsharing.com is my forest name. then the first screen will looks like. Replace port 15645 with 80.



DNS entry for host header will looks like as shown below

In DNS we need to create an A record entry for the fully qualified domain name of our web application.  I have labelled it as “intranet” and this will point to our SharePoint 2013 server.
To create our “A” record in DNS, navigate to our  Windows 2012 server which hosts the DNS server role and launch Server Manager and then click on Tools > DNS Manager. Expand your Forward Lookup Zones and create a new “A” record and enter “Intranet” as the Host Name and then enter the IP address of our SharePoint 2013 server.  Please note, we are adding a new “A” record and not a CNAME (Alias) record and the name could be anything.  I am using Intranet in this example.


where corp.gkhalil.com is my domain forest.
b.       Authentication-Mode: Classic Mode for Windows Authentication / Claims Based for FBA Authentication.

8.       Security Configuration: Choose - your option.


9.       And similarly provide Application Pool and Database Name for the Web Application to be created.

10.   Under *Service Application Connections choose the required Service(s) for the Web Application.

11.   This completes the creation the Web Application in SharePoint.

If you try to open web application, we will get error. You will get “page not found error” because top level site collection is not yet created.


Creating a Site Collection
1.       Under Application Management section of Central Administration, click on ‘Create Site Collection’ option available in Site Collections section.

2.       Provide the following options in the opened window in order to create site collection.
a.       Choose Web Application: - Choose one Web Application from the available web applications dropdown list.
b.       Provide the Title and Description for the Site Collection.
c.       Provide the Web Site Address.
d.       Choose the Template from the list of available templates in the provided tabbed window.
e.       Provide Primary and Secondary Site Collection Administrator for the Site Collection.
f.         Choose the **Quota Template if required.





3.       Repeat the same steps in order to create other Site Collections under Same/Different Web Application.
4.       By now a Web Application and Site Collection has been created. Now we can browse the created Site Collection and we can create any number of Sub Sites in it.

Creating a Sub Site
1.       Browse through the available Site Collection in SharePoint.



2.       Click on the Site Actions Ribbon of the SharePoint Site and from the dropdown list click on New Site option, which displays the create window

3.       From the available templates choose ‘Team Site’ template and provide the title and description values. The more options button provides the option to have same set of permission or new set of Permissions for the sub site.




4.       The Following options are available in the Create window of a site:
a.       Title and Description.
b.       Web Site Address. URL to navigate through the crated sub site.
c.       Permissions. Use Unique Permissions Option provides to have new set of permissions for the created sub site. Use Same Permissions options will inherit the Parent site permissions for the sub site.
d.       Navigation Inheritance. Provides the navigation options. One can display the parent navigation in current site or only current site navigation.
* Service Application Connections: SharePoint provides lot of services that provides most of the out of the box features of SharePoint. More information on SharePoint Application Services is available in the next article.
** Quota Templates: SharePoint allows the users to allot some kind of limitation on the usage of space for a particular Web Application. This functionality is achieved by using ‘Quota Templates’. More information on Quota templates is available in the article.
Manage Web Application
Now coming back to Web Application Management, as we have already created a Web Application, now we can go head and manage the available Web Applications using Central Administration site.
Under the Application Management click on Manage web applications and then select a web application. Once the web application is selected the options are avaiable in the ribbon
The following are the options available for the web application.
a.       General Settings
b.       Manage Features
c.       Service Connections
d.       Authentication Providers
e.       Self-Service Site Creation
f.         Blocked File Types.
g.       User Permissions.
h.       Web part Security
i.         User Policy, Anonymous Policy and Permission Policy.



We'll go through the options one bye one in brief here:
a) General Settings:
The following Screen Shots shows the available options in the general settings.



The General Settings tab has the following options:
1.       General Settings 
 
  1. In the ribbon, from the WEB APPLICATIONS tab, click General Settings, and do the following:
    1. To change the default time zone for sites that are created on the web application, in the Default Time Zone section, from the Select time zone drop-down list, select a time zone.
    2. To change the user settings provider for sites that are created on the web application, in the User Settings Provider section, from the Select User Settings Provider drop-down list, select a user settings provider.
    3. To change the default quota template for site collections created on the web application, in the Default Quota Template section, from the Select quota template drop-down list, select a quota template.
    4. To disable person name actions and online presence information from being shown on sites on the web application, in the Person Name Actions and Presence Settings section, from Enable additional actions and Online Status for members, select No.
    5. To disable alerts for sites in on the web application, in the Alerts section, from Alerts on this server are, select No. If you don't want to disable alerts completely, but want to limit the number of alerts a user can create, change the settings for Maximum number of alerts that a user can create accordingly.
    6. To disable RSS feeds for sites on the web application, in the RSS Settings section, from Enable RSS feeds, select No.
    7. To disable the MetaWeblog API for the web application, in the Blog API Settings section, from Enable Blog API, select No.
The Metablog API allows SharePoint blog entries to be written, modified, or removed through web services. If Accept user name and password from the API isYes, then the credentials to manage the blog post are sent in clear text, unless SSL to the web app is configured. If Accept user name and password from the API is set to No, SharePoint authorization for the web app is used.
    1. To change the browser file handling so that the browser automatically executes web content, in the Browser File Handling section, select Permissive.
    2. To disable security validation for sites on the web application, in the Web Page Security Validation section, from Security validation is, select Off. To change the expiration time for a security validation, change the settings for Security validation expires accordingly.
    3. To disable the ability to send users their user name and password by e-mail, in the Send User Name and Password in E-Mail section, from Send user name and password, select No.
    4. To deny pages in the _Layouts folder to reference site master pages for sites on the web application, in the Master Page Settings for Application _Layouts Page, from Application _Layout pages reference site master pages, select No.
    5. To turn off recycle bins on sites in the web application, in the Recycle Bin section, from Recycle Bin Status, select Off. Alternatively, you can change when items in recycle bins should be deleted by changing the settings for Delete items in the Recycle Bin and Second stage Recycle Bin.
    6. To change the maximum allowed size of content uploads to a site in the web application, in the Maximum Upload Size section, change the number in Maximum upload size accordingly.
    7. To disable the collection of web site analytics for sites in the web application, in the Customer Experience Improvement Program section, from Enable Customer Experience Improvement Program, select No.
    8. To enable usage cookies to be used for anonymous users on sites in the web application, in the Usage Cookie section, from Usage Cookie Status, select On.
  1. To save you changes to this web application, click OK.
4.       Resource Throttling. 

The Resource Throttling option allows us to manage, the list throttling settings for a particular Web Application. The following settings options are available under this setting. Using List Throttling we can restrict the count of list item for database operations.
Following are the Resource Throttling settings available under this category, List View Threshold,Object Model Override,List View Threshold for Auditors and Administrators,List View Lookup Threshold,Daily Time Window for Large Queries,List Unique Permissions Threshold,and Backward-Compatible Event Handlers.
 
5.       Workflow. 

By using this we can allow users to have the option to use the existing workflows deployed on the server. The following screenshot show the available options for workflows.


6.       Outgoing E-Mail settings. 

Sending mails is one the important aspect of business across all the divisions. And it is mandatory that we need to configure the mail server to our Web Application. This option in General Settings allows to achieve this task.


7.       Mobile Account. 

We can configure our Web Application to be able to send sms notification over mobile using the existing service provider. The following screenshot shows the SMS service configuration settings.


8.       SharePoint Designer. 

This part of the General Application settings allows you to enable or disable the user to use the
SharePoint designer for customizing the webportals.
 

b) Manage Features
All the Components in the SharePoint are available in the form of Features. SharePoint provides the plug and play facility to work with the components available in portal. SharePoint allows us to enable or disable the feature so as to have the only required components active in the site. The Features with Scope as "Web Application" are visible in under this option. More about features are explained in the upcoming article.
The below screenshot shows the available features that can activated/deactivated for the current web application.


c) Service Connections
While create web application, we can either choose 'default' or 'custom' connections group using which the selected service connections are bind to the web application. More about service connections are explained in detailed in further article.
Now on this screen you can change the service application associations/connections for any web application or you can also add/remove service application connections for default group. Now if you want to change the service application connections for any web application then click on the web application name. It will open a dialog with the list of service application connections.

By default when you create a new web application, SharePoint 2010 associates default service application connections group with new web applications. So when you open it first time, you will see default selected on top drop down box and it will have all the service application connections selected and also in disable mode. You cannot add/remove service application connections from default group using this screen. In order to add/remove connections, you need to change the top drop down value to custom and then you can select connections you want for the web application. Click ok and your new settings are ready. Your application associations screen will change like this.

You can also change the service application associations for default group, for this click on the default link. And then select or unselect pre-selected options. Click ok and now default group is changed. So next time when you create new web application SharePoint 2010 will associate this default service application connections group to new web applications.



d) Authentication Providers
Authentication Providers in SharePoint allows us to choose the Authentication mechanism to validate the user against available user store like active directory, database etc. In SharePoint we can use Claims based or Classic mode of authentication were in the Claims based authentication allows us to use both windows and FBA(Form Based Authentication) were as the Classic mode is used for windows authentication.
The following screenshots show the available Authentication provider for the web application
Explained clearly in Authorization methods in SharePoint 2013
e) Self-Service Site Creation
Sele Service site creation option in SharePoint allows us to create 'MySites' using which users can create and update their profiles, share status, follow colleagues, and get all other benefits of a socail netowrk site.
f) Blocked File Types
By using this option we can control file extension that can be allowed in the Web Application. We can block the unwanted file extension as shown in the below image
g) User Permissions
SharePoint has in-built defined set of permissions that we can apply across all the sites and sub-sites for a particular Site Collection/Web Application. In order to avail these predefined permissions, we can choose them by using this option.
The below image shows built in permissions levels that are defined for a web application
h) Web part Security
By using this option we can enable or disable the Web part connections and editing of scripts in the Web parts for the users with Contribute permission level.
 
i) User Policy, Anonymous Policy and Permission Policy.
All these options allow us to work with the permissions and users policies. We enable or disable Anonymous access to a web application here, we can manage zone level permission and so on.
Below screenshots show the same.


1 comment: