> ## Documentation Index
> Fetch the complete documentation index at: https://docs.on-it.no/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Zpider Fusion Service

## Prerequisites

It is recommended to install the Zpider Application Server on the same server as the ERP system.

* If the Zpider Application server is not installed on the ERP system server, the network capacity must be at least 1 Gbps between the Zpider Application Server and the ERP system server / SQL server.
* The setup must be executed with a domain user with full access rights (local administrator) for the current machine.
* The user must also have enough access rights to access network resources (SQL server, ERP server e.g.).

## Installation

Log on to the server with a user with the domain user described in the chapter above and unpack and start the installation of Zpider Application Server.

<img src="https://mintcdn.com/onitas/VA-10adAY-BAmUwu/zpider-eshop/getting-started/install-1.png?fit=max&auto=format&n=VA-10adAY-BAmUwu&q=85&s=c56495def530f67547cd4003d5a1c97f" alt="Select fusion service or eshop" width="480" height="300" data-path="zpider-eshop/getting-started/install-1.png" />

### Destination folder

Choose the destination folder. For simplifying support situations it is recommend to use the default folder.

<img src="https://mintcdn.com/onitas/VA-10adAY-BAmUwu/zpider-eshop/getting-started/install-2-fusion.PNG?fit=max&auto=format&n=VA-10adAY-BAmUwu&q=85&s=3badbb170ce2c28524709385d90f4e6c" alt="Select destination folder" width="482" height="400" data-path="zpider-eshop/getting-started/install-2-fusion.PNG" />

### Outgoing mail server configuration

In Zpider eShop the following functionality requires communication with a SMTP server.

* Order confirmations sent by email to the customer
* Password can be sent to a user using the forgotten password functionality
* Username and password can be sent by email to a web user from the eShop admin application
* Email can be sent to a web user by defining a customer / contact person in the ERP system with an import profile where mail sending is enabled

The SMTP server to communicate with must be entered in the SMTP server address field. In the same line it is possible to configure port for SMTP communication (port 25 is default).

Click the test button to test communication with the SMTP server.

Many SMTP servers are configured to successfully deliver email internally but not externally. The "Test email address" field and the "Sender email address" field" can be used to test if the SMTP server is configured to deliver email form an internal mail address to an external email addresses.

<img src="https://mintcdn.com/onitas/VA-10adAY-BAmUwu/zpider-eshop/getting-started/install-3-fusion-smtp.PNG?fit=max&auto=format&n=VA-10adAY-BAmUwu&q=85&s=a058051b8ab970c578470f1a0f348d20" alt="Outgoing mail server configuration" width="482" height="400" data-path="zpider-eshop/getting-started/install-3-fusion-smtp.PNG" />

#### Update the SMTP credentials

The SMTP configuration is stored in `FusionServer.config`. If you need to set a username and password for your SMTP connection, have a look at this example.

```xml FusionServer.config theme={null}
<?xml version="1.0" encoding="utf-8"?>
<FusionConfiguration>
  <SessionTimeout>60</SessionTimeout>
  <Port>6792</Port>
  <MailServer>smtp.sendgrid.net</MailServer>
  <MailServerPort>587</MailServerPort>
  <MailServerUserName>username</MailServerUserName>
  <MailServerUserPassword>password</MailServerUserPassword>
</FusionConfiguration>
```

**Office365**

Remember that the sender email must be the same as the MailServerUserName.

```xml FusionServer.config theme={null}
<?xml version="1.0" encoding="utf-8"?>
<FusionConfiguration>
  <SessionTimeout>60</SessionTimeout>
  <Port>6792</Port>
  <MailServer>smtp.office365.com</MailServer>
  <MailServerPort>587</MailServerPort>
  <MailServerUserName>user@domain.com</MailServerUserName>
  <MailServerUserPassword>P@assw0rd!</MailServerUserPassword>
  <MailServerEnableSsl>true</MailServerEnableSsl>
</FusionConfiguration>
```

### Service account

The user account provided at this step will be associated with the server service process. The user must have enough access rights to access network resources ( SQL server, ERP server e.g.)

Note that if you are unable to verify the service account you can use ctrl+click on the next button in order to continue.

<img src="https://mintcdn.com/onitas/VA-10adAY-BAmUwu/zpider-eshop/getting-started/install-4-fusion-serviceaccount.PNG?fit=max&auto=format&n=VA-10adAY-BAmUwu&q=85&s=74ee386f76f0a52548d4b23e7224c56f" alt="Service account" width="482" height="400" data-path="zpider-eshop/getting-started/install-4-fusion-serviceaccount.PNG" />

### Summary

This step is a summary of the information entered in the previous steps.

Click install to execute the installation.

<img src="https://mintcdn.com/onitas/VA-10adAY-BAmUwu/zpider-eshop/getting-started/install-5-fusion-summary.PNG?fit=max&auto=format&n=VA-10adAY-BAmUwu&q=85&s=8038b18e1718682da503564548b6be04" alt="Summary" width="482" height="400" data-path="zpider-eshop/getting-started/install-5-fusion-summary.PNG" />
