Installing FastClose Server in IIS

Installing FastClose Server in IIS

Install of FastClose Server in Internet Information Services (IIS)

Introduction

The instructions below aren’t the only way to configure FastClose in IIS, but they are the steps which we have tested. You could create a separate website with a different port number rather than using the default website, it’s completely up to you.

Installing FastClose Server under IIS is optional: the software includes a built-in web server, so can simply run it as a Windows service, and many of our customers are happy with this. Only install under IIS if you require TLS for https connections, for example.

Prerequisites

IIS and Roles

To run FastClose server inside IIS you should Install IIS Server and IIS Manager on the server. The following roles/services are also required: Application Initialization, WebSocket Protocol, Dynamic Content Compression and Windows Authentication. The steps to add those roles are as follows:

The IIS module 'WebDAV Publishing' must not be installed as it prevents the FastClose Server API from receiving PUT and POST requests.

image

When completed, verify that IIS is installed and running by visiting http://localhost.

ASP.NET Core Runtime

Then install Microsoft’s ASP.NET Core Runtime 8.0.x Windows Hosting Bundle from Download .NET 8.0.

image

IIS must be installed before installing the ASP.NET Core Runtime.

FastClose Server Install

Double click the FastClose Server installer. You can either install to:

a59f3022-9f1a-4058-92cd-5cd984f1b13b

Configure the App Settings

This section is no longer applicable as of version 3.3. If you are installing 3.3 or higher, skip this section.

In Windows Explorer, browse to the FastClose Server install folder selected above. If the file appsettings.customer.json does not already exist, create it by copying and renaming the file appsettings.customersettings.json. Then edit it using Notepad, run as administrator. Within the file, change the setting IsHostedByIIS from false to true and save it.

{
...
"AuthenticationOptions": {
...
"IsHostedByIIS": true
}
}

IIS Configuration

Create IIS Website

Note that the Physical Path should match the install location you specified when installing FastClose Server e.g. [DriveLetter]:\inetpub\wwwroot\FastClose or [DriveLetter]:\Program Files\FastClose\FastCloseServer.

The Port can be any value you want that is available on your web server but 5101 is the convention for FastClose.

You can use https instead of http if you have a suitable certificate registered on the web server. You may need to specify a host name which matches the certificate.

If using a port other than 443 with TLS, your users will need to explicitly type https://... in their browser and FastClose desktop clients since these will otherwise assume http:// by default and fail to connect e.g. "This site can’t be reached. The connection was reset."

Adding Windows Authentication

Although you may not use Windows Authentication it is required to be available for the Server to run.

Double-click on Authentication in IIS Manager.

71359e72-e649-481a-8b57-dc506852a49a

You should see at least 2 options: Anonymous Authentication and Windows Authentication.

Ensure both are set to Enabled.

The following image shows the correct configuration in IIS with Windows authentication.

8d2d9ff5-7a2c-43dd-9d8e-cfc68d67b7fd

Allow Background Tasks

FastClose Server needs to carry out background tasks periodically, such as checking for scheduled tasks and carrying out housekeeping/maintenance. By default, IIS will terminate the FastClose process or 'app pool' after it has been idle for 20 minutes. It will also not restart the app pool automatically if it gets 'recycled': stopped by IIS periodically to conserve resources. Both of these behaviours will prevent FastClose from working properly.

To resolve this, right click on the FastClose entry within Application Pools and choose Advanced Settings. Set the Start Mode property to 'Always Running' and the Idle Timeout property to zero. Make sure that Recycling settings have their default values: no memory limits, no request limit, no specific times, and a regular time interval of not less than 1740 minutes (29 hours). We suggest 10,000 minutes (7 days) or even disabling it with zero.

image

Then, open the Advanced Settings dialog for the FastClose web site and change 'Preload Enabled' to true.

image

Permissions

If you installed FastClose Server anywhere other than in [DriveLetter]:inetpub\wwwroot, then you will have to set Read and Execute permissions on the folder for the IIS_IUSRS group.

Click 'Edit...' and then 'Add...'

cc979e72-8379-44af-9af8-bfd5bab1f3e8

Add IIS_IUSRS and ensure it has 'Read & Execute' permission.

50554353-5c4a-4ddc-8767-27ca2c29d4f2

Testing

You might need to restart the World Wide Web Publishing Service within the Services app before all the changes above take effect.

44930227-47ee-4f83-8e17-483ba507e3ff

There may be a message stating the the repository requires upgrading. If so, click the link and then click the “Upgrade Repository” button.

Once the repository is upgraded, you can log in with the Administrator user. The default password is supplied separately and we recommend changing this as soon as possible.

Completing the Install - Clients, Templates and Firewalls

As your desired port is not usually open, it will probably be necessary to open it on the server firewall.

It is also necessary to install the templates, and desktop clients on user machines.

Instructions as to how to do all of this can be found in the standard installation instructions.

Powered By