Automated installation on Linux

This step-by-step guide is intended to outline the main steps for the automated WebSpellChecker application installation on Linux utilizing Apache HTTP Server or NGINX. In this guide we will run you through the whole installation process from creating configuration file to embedding spell/grammar checking functionality to your web-based system.

Before you begin:

  1. Check if your environment configuration meets Installation requirements.

  2. Acknowledge with Architecture diagram.

  3. Make sure that you have a valid license:

    First of all you need to get a valid License Ticket ID to proceed with the license activation. Depending on the server license type, it may be a commercial (e.g. 1 year) or a 30-day trial license. Except the validity period, there is no difference between ticket types from the technical perspective.

    Good to know:

    • If you do not have a license yet, you can obtain it using one of the following ways:

    • 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.

    • If you are migrating WebSpellChecker from one server to another, you will need to deactivate (detach) a license on the current server and then reactivate it on a new one. Check carefully the Migrating License to New Server guide under the Licensing section.

    • If you have problems with your license, contact usarrow-up-right.

circle-info

Automated installation process is also covered in silent_install_manual.txt file which is included with the package

1. Create configuration file

Before you run the automated_install.plarrow-up-right script, you need to prepare a special configuration file and specify proper values for all the required installation parameters. This information will be used by the script for the automated installation of the WebSpellChecker application on your server.

1.1. Configuration file syntax

  • Configuration file has a simple structure resembling *.ini files.

  • Each row of the file should contain one parameter with an assigned corresponding value.

  • You are allowed to use indentation, spaces, and tabs and add blank lines.

  • You can comment some of the parameters using a hash sign “#” at the very beginning of the row with a parameter name (e.g. #activate_license = 1).

Below is an example of a simple configuration file that can be used for the automated installation of the application on a Linux-based server using NGINX assuming that you will be using the WProofreader add-on for RTEs product or WebSpellChecker API over HTTPS.

install_config.ini

1.2. Configuration file parameters

Table below lists all available parameters and their possible values that you can use in the configuration file. Some of the parameters are mandatory and must be defined. The rest of the parameters are optional. If you do not define values for the optional parameters, they will be either auto-defined by the script, or the default values will be used accordingly.

Parameter

Parameter Type

Default Value

Possible Values

Description

install_path

Optional

/opt/WebSpellChecker

  • /opt/WebSpellChecker/

  • Any other appropriate location on the server

The parameter defines the installation path for the application.

rewrite_old_installation

Optional

1

  • 0 – Do not create a backup file

  • 1 – Create a backup directory (.Backup)

The parameter is responsible for a backup file creation. If you have an existing copy of the application in the specified install_path, the script will reserve the whole folder in a .Backup directory.

file_owner

Mandatory

None

  • user:group (e.g. 33:33)

The parameter sets the application's files ownership for selected user and group.

products

Mandatory

1

  1. WProofreader add-on for RTEs and HTML controls (CKEditor 4/5, Froala Editor, TinyMCE, Quill, etc.)

  2. WebSpellChecker API

  3. SCAYT plugin for CKEditor 4

  4. Select all products

The parameter defines which product and components to install. It is not recommended to install all products but make your choice carefully.

Use coma as a separator for multiple options.

ai_models

Optional

1,2

  • 0 - None

  • 1. English language model

  • 2. English autocomplete model

  • 3. German language model

  • 4. Spanish language model

Specifies what languages to install. Use coma as a separator for multiple options.

languages

Optional

en_US

Comma-separated list of languages codes to install. Available languages can be found in list of supported languages with their shortcodes

Specifies what languages to install. Use coma as a separator for multiple options.

install_samples

Optional

1

  • 0 – Do not install Demo Samples and Documentation.

  • 1 – Install Demo Samples and Documentation.

The parameter defines whether the demo samples and documentation should be installed.

protocol

Optional

1

  • 1 – HTTPS

  • 2 – HTTP

service_port

Optional

2880

  • Any available port number in a range [1-65535]

The parameter defines the WebSpellChecker service port number. This is the internal port of AppServer.

domain_name

Optional

localhost

This parameter affects selected web-server settings and demo pages configuration.

web_port

Optional

  • 443 for HTTPS

  • 80 for HTTP

  • Any available port number in a range [1-65535] of your web server or Java application server. Here are some common ports:

    • 443

    • 80

    • 8443

    • 8080

The parameter specifies the port number of web server.

virtual_dir

Optional

wscservice

  • Any string

web_server_type

Mandatory

None

  1. Apache HTTP Server

  2. NGINX

  3. Other (Skips web-server configuration)

The parameter specifies a type of web or application server which will be used for the application server running.

path_to_jvm

Optional

  • Path to Java Virtual Machine (JVM)

The parameter defines the pass to Java Virtual Machine (JVM) that is mandatory for the grammar engine. During the final steps of setup, the AppServer will try to autodetect the path to JVM and add it to the settings. However, using the parameter you can predefine which version of JVM should be used.

activate_license

Optional

0

  • 0 – Skip the license activation step.

  • 1 – Run the license activation step.

The parameter defines whether to run the license activation process. You can skip the license activation step if you have already activated a license or you prefer to proceed with the license activationarrow-up-right step later.

license_ticket_id

Optional

  • Your valid license ticket ID. It can be a trial (30 day) or a commercial license (1 year).

The parameter specified a License Ticket ID that will be used during the license activation procedure.

apache_version

Optional

Current Apache HTTP Server version installed

  • 2.2.x

  • 2.4.x

The parameter defines the current version of Apache HTTP Server. Applies only if Apache HTTP Server is chosen as a web-server.

apache_auto_enable_modules

Optional

1

  • 0 – Do not enable extra modules.

  • 1 – Enable all required extra modules.

The parameter enables additional Apache HTTP Server mod_mimearrow-up-right and mod_headersarrow-up-right modules. They are required for a proper work of the application.

web_server_config_dir

Optional

Current Apache HTTP Server/NGINX configuration directory

  • /etc/apache2

  • /etc/apache2/conf.d

  • /etc/nginx/conf.d

The parameter defines location of the chosen web-server configuration directory.

restart_web_server

Optional

0

  • 0 – Do not restart web-server.

  • 1 – Restart web-server.

The parameter is responsible for restart of web-server. It is required for changes to take effect.

enable_proxy

Optional

0

  • 0 - Do not enable proxy server.

  • 1 - Enable proxy server.

Enable proxy server connection.

proxy_host

Optional

Proxy server host name or IP address.

proxy_port

Optional

TCP port number for proxy server.

proxy_user_name

Optional

User name to access proxy server.

proxy_password

Optional

  • password if any

User password to establish connection with proxy server.

service_files_dir

Optional

/var/lib

Any available path on the system.

Defines the path where license file and additional resources are stored. Always creates WebSpellChecker directory, so by default path will be: `/var/lib/WebSpellChecker`

create_systemd_service

Optional

0

  • 0 - Do not create systemd service.

  • 1 - Create systemd service.

Creates systemd service to control the application. For more information see Systemd service on Linux

2. Run automated install script

As soon as a configuration file with all the required parameters is defined, you need to run the automated_install.pl script with the install_config.ini configuration file as a first parameter as follows:

OR

Troubleshooting

If you specified a non-existing parameter in the configuration file, the automated installation will instantly fail, and throw an error message indicating an incorrect parameter. Moreover, with an incorrect parameter, the script may suggest possible valid parameters and their default values. However, if there is an error in a specified value, the installation will fail only on the specific step and might not give you a clear message for error handling.

3. Activate license

If you assigned “1” as a value for the activate_license parameter, the installer will attempt to activate a license automatically using a license ticket ID.

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

Otherwise, you need to proceed with the license activation procedure according to the License activation on Linux manually.

4. Verify operability

Now you are ready to check if the installation process of the application went well, and all the components are functioning properly. Check the application version, status, and access to the demo samples to verify if the application works properly after the installation.

Here is a correct status response for Spell Check, Grammar and all installed AI-based engines of WebSpellChecker Server:

Here is a correct version response for WebSpellChecker Server 6.x.x.x:

5. Integrate WebSpellChecker

As soon as backend components are up-and-running, you need to integrate WebSpellChecker frontend components (plugins, JavaScript libraries) into your web application.

Option A. Integration guides

Visit Integrations to learn more about how to get started with WebSpellChecker products, one of them being WProofreaderarrow-up-right.

Option B. Demo samples

Depending on the type of elements, namely HTML native elements or rich text editors where the spelling and grammar check is needed, you may choose and use the demo samples that are shipped with the package.

To access the default samples, go to http(s)://your_host_name/wscservice/samples/ where port is the port of your web server or Java application server. The default samples contain all the necessary samples and instructions that will help with the integration of the WebSpellChecker products. Moreover, each sample contains detailed development documentation with a list of methods and parameters available.

Last updated

Was this helpful?