The way configuration is usually managed is going to the Server Manager application, and enabling the stuff you need.
This works well until you realize that you need to configure 10 more servers, or after you've done some configuration manually, you receive all kinds of "can't reproduce" issues, caused by different setup of your dev / test / production environment. Missing "HTTP Redirect" checkbox at one of the Content Delivery servers (somewhere behind the load balancer) can make you really happy, or not....
Basically, all you need to do once you've got new VM is the following:
1) Grant permissions to the AppPool account
2) Setup Windows features (how much of them do you need to get Sitecore up & running?)
3) Install additional software. Yep, you should install ASP.net MVC for the latest version of Sitecore(and its modules) to work properly
Here's the sample PowerShell script which will do that for you:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$group = [ADSI]"WinNT://./IIS_IUSRS,group" | |
$group.Add("WinNT://%DOMAIN%/%USERNAME%,user") | |
$group = [ADSI]"WinNT://./Performance Monitor Users,group" | |
$group.Add("WinNT://%DOMAIN%/%USERNAME%,user") | |
Import-Module ServerManager | |
Add-WindowsFeature Web-App-Dev | |
Add-WindowsFeature Web-Net-Ext | |
Add-WindowsFeature Web-Net-Ext45 | |
Add-WindowsFeature Web-Asp | |
Add-WindowsFeature Web-Asp-Net | |
Add-WindowsFeature Web-Asp-Net45 | |
Add-WindowsFeature Web-Http-Redirect | |
Add-WindowsFeature Web-Windows-Auth | |
Add-WindowsFeature Web-Mgmt-Tools | |
Add-WindowsFeature Web-Static-Content | |
Add-WindowsFeature Web-Stat-Compression | |
Add-WindowsFeature Web-Dyn-Compression | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
cinst 7zip | |
cinst aspnetmvc4.install |
Of course you might want to tweak some stuff a little, but I hope this gives you a nice example to start with. Enjoy!
No comments:
Post a Comment