Linux WBE Installation
This installation manual guides you through the installation of the Write Back Extreme extension on Linux.
Skill level
To follow along, knowledge of installing a webserver on Linux is required.
Operating System
This manual is written for Linux Ubuntu LTS 20.04.
Scope
The following topics will be outside the scope of this manual:
- Configuring the firewall
- Webserver: 80/443
- MySQL: 3306
- MSSQL: 1433
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
1. Preparation
For the purpose of this manual, you should use the bash terminal with sudo privileges:
Copy to Clipboard
Create the installation folder for the extension:
Copy to Clipboard
Make sure that we use the correct OS (Ubuntu or other LTS system):
Copy to Clipboard
Update dependency packages:
Copy to Clipboard
2. Installing a webserver
In order to use Write Back Extreme, you need to run a webserver. Our recommendation for a webserver is NGINX, due to its lightweight and static file performance. Alternatively, you can install Apache2 or others depending on the operating system. Select your preferred webserver below and follow te installation steps:
Install NGINX
This page will guide you through the installation of NGINX on Linux. This webserver is one of the options you have for using Write Back Extreme. Remove Apache2 if installed and not needed:
Copy to Clipboard
Install NGINX via apt-get:
Copy to Clipboard
Follow the steps for configuration and further installation.
Please use this link to download a pre-configured set of configuration files. Change the following parameters in the pre-configuration to your configuration:
- Server -> Domain;
- Server -> Path;
- HTTPS -> SSL certificate and key
- NGINX -> user: please check if this user is the same as your user.
Download config and follow instructions to place files in /etc/nginx/
Install SSL certificates in the right place
- SSL init:
Copy to Clipboard
- Restart NGINX
Copy to Clipboard
Install Apache2/PHP Apache2
For installation of Apache2, please follow the guides provided at:
Note: installation fo different versions of Ubuntu may vary. Choose the version that’s right for your environment.
Note 2: Make sure to enable mod_rewrite in Apache2! You can do this as follows:
3. Installing PHP 7.4.15 or higher
To use Write Back Extreme you need to setup PHP correctly. We’d recommend installing PHP-FPM because it’s a standalone PHP instance. Other PHP instances require and run-only with Apache2. Check what version of PHP is currently installed:
Copy to Clipboard
Install PHP
Add the following settings to php.ini to be able to upload extension-upgrade files:
Copy to Clipboard
Restart PHP
Copy to Clipboard
4. Installing a repository database
The next step in installing Write Back Extreme is to install a database. As of this moment, we fully support 4 databases for system tables and schema creation. Other databases support schema-only. Supported databases are listed below. Follow the appropriate guide for the preferred system database. Afterwards you can install any of the database drivers for schema creation.
Repository Databases:
- MySQL
- SQL Server
- PostgreSQL
- SQLite
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Install MySQL/MariaDB
This guide will explain how to install either MySQL or MariaDB. Because installation for both is similar, these two database drivers are both described on this page. Please follow along using the parts of this guide that apply to the driver of your choice.
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Install MySQL
Check which version is currently installed in your environment:
Copy to Clipboard
Install MySQL 8:
Copy to Clipboard
Configure MySQL
Some configuration is optional for security reasons:
Copy to Clipboard
Install MariaDB
To install MariaDB, please follow the default installation guide.
Configure MariaDB
Some configuration is optional for security reasons:
Copy to Clipboard
MySQL and MariaDB – Create database users
We’d highly recommend creating a read and write user for the database. Please do not use a period “.” in your passwords since this might break connections. The read-only user will be used for fetching and writing data into the table. The write/read user will be used by the system for managing the schemas and system tables in the database.
Copy to Clipboard
Install MS SQL
For other Linux installations, see Microsoft.com.
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Install dev tools
Copy to Clipboard
ODBC driver
Copy to Clipboard
PHP extension
Copy to Clipboard
Install PostgreSQL
We are currently working on an installation guide for PostgreSQL. Until this page gets updated, please follow the links provided below for installation instructions:
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Install SQLite
We do not recommend using SQLite. However, it is supported by Write Back Extreme. For an installation guide, please follow the documentation.
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Install Snowflake
Snowflake cannot be used for initial install. However, you can install it later to enable schemas and write back actions.
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
Currently, Write Back Extreme is only supported via ODBC. Make sure you have installed the PHP ODBC extension via PECL. You should have already done this in step 3: Installing PHP:
Copy to Clipboard
Configure ODBC for Snowflake
Please follow this guide to configure the ODBC driver for Snowflake:
ODBC Setup
For Snowflake, we recommend you to setup the majority of the connection settings within the ODBC manager. The connection can be configured as system- or user DSN. There are some configurations required within the backend:
- DSN name
- Username
- Password
- Database
ODBC manager fields are leading and will overtake the “local” Write Back configuration. Some default configuration layout:
Copy to Clipboard
DSN name to use in WriteBack: SnowflakeDSII
Install OracleDB
Please follow this guide: https://gist.github.com/eSkiSo/781269c79b4dd740e90fcc059c1985ae
Points of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
5. Installing and configuring the Write Back Extreme extension
If you’ve prepared your environment with a webserver, PHP and a database, you are ready to install and configure the Write Back Extreme extension.
Point of attention
- Avoid using passwords containing a period “.” This will break connections and result in unexpected behaviour.
5.1 Installation
First, unpack the zip file to /var/www/{write-back.company.com}/
Copy to Clipboard
5.2 Install Write Back Extreme
This video is for version 1.2 and higher
5.3 Set file permissions
Copy to Clipboard
5.4 Access backend
The system user (administrator = yes) you created in the “Configure application” step is used to access the backend via:
Copy to Clipboard
5.5 Download the .trex file
The .trex file can be downloaded from the backend to share it with users. Click on the username (top right) and click on “Download .trex”.
What’s next?
Congratulations! You’ve successfully installed and configured the Write Back Extreme extension in your environment. Now that you’re ready to go, check out the Write Back Extreme Product Guide for complete documentation on how to use the extension.
Upgrade guide 1.x to 1.2 (Linux)
This upgrade is specially made when upgrading from 1.x to 1.2 or higher. If you are on 1.2 and are upgrading 1.3 or higher, you can follow the same steps. But you only to backup / overwrite the wbe-core.phar and run the ./update script.
Make sure you are on PHP version 7.4.15 or higher!
These steps are exactly the same for Windows. But instead of running shell script you run Windows script.
Steps:
- Backup current directory
- Extract new extension files in current directory
- Restore LICENSE, .env, storage folder and migrations folder
- Run Update script (if you are upgrading)
- Make sure that permissions are correct for the newly added files (see below)
- Done!
Update file permissions
Copy to Clipboard