Required software for sample single-machine installation
- Microsoft Windows Server 2012 R2 (64-bit)
- Microsoft SQL Server 2012 SP2
- IIS 8.5 (included with Web Server role)
- Web Server role, Application Server role
- Oracle Java 8, Microsoft .NET Framework 4.5.2
- A domain system user for running various low-level services MTSUser
Step 1 .
Install Databases using Windows PowerShell command line navigate to the the SDL Web installation files Database\MSSQL folder.
**** I have used and run all the power shell command using Windows PowerShell ISE and run as administrator ****
1 Install Content Manager database.ps1
2 Install Topology Manager database.ps1
3 Install Content Data Store.ps1
Step 2
Access to the SDL web 8.1.1 media and run SDLWeb8CM.exe Provide all the required input and click on next.
Step 3
Ensure that the environment variable
JAVA_HOME
exists and refers to a compatible Java instance.
Step 4
Setting up Content Delivery for the sample single-machine installation
create a folder called contentdeployer\ with a subfolder called roles\
From the installation media, copy the following folders with all of their contents, including subfolders, into the contentdeployer\roles\ folder:
Update
contentdeployer\roles\deployer\standalone\config\cd_deployer_conf.xml
<Property Name="tcdl.target.language" Value="ref" />
contentdeployer\roles\deployer\standalone\config\cd_storage_conf.xml
<Item typeMapping="Page" cached="false" storageId="defaultFile"/>
Open contentdeployer\resources\quickinstall\setenv.ps1 for editing.and
update the server name,database name,username,password,DEFAULT_FILE
path and DEFAULT_DATA_FILE
navigate to contentdeployer\resources\quickinstall and run
./quickinstall.ps1 -license C:\cd_licences.xml -enable-discovery -enable-deployer -enable-preview -enable-session'
Step 5
Create a Topology Type
Add-TtmCdTopologyType -Id SampleTopologyType -Name StagingOnlyType -EnvironmentPurposes "Staging"
Content Delivery environment (in one line)
**Here while executing this command I have faced one issue If you want to use OAuth authentication on your Discovery service, you firstly need to register TokenServiceCapability ** StackExchange
Add-TtmCdEnvironment -Id SampleCD -EnvironmentPurpose "Staging" -DiscoveryEndpointUrl http://localhost:8082/discovery.svc
-AuthenticationType OAuth -ClientId cmuser -ClientSecret PASSWORD
Create a Topology
Add-TtmCdTopology -Id SampleTopology -Name StagingOnly -CdTopologyTypeId SampleTopologyType -CdEnvironmentIds SampleCD
Define a Web site
Add-TtmWebsite -Id ApplicaitonName -CdEnvironmentId SampleCD -BaseUrls http://localhost:82
Step 6
Publication and Testing Application
- create a demo publication and create Business Process Types, go to target type tab and select topology type which you have created and save and close
- Right click on you demo publication go to general tab and select Business Process Types
- Map you publication and webapplication run below command
- Add-TtmMapping -Id ApplicaitonNamewebmapping -PublicationID PUBURI -WebApplicationId ApplicaitonName_RootWebApp
- PUBURI is your publication URL tcm:0-8-1
Step 7
Update your Deployer cd_storage_conf and add
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultFile"
defaultFilesystem="false">
<Root Path="C:\ApplicaitonName" />
</Storage>
<Storage Type="filesystem" Class="com.tridion.storage.filesystem.FSDAOFactory" Id="defaultDataFile"
defaultFilesystem="true" defaultStorage="true">
<Root Path="C:\ApplicaitonName\data" />
</Storage>
and add item in the ItemTypes
<Item typeMapping="Page" cached="false" storageId="defaultFile"/>
Step 8
Go to your demo publication and create SC and Default page with default page template and publish
Hit your site URL :)
Happy coding and keep sharing
No comments:
Post a Comment