# License Server

Oz Forensics provides flexible licensing rules for all products. To support licensing for servers without an Internet connection, you need to install an offline license server.

<figure><img src="https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5g6dgsxRbyrCvB0uAf8f%2Fuploads%2Fkhnl141gkSdQTUgrjcTn%2Fcomponents-public-licenseserver.svg?alt=media&#x26;token=f172f46d-26f2-4b80-823d-44004849131a" alt=""><figcaption></figcaption></figure>

## How to Install an Offline Licensing Server

You can install the software on any Linux-based non-virtual server. [Contact us](https://Mailto:Info@ozforensics.com) to get the files needed and follow the steps below.

### 1. Unpack the Software

```bash
mkdir /opt/oz
cd /opt/oz
tar xzf oz-lic.tar.gz
```

### 2. Install the License Service

```
./LexFloatServer -p product.dat -c config.yml -i --service-name ozlic
```

The installation is complete. For the next steps, use the Web interface on port `8090`.

### 3. Activate the License

Open the default page in your Web browser `http://server:8090` and authorize with your login and password.

![авторизация](https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQv56Gc3Y1R9ZpI2hd6%2F-Mipzs_5GiYbvwh3BX0h%2F-Miq8P8E_2bD2pxVvfv4%2Fimage.png?alt=media\&token=a7a4ab01-6414-4da0-b936-cfb85aebd07d)

Go to the`Settings` section.

![](https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQv56Gc3Y1R9ZpI2hd6%2F-Mipzs_5GiYbvwh3BX0h%2F-Miq9_HOj-A_tl4Mw8va%2Fimage.png?alt=media\&token=29448090-f532-4522-bd3e-b68b59365950)

![](https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQv56Gc3Y1R9ZpI2hd6%2F-Mipzs_5GiYbvwh3BX0h%2F-MiqBkF6EIk2J0DBaYEV%2Fimage.png?alt=media\&token=b7150632-b7de-4586-8d25-e134925482cb)

#### Online activation

The easiest way to activate the license server is via the Internet. Enter the license key and click `ACTIVATE`.

#### Offline activation

If your server isn't connected to the Internet, use the offline activation option. Click the `SWITCH TO OFFLINE ACTIVATION` link.

![](https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQv56Gc3Y1R9ZpI2hd6%2F-Mipzs_5GiYbvwh3BX0h%2F-MiqByxyTpTk8MxTbHXs%2Fimage.png?alt=media\&token=bceb71e4-6dd5-40da-aa6d-e79c86c58a6c)

Enter the license key and hit `NEXT`.

![](https://2532558063-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MQv56Gc3Y1R9ZpI2hd6%2F-Mipzs_5GiYbvwh3BX0h%2F-MiqB8YCLY9wVZ5Y9UaW%2Fimage.png?alt=media\&token=d805573d-6584-4fd2-a796-435a1ad2bc29)

Click`DOWNLOAD REQUEST FILE`.

You'll get the `offline_activation_request.txt` file. Send it to [us](mailto:Info@ozforensics.com) to receive the activation code.

Enter the activation code in the offline activation response window and hit `ACTIVATE`.

## Activate modules

### Oz Api Lite

Add an extra command line parameter with the `LICENSE_KEY` environment variable with license server host address and port.

```bash
docker run -e LICENSE_KEY="http://ip-address:8090" ...
```

### Oz Bio

Create the `license.key` file with the content of license host and IP and bind this file to your container:

```bash
echo "http://ip-address:8090" > license.key
docker run -v `pwd`/license.key:/license.key ...
```
