SharePoint 2013 for Developer: Baby Journey (2)

Setting Up SharePoint Farm for SharePoint 2013 Development
1. Setting up Site Collection Host Name Web Application to host all the site collection hosted name

a. Create Site Collection Hosted Name Web Application
b. Create Site Collection with Developer template

Setting up Site Collection Host Name

a. The Site Collection Hosted Name Web Application is really an empty web application which tied to your server url (e.g http://servername). We are using this web application to host all our site collection. For example(http://intranet.company.com or http://developer.company.com).

b. No site collection in it need to be created after creating the Site Collection Hosted Name Web Application at Central Admin.



Note: Site Collection hosted name have in SharePoint 2010 also.

How
a. Go to Central Admin to create a Web Application



b. Click New

c. Key in
Name: SharePoint – Host
Port: 80




d. Use the Application Pool or create your own Application Pool
c. Database Name: WSS_Content_Host
d. Click [OK] button
e. The new SharePoint Host is created


*Note
You can key in anything that is meaningful don’t have to follow me.




Creating Site Collection using Power Shell
SharePoint 2013 do not provide GUI for creating Site Collection with host name, we have to use Power Shell to do so.

How

a. Open SharePoint 2013 Management Shell

b.  Type the following:
$HostWebApp = Get-SPWebApplication | Where-Object {$_.DisplayName -eq "SharePoint Host"}

c. Create developer site selecting the developer template "DEV#0" by typing the following:


New-SPSite  -Name "Developer Site" -Url "http://developer.companyName.com"  -OwnerAlias "CompanyName\SPAdmin" -HostHeaderWebApplication $HostWebApp -Template "DEV#0"

d. Create Intranet Site by typing the following:

New-SPSite  -Name "Developer Site" -Url "http://intranet.companyName.com"  -OwnerAlias "CompanyName\SPAdmin" -HostHeaderWebApplication $HostWebApp -Template "STS#0"

e. If you are doing programming for Workflow, then you need to create a none-templated root site for Workflow to connect to it.

New-SPSite  -Name "Root Host" -Url "http://serverName"  -OwnerAlias "CompanyName\SPAdmin" -HostHeaderWebApplication $HostWebApp


Conclusion:
We have created our SharePoint environment for testing our solution.

Comments

Popular posts from this blog

SharePoint 2013: Distributed Cache Services

SharePoint 2013 for Developer: Baby Journey (1)

File Structure (Part 1)