HomeGuidesRecipesAPI
HomeGuidesAPILog In

Step by step

This chapter takes you through setting up and configuring the SmartIQ web applications – Produce and Manage. If you are looking for installation instructions for 'SmartIQ Scheduler' please refer to the page Installing Scheduler.

👍

How to follow the guide

Each section consists of two sub-sections. The background subsection provides objectives and background knowledge related to the section. The instructions subsection provides explicit steps that you will need to follow.

Perform Database setup

The base level of services in the SmartIQ system architecture is provided by a database layer. The database stores projects and their logic, reusable content as well as security information and settings.

This section guides you through the process of attaching a new SmartIQ database and preparing it for use by the SmartIQ system.

These steps include:

  1. Enable the TCP/IP and SQL Browser
  2. Create the database
  3. Create the database login

🚧

Database Configuration Instructions

The following instructions are based on the MSDN documentation provided by Microsoft and are targeted towards SQL Server 2014. If you are using a different version, some steps may vary.
For more information on attaching the SmartIQ database or for specific instructions relating to your SQL Server version refer to the MSDN Library.
https://msdn.microsoft.com/en-us/library/default.aspx

Setting up the SQL Server Browser

SQL Server Browser is a Windows Service that must be running in order for the SQL instance to be discoverable from another network location.

  1. Launch the SQL Server Configuration Manager application.

  2. In the left pane, click to select SQL Server Services.

625

There may be a number of services installed depending on the SQL Server type and configuration. One of these services should be ‘SQL Server Browser’.

  1. Right-click the ‘SQL Server Browser’ service, and select Properties from the pop-up menu.
    The SQL Server Browser Properties dialog displays.
421
  1. On the Service tab, change the property Start Mode to ‘Automatic’.

  2. Click OK.

  3. Right-click the ‘SQL Server Browser’ service again, and select Start from the pop-up menu. This will start the service running immediately without requiring a reboot.

Enabling TCP/IP for SQL Native Client 11.0 Configuration

  1. Launch the SQL Server Configuration Manager application.

  2. In the left pane, click to select SQL Native Client 11.0 Configuration -> Client Protocols.

773
  1. Right-click the ‘TCP/IP’ protocol and select Enable on the pop-up menu.
    A warning message displays informing you that the change won’t take effect until you restart the SQL Server service. Ignore this warning for the time being as we are going to do a restart of SQL Server services at a later stage.

  2. Click OK.

Enabling TCP/IP for SQL Server Network Configuration

  1. Launch the SQL Server Configuration Manager application.

  2. In the left pane, click to select SQL Server Network Configuration -> Protocols for MSSQLSERVER.

775
  1. Right-click the ‘TCP/IP’ protocol and select Enable on the pop-up menu.
    A warning message displays informing you that the change won’t take effect until you restart the SQL Server service.

  2. Click OK.

Restarting the SQL Server Service

  1. In the left pane, click to select SQL Server Services.
769
  1. Right-click the ‘SQL Server (instance)’ service for the appropriate instance of SQL Server, and select Restart from the pop-up menu. Configuration is complete once the service has successfully restarted.

Enabling Mixed Mode Authentication

  1. Launch the SQL Server Management Studio application and connect to the target SQL Server instance.

  2. In the Object Explorer pane, right-click the server instance root node.

314
  1. Select Properties from the pop-up menu.

  2. Select the Security page.

  3. In the Server authentication area, select the ‘SQL Server and Windows Authentication mode’ option.

700

Creating the Database

  1. Launch SQL Server Management Studio and connect to the target SQL Server instance.

  2. In the Object Explorer pane, expand the instance root node, then right-click the ‘Databases’ node and select New Database.
    The New Database dialog is displayed.

297
  1. Specify the name of the database you intend to use for the SmartIQ database. Leave the owner as default as we will specify this in a later step once the user is created.
690
  1. Click OK to create the database.

Creating the Database Login

The SmartIQ platform requires two (2) logins with different privileges:

  • A login with db_owner role memberships for modifications to the database schema when performing upgrades
  • A non-elevated login for regular read/write operations

Creating the db_owner login

  1. Launch SQL Server Management Studio and connect to the target SQL Server instance.

  2. In the Object Explorer pane, expand the instance root node, then right-click the ‘Login’ node under Security and select New Login. The Login - New dialog is displayed.

273
  1. On the General page, enter a Login name, for example "SmartIQDbOwner" and select SQL Server authentication.

  2. Enter a valid password in the Password and Confirm password text boxes.

  3. As this is a system level account, it’s advisable to uncheck the Enforce password policy check box to remove password expiration. This is because if the password expires then the application will stop working.

  4. Select the User Mapping page in the left pane.

  5. Find the SmartIQ database attached earlier, and place a check in the Map column for the database.

  6. Click into the Default Schema column and type ‘dbo’.

  7. In the Database role membership for: (DB name) list, place a tick against the ‘db_owner’ role.

  8. Click OK.

Creating the regular user (no extra role membership)

  1. Launch SQL Server Management Studio and connect to the target SQL Server instance.

  2. In the Object Explorer pane, expand the instance root node, then right-click the ‘Login’ node under Security and select New Login. The Login - New dialog is displayed.

  3. On the General page, enter a Login name, for example "SmartIQ" and select SQL Server authentication.

690
  1. Enter a valid password in the Password and Confirm password text boxes.

  2. Select the User Mapping page in the left pane.

  3. Find the SmartIQ database attached earlier, and place a check in the Map column for the database.

  4. Click OK.

Run Installer

The SmartIQ.{version}.install.exe file is used for installation and upgrade wherein it will determine if there is an existing installation in the selected installation folder. If none, it will treat the installation as a new install. If there is an existing installation, the setup package will continue as an upgrade.

The setup package is used to set up the required directory structure and copy the SmartIQ web application files onto the web server. The package will also configure an initial setup using Forms Authentication.

Additionally, for a new installation, the package will also provide the option to enter connection string details for the SmartIQ database.

After running the setup package, the websites need to be configured in Internet Information Service (IIS) Manager.

👍

Authentication mode

The setup process initially configures SmartIQ for Forms Authentication (username/password access) using default credentials. It is best practice to complete the setup and test the sites using this configuration before attempting to change authentication mode to make it easier to configure permissions and groups using the default administrator account that may be required for another authentication mode. More information on authentication can be found from the documents in Authentication folder.

Installation Instructions

  1. Before you begin installation, ensure you have a copy of the SmartIQ.{version}.install.exe file. This file configures a new or additional instance of SmartIQ as well as upgrade an existing instance.

You can request a short term license key prior to installation from support. You will need either a short term key or allow time to contact support for a permanent key once the software is running.

  1. Execute the SmartIQ.{version}.install.exe file.
    The destination folder page is displayed.

  2. Accept the default destination folder, or click Browse to choose an alternative. This guide assumes the default of ‘C:\inetpub\wwwroot<>’ is chosen.

  3. Click Next to continue. The database settings page is displayed.

  4. Specify the server name or the IP address of the server that will be running the SmartIQ database as well as the database user credentials.
    DBO is the user that will be used for the upgrades. The second set of credentials is used for general connections.

  5. Click Finish to finish installation.

Configure IIS

📘

Note

Ensure that the minimum IIS version/components required for the install are present before attempting to configure the SmartIQ Produce and Manage Applications.

Once the SmartIQ files and folders have been prepared using one of the techniques described above, you are ready to configure IIS to make the SmartIQ Produce and Manage web applications available to end users.

The process of configuring IIS involves:

  • Create separate Application Pools for each application
  • Add the SmartIQ Manage application
  • Add the SmartIQ Produce application

Creating separate Application Pools for each application

Each Application Pool runs in its own Windows process, allowing you to isolate different applications on the IIS web server to ensure they use their own resources. The SmartIQ platform requires separate Application Pools for the Manage and Produce applications.

  1. Launch the Internet Information Services (IIS) Manager application.

  2. In the left pane, expand the tree so you can see the ‘Application Pools’ node.

  3. Right-click the ‘Application Pools’ node and select Add Application Pool… from the pop-up menu.
    The Add Application Pool dialog displays.

2063
  1. Enter a name for the new application pool, e.g. ‘SmartIQAppPool’.

  2. Ensure that the .NET CLR version selected is ‘No Managed Code’, and that the Managed pipeline mode is set to ‘Integrated’.

390
  1. Click OK.

  2. Repeat the steps above to configure a Produce Application Pool.

Adding the SmartIQ Manage Application

📘

Note

The SmartIQ Manage application must be installed, launched with license keys configured before attempting to install the SmartIQ Produce Application.

These instructions assume that the SmartIQ Manage application will be created within the Default Web Site on the web server. For more advanced bindings, you may need to create a new site for your SmartIQ deployment and substitute ‘Default Web Site’ for your site in these instructions.

  1. In Internet Information Services (IIS) Manager, expand the server node to the site you wish to use, typically ‘Default Web Site’.

  2. Find the directory with the name Manage and right click.

  3. Select convert to the application and select the configured Manage Application Pool.

  4. Click OK.

👍

Best Practice

It is recommended that you test your application and license before and after adding the produce application to ensure that they are working as intended.

Add the SmartIQ Produce Application

These instructions assume the SmartIQ produce application will be created within the Default Web Site on the web server. For more advanced bindings, you may need to create a new site for your SmartIQ deployment and substitute ‘Default Web Site’ for your site in these instructions.

  1. In Internet Information Services (IIS) Manager, expand the server node to the site you wish to use, typically ‘Default Web Site’.

  2. Find the Node with the name Produce and right click.

  3. Select convert to the application and select application pool

  4. Click OK.

📘

Installing in Non-Default Location

If you installed SmartIQ outside of IIS document root you will need to add the site to IIS. This can be done by right clicking on top of site node (typically 'Default Website') and selecting add application.