You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This step-by-step guide is intended to outline the main steps for the WebSpellChecker Application installation on a Linux-based server with Nginx web server. In this guide we will run you through the whole installation process from downloading installation packages to embedding spell/grammar checking functionality to your web-based system.


Before you begin:

  • Check if your environment configuration meets the WebSpellChecker System Requirements.
  • Make sure you have a valid WebSpellChecker 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 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:
    • WebSpellChecker license is hardware-based. Once the license is activated, it can't be reused again.
    • If you are migrating WebSpellChecker from one server to another, you need to migrate the license as well. Check carefully the WebSpellChecker application migration procedure.
    • If you have problems with your license, contact us.

1. Download Installation Package

Download WebSpellChecker Server installation package for the corresponding version of your operating system (OS). By default, it is provided on a license purchase or renewal. You can also request it by contacting us

2. Install WebSpellChecker

2.1. Unpack the WebSpellChecker Server installation package (e.g. wsc_app_x64_5.5.x.x_xx.tar.gz).

$ tar -xvf wsc_app_x64_5.5.x.x_xx.tar.gz

2.2. Switch to the directory with the unpacked installation package and execute automated_install.pl script.

$ sudo perl automated_install.pl

If you are running the installation without root privileges, make sure all necessary directories have write permissions for the correct installation process.

2.3. Before proceeding with installation, read and confirm the terms and conditions of WebSpellChecker Software License Agreement.

Welcome to the WebSpellChecker (WSC) application installation wizard!

Before you go ahead with the installation, make sure that your environment configuration meets the WSC application system requirements.
If you are all set, please follow carefully the wizard instructions.

PLEASE MAKE SURE YOU ARE ACKNOWLEDGED AND ACCEPT THE WEBSPELLCHECKER SOFTWARE LICENSE
AGREEMENT TERMS AND CONDITIONS PUBLISHED ON THE WEBSPELLCHECKER OFFICIAL WEBSITE.
BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU ACCEPT THE FULL TERMS OF THIS AGREEMENT.

IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT, YOU MUST NOT INSTALL OR USE THE WEBSPELLCHECKER SOFTWARE.

2.4. Select installation path. The default installation path is /opt/WSC. However, you may decide to change it and set a desired one. As soon as you defined the installation path, press Enter to proceed.

Step 1: Check Configuration Settings.

Install path [/opt/WSC]:

2.5. Select the products you want to be installed. By default, WProofreader (Option 1) is selected.  

Step 2: Select Products.

	1. WProofreader(HTML Editable Controls, CKEditor 4/5, Froala Editor, TinyMCE, Quill, etc.)
	2. Web API
	3. SCAYT Plugin for CKEditor 4
	4. WSC Dialog Plugin for CKEditor 4
	5. Select all products
List the products you want to install. Use the comma as separator. [1]:

2.6. Confirm whether you want Demo Samples and Documentation to be installed. If so, press Enter to proceed.

Step 3: Install Demo Samples and Documentation

Do you want to install Demo Samples and Documentation? Enter 'y' or 'n' [y]:

2.7. During this step the installer copies files to the selected installation directory.

Step 4: Copy the WSC Files to the Installation Directory.

2.8. Define permissions. Set appropriate permissions for the application. Define the files' ownership, a user and group in the user:group format (e.g. 33:33). 

Step 5: Define the WSC Application Permissions.

Specify the files ownership, a user and group in the 'user:group' format. 
It can be the same user and group which are used for the Apache HTTP Server, i.e. 'www-data:www-data' or '33:33'.

Specify the files owner as user:group [nobody:nobody]: 33:33

* Setting the WSC application permissions.
You specified 33:33

2.9. Select the type of the protocol (HTTP or HTTPS) that will be used for communication with the WebSpellChecker service and a web server or Java application server. By default, HTTPS (Option 1) is selected. Press Enter to confirm the selection.

You will have this step if you selected products that can communicate with AppServer directly (for example, WProofreader or Web API). The exception is WSC Dialog Plugin for CKEditor 4. In this case all the requests and static files will be served by a selected web server or application server via the FastCGI protocol (SSRV.CGI component).

Step 6: Select Protocol Type.

Select the type of the protocol that will be used for communication with the WebSpellChecker service and a web server or application server.
If you plan to use HTTPS, please make sure you have a valid SSL certificate.

	1. HTTPS
	2. HTTP

Input the number from 1 to 2 [1]:

2.10. If you have selected HTTPS on the previous step, specify the path to a valid SSL certificate file (*.pem) and its private key file (*.pem) to establish a secure connection. Otherwise, this step is not available.

Step 7: Configure Service SSL Certificate.

Specify the path to the SSL certificate file (*.pem): /cert.pem	

Specify the path to the private key file (*.pem): /key.pem

If your SSL certificate is password-protected, provide the password.

If your SSL certificate is password-protected, please specify the password. Otherwise, leave it empty: *******

2.11. Specify the WebSpellChecker AppServer service port. The default port of AppServer is 2880. Press Enter to proceed the installation using port 2880.

Don't use the port number of your web server or Java application server here. The configuration settings for it are available further.

Specify the service port (by default: 2880). 
If you prefer to use a custom port, make sure it is not in use by another service. [2880]:

2.11. When selecting your web server, choose Other [3] to run static files using NGINX.

Step 8: Choose either Web or Application Server Type.

Select a particular Web or Application Server to be used for the WSC Application Server running.

	1. Apache HTTP Server
	2. Java Application Server (Apache Tomcat, Oracle WebLogic Server, Oracle GlassFish Server, etc.)
	3. Other

Input the number from 1 to 3:3

Due to technical limitations, WSC Dialog plugin for CKEditor 4 is not available for setup on Nginx. If it is a requirement for you to use this plugin, please consider setting it up on either Apache HTTP Server or Apache Tomcat.

If you want to use NGINX as a web server, perform the following steps:

  1. Set up NGINX.
  2. Create a wscservice configuration file with bindings to WebSpellChecker static files and add the necessary Access-Control-Allow-Origin headers.
  3. Create a symlink for the wscservice virtual directory.
  4. Configure NGINX to act as a reverse proxy to avoid exposing the 2880 port of AppServer. Check in the config sample below or visit NGINX reverse proxy on Ubuntu for more details.

Step 1. Install NGINX.

sudo apt-get update
sudo apt-get  install nginx

Step 2. Customize the firewall.

sudo ufw allow  'Nginx Full'

Step 3. Check the status of NGINX web server.

systemctl status nginx

Step 4. Create and customize 'server blocks'.

sudo cd /etc/nginx/sites-available/
sudo cp default wscservice
sudo nano wscservice

Here is an example of wscservice configuration file for NGINX.

wscservice
# Default server configuration
#
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	# SSL configuration
	#
	# listen 443 ssl default_server;
	# listen [::]:443 ssl default_server;
	#
	# Note: You should disable gzip for SSL traffic.
	# See: https://bugs.debian.org/773332

	server_name wscservice;

	# bindings of static files
	location /wscservice/ {
		alias /opt/WSC/WebComponents/WebInterface/;
		autoindex on;
		index  index.html index.htm;

	location /wscservice/samples/ {
		alias /opt/WSC/WebComponents/Samples/;
		autoindex on;
		index  index.html index.htm;
		}
			
	location /wscservice/wscbundle/ {
		alias /opt/WSC/WebComponents/WebInterface/wscbundle/;
		autoindex on;
		add_header Access-Control-Allow-Origin '*';
		}

	# reverse proxy for proxying requests to AppServer
	location /wscservice/api {
    # location /wscservice/api/ with a slash for WebSpellChecker versions 5.15.0.0 only
    proxy_pass http://your_host:2880;
		}    

	}	
}

Step 5. Create symlink for the 'wscservice' file.

ln -s  /etc/nginx/sites-available/wscservice /etc/nginx/sites-enabled/wscservice

Step 6. Restart NGINX.

sudo systemctl restart nginx

Step 7. NGINX troubleshooting if the restart fails. Probably the default NGINX config already uses the 80/443 port or you added an extra curly brace.

sudo nginx -t



3. Activate License

On this step you need to choose whether to run or not to run the license activation process. You can skip the license activation step if you already have a license activated or you prefer to proceed with the license activation step later. If you want to go ahead with the license activation, enter 'Y' and then proceed with the steps described in the license activation manual below.

Step 6: Activate license.

Do you want to proceed with the license activation? Enter 'y' or 'n' [y]:

Visit the License Activation on Linux guide to find out how to activate a license on a Linux server.

4. Finalize Installation

If no errors happened during the setup and everything is configured properly, you will receive a confirmation that the application has been installed.

Congratulations! The WSC application has been successfully installed to /opt/WSC directory.

5. Configure Grammar Engine

The Grammar engine requires Java 8 and higher. The installation script tries to auto-detect a path to an existing Java Virtual Machine (JVM). If the path is not found, you will be asked to specify the path to JVM.

You have an option to set a path to JVM manually or change the auto-detected path to your custom one. Refer to Enabling Grammar Engine guide to find out more.

6. Verify Operability

Now you are ready to check if the installation process of the application went well, and all the components are functioning properly.

Step 8: Verify the WSC application operability.

Check the application version, status and access the demo samples, to verify if the application works properly after the installation.

a. Version: https://your_host_name:443/spellcheck/script/ssrv.cgi?cmd=ver

b. Status: https://your_host_name:443/spellcheck/script/ssrv.cgi?cmd=status

c. Default demo samples: https://your_host_name:443/spellcheck/samples

WebSpellChecker Server Status

Here is a correct status response for Spell Check, Grammar and Thesaurus engines of WebSpellChecker Server:

Spell Check Engine is ACTIVE
Grammar Engine is ACTIVE
Thesaurus Engine is ACTIVE

Please find below the description of the statuses that are received from SSRV component:

'ACTIVE' status means that an Engine works properly.
'NOT ACTIVE' status means that an Engine is not enabled or does not work properly.

For more details and assistance, please contact the technical support team at [email protected].

WebSpellChecker Server Version

Here is a correct version response for WebSpellChecker Server 5.4.x.x on a Linux server:

(c) 2000-2019 WebSpellChecker LLC

All rights reserved.

www.webspellchecker.com

Program name:ssrv
Program version:5.4.x.x x64 master:xxxxxxx (xxx) #xx for Linux

WebSpellChecker Demo Samples

Here is the correct view of the WebSpellChecker demo samples:


7. Integrate WebSpellChecker

Integrate WebSpellChecker products into your web application.

Option A. Integration Guides

Visit Products and Integrations Guides to lean more how to get started with WebSpellChecker products.

WProofreader

Try our WProofreader. It is based on SpellCheckAsYouType (SCAYT) core, designed to simplify the integration and combine functionality of proofread as you type functionality and proofread in a dialog.

Here are the main benefits of using WProofreader:

  • Easy to get started. A single script for all editable fields in a web app;
  • Auto-search functionality which detects editable fields on a web page and enables proofreading functionality;
  • Proofread as you type functionality on multiply languages. Spell checking functionality is supported for 16 default languages and 152 additional languages, grammar checking functionality is available for 14 out of 16 default languages;
  • Simplified box with corrections for spelling and grammar problems;
  • A new badge button with the WebSpellChecker Proofreader settings;
  • Supported in all modern browsers such as Chrome, Firefox, Internet Explorer 11+, MS Edge, and Safari.

Refer to Get Started with WProofreader Server (autoSearch) guide for more information.

Option B. Demo Samples

Depending on the type of elements (HTML native elements, rich text editors) where the spelling/grammar check functionality is needed, you may choose and use the demo samples shipped with the WebSpellChecker Server package. 

To access the default samples, go to the following page:  https://your_host_name:port/spellcheck/samples/. 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.


  • No labels