In this article:
The page contains an example of installing, setting up and deleting BI server on ALT Linux OS. The supported versions of Linux are given in the Supported Versions of Linux OS article.
NOTE. BI server functionality is limited by the set of available operations and their implementation.
Execute preparatory actions before BI server installation:
Make sure that the operating system is set up and hardware and software requirements are met for correct installation and full-functional work of Foresight Analytics Platform web application.
Set up DBMS back end.
Install DBMS front end:
To install Oracle front end, download the client from the official website (the basic, devel, sqlplus packages in the RPM format are required).
Consider installation using the example of the Oracle 12.1 client. To do it, copy RPM packages and install them with the following command:
sudo apt-get install oracle-instantclient*
After the installation add a path to the Oracle client libraries using the ldconfig utility to the list of dependent library search and update cache:
echo "/usr/lib/oracle/12.1/client64/lib" > ~/oracle.conf
sudo cp ~/oracle.conf /etc/ld.so.conf.d/
sudo ldconfig
After BI server is installed for the Apache2 instance in the /opt/foresight/fp10.x-biserver/etc/envvars environment variables file, export the TNS_ADMIN variable specifying the directory where the tnsnames.ora file is located. The Apache2 instance should have access to the file, the www-data:www-data owner can be set for the tnsnames.ora file.
For details about creating a repository database see the Preparing Oracle Server subsection.
To install PostgreSQL client from repository, execute the following command:
sudo apt-get install postgresql11
Alternatively, Postgres Pro client can be installed. The installation guide is available at the manufacturer's website.
For details on creating a database for repository see the Preparing PostgreSQL Server subsection.
If BI server is installed manually from archive or DBMS front end is installed after BI server installation, the symbolic link should be created:
sudo ln -s /usr/lib64/libpq.so.5 /usr/lib64/libpq.so
SQLite setup is not necessary for front end installation. Copy a file with repository database to the server, grant access permissions of BI server to the file and add an SQLite repository and specify the database file.
If a repository is based on Microsoft SQL Server DBMS, it can be worked via ODBC driver. For details see the Preparing ODBC Driver to Connect to Microsoft SQL Server article.
NOTE. The possible problems that may occur after installing DBMS front end on connecting to DBMS server are given in the sections describing the solving of possible problems on installation, update and on working with Foresight Analytics Platform.
Working with BI server of Foresight Analytics Platform requires installation of third-party packages that can be downloaded from the Internet or from DVD repository if the internet is unavailable, or from ready RPM packages. If an internet connection is provided via the proxy server, determine settings required for connection.
This section is relevant if during or after OS installation an additional user is created in the system. If installation is executed under the root user (not safe), the su and sudo utilities need not to be used.
To add the user who can execute the commands using root super user permissions (root password was entered during installation of the distribution file), execute the following operations:
Log in to the system under the account created during installation.
Open the terminal by selecting the main menu item Programs > Standard > Terminal. In the dialog box that opens execute the command of console login under the root user:
su
Enter root user password.
Edit the /etc/sudoers file:
vi /etc/sudoers
After the strings:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
Add the string:
<user name> ALL=(ALL) ALL
In the <user name> substitution specify name of the account used for work. Press F2 to confirm changes.
Log in to the console by executing the command:
su <user name>
Or just close console window and reopen it.
The BI server RPM package installation requires access to the repository with dependent packages:: glibc, glib2, libgomp, libjpeg, libXi, libXrandr, libXrender, libXcursor, libXinerama, fontconfig, findutils, bash, sed, openssl-libs >= 1, libglvnd-opengl, libstdc++, redhat-lsb-core, xorg-x11-server-Xvfb, libpng, mesa-libGL, mesa-libGLU, openldap, liberation-sans-fonts, qt5-qtbase, qt5-qtbase-gui, qt5-qtimageformats, httpd, xorg-xvfb, libpng15, qt5-imageformats, libnsl1 (for Oracle), apache2-base, apache2-httpd-worker.
To install packages, execute the commands in the terminal:
sudo apt-get install glibc
sudo apt-get install lsb-core
sudo apt-get install xorg-xvfb
To install Apache2, execute the command:
sudo apt-get install apache2
After the required packages have been installed, install BI server:
Copy the foresight-fp10.x-biserver-10.5.*.rpm RPM package to the home directory. Hereinafter, 10.5 is a version of Foresight Analytics Platform release version. For example, for Foresight Analytics Platform 10.5, the RPM package has the following name: foresight-fp10.x-biserver-10.5.*.rpm.
Install BI server package (other utility can be used for package installation):
rpm -ihv foresight-fp10.x-biserver.*.rpm
The following will be executed during the installation: a new Apache2 configuration instance is created for BI server, the mpm_worker module is enabled, the fp10.x-biserver module is enabled for loading of mod_axis2, links of the apache2ctl-fp10.x type are created in the /usr/local/sbin directory to manage the instance, the apache2-fp10.x service is registered and added to autorun, Foresight Analytics Platform are installed, the foresight-xvfb service is registered and added to autorun to start the virtual graphic display No. 987. The foresight-xvfb service is started automatically, and apache2-fp10.x must be started by the command:
systemctl start httpd2-fp10.x.service
After installing, to monitor BI server work and detecting various errors the user can enable logging of system messages. To do this, add the following string in the file /opt/foresight/fp10.x-biserver/etc/envvars:
# PP_LOG=1
Add the following strings in the files /etc/httpd2-fp10.x/conf/mods-avaible and /etc/httpd2-fp10.x/conf/mods-enabled:
Axis2LogFile "/opt/foresight/fp10.x-biserver/var/log/axis2.log"
Axis2LogLevel info
BI server uses settings specified in the settings.xml file. See its structure and make modifications if required.
NOTE. A file with settings is optional. If the file is absent, default parameter values are used.
To get information about repositories to work with, BI server uses the registry.reg or Metabases.xml file. For details about setting up these files, see the Configuration and Setup article.
All additional files used by BI server must have access permissions for an Apache HTTP Server user:
sudo chown -R apache:apache /opt/foresight/fp10.x-biserver
If there are insufficient permissions to create additional files, execute the commands:
sudo chmod -R 777 /opt/foresight/fp10.x-biserver
sudo setfacl -R -m u:apache:rwx /opt/foresight/fp10.x-biserver
After determining settings and granting permissions restart BI server service:
sudo systemctl restart httpd2-fp10.x
NOTE. In ALT Linux, commands may differ depending on the systemd or SysVinit initialization manager in use (systemctl or service).
The installed BI server will work in background mode as a separate Linux service. The Apache2 instance with BI server starts on the 80xx port, where xx corresponds to the major version of Foresight Analytics Platform release version.
After installing and setting up BI server, proceed to the web application back end installation.
A metadata repository can be created in two ways:
In the testing environment with Windows OS create a metadata repository, service user of security subsystem and set up repository connection using Foresight Analytics Platform.
Before creating a repository, study the Installing Foresight Analytics Platform Desktop Application section.
In the testing environment with Linux OS family create a metadata repository and set up repository connection.
After executing one of the operations, transfer the repository and connection settings to the production environment by DBMS means.
To remove BI server files without removing configuration files, execute the command and confirm removal:
sudo apt-get remove fp10.x-biserver
All files in the /etc/httpd-fp10.x and /etc/opt/foresight/fp10.x-biserver folders, as well as new files not included in the software package will be saved and can be used on the next package installation.
See also:
Installing Web Application on Linux OS | Checking BI Server Performance