# License activation on Linux

As soon as the installation process is completed, you are required to activate a license to start using the application. Below you can find a step-by-step manual for the license activation on a Linux server.

To proceed with the license activation, you need to get a valid **license ticket Id**.

**Good to know:**

1. information.If you do not have a license yet, you can obtain it using one of the following ways:
   1. request [a 30-day trial license](https://webspellchecker.com/free-trial/#wsc-trial) for evaluation and testing purposes;
   2. acquire a commercial license by contacting our [sales department](https://webspellchecker.com/contact-us/#salesSupport).
2. Depending on the server license type, it may be a commercial (1-year) or a 30-day trial license. Except the validity period, there is no difference between ticket types from the technical perspective.
3. There is a mechanism of license reactivation available. There will be a set of attempts to reactivate a license automatically that is about to expire (7 days, 1 day, 1 hour and 10 minutes before expiration). All the attempts and their status will be recorded in the log files. This can be disabled, for more details visit [Disable license auto-reactivation](/v6.12.0/deployment/licensing/disable-license-auto-reactivation.md).
4. Starting from v5.8.1 released on December 30, 2020, the license is no longer validated by or tied to the hardware characteristics of a machine or server. License for older versions of the packages is hardware-dependent and require license migration procedure if you are migrating WebSpellChecker from one server to another. Refer to the [license migration procedure](/v6.12.0/deployment/licensing/migrating-a-license-to-a-new-server-for-v.5.4.0-5.7.1.md) for details.
5. If a firewall and proxy server is used to handle the inbound/outbound traffic to your network, please check [License activation through proxy server](/v6.12.0/deployment/licensing/license-activation-through-proxy-server.md) for additional information.
6. If you have problems with your license, contact our [technical team](https://webspellchecker.com/contact-us/).

1\. Run the **activateLicense.sh** script to launch License Service using the following command below:

```javascript
sudo sh /<WebSpellChecker_Installation_Dir>/WSC/AppServer/activateLicense.sh
```

Or your can also run **AppServerX** with **-activateLicense** parameter.

```javascript
/<WebSpellChecker_Installation_Dir>/WSC/AppServer/# ./AppServerX -activateLicense
```

2\. Specify your **License Ticket ID**. It may be a 30-day trial or a 1-year commercial license ticket that you received after the trial version request or after purchasing the license respectively.

```javascript
Do you want to proceed with the license activation process and run a request license?
Enter 'y' or 'n' [y]: y
Specify your License Ticket ID: ***************
```

If you enter a License Ticket ID that is incorrect or invalid, you will get the following error:

Error. The License Ticket ID that you have entered is incorrect or invalid. Please recheck your Ticket and try again.

To solve the issue, recheck your License Ticket ID and try again.

3\. Select the **license activation mode.** There are two modes available for the license activation which is **automatic** and **manual** described below:

* [Option A: Automatic License Activation](#licenseactivationonlinux-optiona-automaticlicenseactivation)
* [Option B: Manual License Activation](#licenseactivationonlinux-optionb-manuallicenseactivation)

Automatic license activation mode requires Internet connection on the machine where you are trying to install WebSpellChecker.

#### Option A: Automatic License Activation <a href="#licenseactivationonlinux-optiona-automaticlicenseactivation" id="licenseactivationonlinux-optiona-automaticlicenseactivation"></a>

3.1. If you prefer to activate license automatically, and Internet connection is available on your machine, press **Enter**. Automatic license activation is provided by default.

```javascript
Do you want to proceed with the license activation process and run a request license?
Enter 'y' or 'n' [y]: y
Specify your License Ticket ID: ***************

Do you want the installer to attempt to activate your license automatically? 
The automatic activation requires the Internet connection available on this machine. 
Otherwise, please proceed with the manual activation instead. Enter 'y' or 'n'. [y]:

Congratulations! Your license is confirmed and activated successfully.
```

If the Internet connection is absent on a machine where you are trying to activate a license automatically, you will get the following error:

Error. Unable to connect to the remote license server. The automatic license activation has failed. Check your Internet connection or try to activate your license manually.

Either resolve the issue with the connection on the machine or try to activate license manually.

#### Option B: Manual License Activation <a href="#licenseactivationonlinux-optionb-manuallicenseactivation" id="licenseactivationonlinux-optionb-manuallicenseactivation"></a>

3.1. If your machine doesn't have Internet connection configured, select manual license activation mode by typing **'n'**.

```javascript
Do you want to proceed with the license activation process and run a request license?
Enter 'y' or 'n' [y]: y
Specify your License Ticket ID: ***************

Do you want the installer to attempt to activate your license automatically? 
The automatic activation requires the Internet connection available on this machine. 
Otherwise, please proceed with the manual activation instead. Enter 'y' or 'n'. [y]: n
```

3.2. Once the manual license activation mode is selected, a **License Request link** will be generated based on a License Ticket ID specified and unique machine hardware characteristics. Use this License Request link to obtain a License Response string. Copy the entire License Request link and paste it into the browser window on the machine with Internet connection. If the used License Ticket ID and the License Request link are valid, you will receive a License Response string generated by our License Server.

```javascript
Do you want to proceed with the license activation process and run a request license?
Enter 'y' or 'n' [y]: y
Specify your License Ticket ID: ***************

Do you want the installer to attempt to activate your license automatically? 
The automatic activation requires the Internet connection available on this machine. 
Otherwise, please proceed with the manual activation instead. Enter 'y' or 'n'. [y]: n

Obtain a License Response string by copying and pasting the next License Request link into the browser window: 
https://webspellchecker.com/api/licensing/v1/process-license?data=3:PkDzeo2t7mBaATUFE9PWdJjWZkdsjJFpzwUFZjCIC4ObVstHdPuOcVjT5HRGWjGvXumnouD3Tz1k3W42uFnR8EAO2564fXKDc4UHjTuU46EcZde%2BaRUI9c2c=
```

3.3. Copy the License Response string generated in the browser window and paste intro the command line as your License Response. If the License Response that you entered is valid, you will receive a confirmation of the successful license activation.

```javascript
Do you want to proceed with the license activation process and run a request license?
Enter 'y' or 'n' [y]: y
Specify your License Ticket ID: ***************

Do you want the installer to attempt to activate your license automatically? 
The automatic activation requires the Internet connection available on this machine. 
Otherwise, please proceed with the manual activation instead. Enter 'y' or 'n'. [y]: n

Obtain a License Response string by copying and pasting the next License Request link into the browser window: 
https://webspellchecker.com/api/licensing/v1/process-license?data=3:PkDzeo2t7mBaATUFE9PWdJjWZkdsjJFpzwUFZjCIC4ObVstHdPuOcVjT5HRGWjGvXumnouD3Tz1k3W42uFnR8EAO2564fXKDc4UHjTuU46EcZde%2BaRUI9c2c=

Enter your License Response: 3:gaqbnSEaEHRC9%2Bqq%2BSpFkJek1ig0Rm7BzD3R5Paqq%2BNPDZcNEUe0Kt1w648GrLqrSI9XgmeKoJCB1bfQ/zGH/Q9pSgaJVhzklho5DNmDGhDQMZmVKVa2yKr7N006W1XcWXF3P/0FaZK%2Bh9K5MvvzxoNpU=

Congratulations! Your license is confirmed and activated successfully.
```

If after checking all the license details and performing all the described steps, you are unable to get the license activated properly, contact us at <support@webspellchecker.net> and describe the problem.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wproofreader.com/v6.12.0/deployment/licensing/license-activation-on-linux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
