TermWeb 4 install on Linux
1 | PrerequisitesBefore beginning installation get ready next things and settings:
|
2 | Launch new Linux server
|
3 | Configure Linux instanceIn most cases we donāt need swap file because application is almost dead when itās reading data from it. Instead we suggest to increase memory of your instance. But if your company policy requires it you may use next steps: 1. Calculate the swap space size (see): 2. For most use cases of TermWeb having more than 1GB of swap file is not necessary The block size you specify should be less than the available memory on the instance or you receive a "memory exhausted" error. 3. Update the read and write permissions for the swap file: 4. Set up a Linux swap area: 5. Make the swap file available for immediate use by adding the swap file to swap space: Ā 6. Verify that the procedure was successful: 7. Enable the swap file at boot time by editing theĀ /etc/fstabĀ file. To disable swap file use next command: Most of the linux distributions comes with MariaDB files, which have same executables as MySQL. If you have plans to create DB backups on this linux server, then you need to remove MariaDB files and install MySQL client. Remove MariaDB as replacement of MySQL* Remove mariadb files: * Install mysql client: |
4 | Install JDKDownload and install latest build of Open JDK 8 or Oracle JDK 8. Higher versions of Java not supported right now.
|
5 | Install Tomcat 9.0Download and install latest build of Tomcat 9.0 We donāt know any good and trusted repository containing fresh versions of Tomcat so we canāt give to you any short command. If you donāt know how to install Tomcat you can get an idea from these good guides: How To Install Apache Tomcat | DigitalOcean. For Ā Next steps assumes Tomcat installed and running with user Create TermWeb home folderTermWeb home folder will be used for storing terweb.properties file, file uploads, temporary files and logs.
Setup tomcatYou may configure Tomcat via systemd, init.d, startup command or with standard Tomcat file
|
6 | Install or configure Apache httpd server
Enabling HTTP/2 for Apache httpdEnabling HTTP/2 for TermWeb speeds up initial page render about 3x times especially for anonymous users. Prior to enable HTTP/2 you must have at least Apache httpd 2.4.17 To enable HTTP/2 protocol for host use next config:
|
7 | Configure encryption for your websitePickup certificate from your IT department or get from any company. One of non commercial companies provides it for free: https://letsencrypt.org |
8 | Install TermWeb 4Unpack distributive
Create and configure termweb.properties
For further configuration check next page: TermWeb configuration (termweb.properties) Run and test
|
9 | Configure log rotation for TomcatTo avoid tomcat logs grow without limits we need to configure logrotate for it. Major log file to rotate there is |
10 | Configure Monitoring for server statusWe advise to configure tools on your choice which will monitor server status |
11 | Configure DB backupsDonāt forget to have DB backups on daily basis. |
Ā