This is mainly a note to myself since I keep forgetting this. If you have deployed SharePoint using least privileges service accounts for your SharePoint, you would be encountering “Access denied” error message when activating the Office SharePoint Server Publishing Infrastructure.
You can manually activate Publishing Resources via stsadm
| stsadm –o activatefeature –name PublishingResources –url http://website |