IIS 10.0 on Windows Server 2016 and higher
Configure the server to host Sitefinity CMS projects
PREREQUISITES: Starting with Windows Server 2016, you need to install the Desktop Experience when installing Windows Server OS.
- Download the Windows Server 2016 PowerShell script and save it on your server.
- In the context menu of the downloaded file, click Run with PowerShell.
- Restart the server.
NOTE: When running the PowerShell script, your system may become slower. Keep in mind that the script modifies Windows features that can affect other parts of the system.
You can also perform the configuration manually.
For more information, see Manually configure the server to host Sitefinity CMS projects.
Copy your Sitefinity CMS project on the server
- Prepare your development project for deployment.
For example, build the project in Release configuration and remove the obj and packages folders.
- Copy the project’s folder from your developer machine and place it inside
C:\inetpub\wwwroot folder on your server.
If you do not see folder
inetpub, IIS is not installed on your server, and you must install it.
The project folder is the path where the various Web.*.config files reside.
Run the project on the IIS
- Open Internet Information Services (IIS) Manager.
- In the left pane, expand your server’s node and in the context menu of Sites node, select Add Web Site…
The Add Website window appears.
- In Site name, enter a name for the website.
- If you have a dedicated application pool for this website, click Select… button and select it from the Application pool dropdown box. Otherwise, for each website you are adding, IIS creates a corresponding application pool.
- In Physical path, click the … button and browse to select
inetpub\wwwroot\<your project name> folder, where you have chosen to locate your project files.
- In the Binding section, if you have a dedicated IP address for the website, select it. If you have multiple websites sharing the same IP address, enter the host name of your website.
- Click OK.
The Add Web Site window closes.
- If you are using SQL Server or SQL Server Express, perform the following:
- In the left pane, click Application Pools node.
- Select the application pool of your website and in the right pane, click Advances Settings…
- Change the Load User Profile setting to True.
- Click OK.
- Since Sitefinity CMS configurations are stored in the
App_Data folder, the Application pool must have write permissions to this location. To grant such permissions, perform the following:
- In Windows Explorer, open folder
inetpub\wwwroot\<your project name>.
- Open the context menu of
App_Data folder and click Properties.
- On tab Security, click Edit… » Add…
- In From this location, select your server.
- Enter the object name using the following naming convention:
IIS APPPOOL\<Application pool name>.
- Click OK.
- To grant permission to modify the
App_Data folder, select the Allow checkbox of the Modify permission.
- Click OK » OK.
RESULT: Your website is ready to work. To verify this, open the IIS Manager, select the uploaded site, and in the left pane, click Browse. The website runs in the browser, hosted on the IIS.