November 4, 2012

Activating Publishing Infrastructure Feature

To make a site publishing type, we need to activate "Office SharePoint Server Publishing Infrastructure". Sometimes, activating Office SharePoint Server Publishing Infrastructure feature on a site collection throws error. There are two ways to activate the same feature. 

1) Clicking on Activate button in feature gallery and
2) By using stsadm commands.

To activate  publishing infrastructure feature through commands, use the below commands:

stsadm -o activatefeature -filename publishing\feature.xml -url http://sitecollectionurl -force

stsadm -o activatefeature -filename publishingresources\feature.xml -url
http://sitecollectionurl -force

stsadm -o activatefeature -filename publishingSite\feature.xml -url
http://sitecollectionurl -force

stsadm -o activatefeature -filename publishingweb\feature.xml -url
http://sitecollectionurl -force

stsadm -o activatefeature -filename publishinglayouts\feature.xml -url
http://sitecollectionurl -force

stsadm -o activatefeature -filename navigation\feature.xml -url
http://sitecollectionurl -force


No comments:

Post a Comment

Error installing .Net Framework 3.5 in Sql Server 2012

During installation of Sql Server 2012 on Windows server 2012 or addition of roles and features for SharePoint 2013, the setup wizard will...