This article describes installing and setting up of httpd services for working with BI server on Sintez-OS.WS. It is recommended to set up xvfb virtual display before the installation.
To install and set up httpd services to work with BI server, execute the following operations:
Add the following strings to the /etc/sysconfig/httpd file:
HTTPD=/usr/sbin/httpd.worker
## Prognoz Platform
export WSFCPP_HOME=/opt/foresight/R81/bin
export LD_LIBRARY_PATH=$WSFCPP_HOME:/opt/Qt-4.8.7/lib:$LD_LIBRARY_PATH
export TNS_ADMIN=$WSFCPP_HOME
# Uncomment line below to export extended log
#export PPLOG=1
export HTTPD_LANG=en_US.UTF-8
export DISPLAY=localhost:987
export LD_PRELOAD=/opt/Qt-4.8.7/lib/libQtGui.so.4
export LSFORCEHOST=NO-NET
NOTE. The specified example uses the Qt 4.8.7 version. If OS contains another version, correct specified strings by specifying corresponding version of Qt. For example, if Qt is installed from QtSdk-offline-linux-x86_64-v1.2.1.run package, replace the path /opt/Qt-4.8.7/lib to /opt/QtSDK/Desktop/Qt/4.8.1/gcc/lib. Specify the number of the display server, on which graphics is rendered, in the DISPLAY environment variable. It is recommended to use the virtual display xvfb No. 987, but if the physical X server is used, specify its number DISPLAY=:0.0.
Delete the <IfModule worker.c> tags with their contents in the file /etc/httpd/conf/httpd.conf. Add:
<IfModule worker.c>
ServerLimit 1
StartServers 1
MaxClients 64
MinSpareThreads 32
MaxSpareThreads 64
ThreadsPerChild 64
MaxRequestsPerChild 0
</IfModule>
CoreDumpDirectory /tmp
## Prognoz Platform
# Uncomment line below if use httpd 2.2
LoadModule axis2_module "/opt/foresight/R90/bin/libmod_axis2_2_2.so"
# Uncomment line below if use htppd 2.4
#LoadModule axis2_module "/opt/foresight/R90/bin/libmod_axis2_2_4.so"
Axis2RepoPath "/opt/foresight/R90/bin"
Axis2LogFile "/opt/foresight/R90/bin/logs/axis2.log"
Axis2LogLevel info
Axis2ServiceURLPrefix services
<Location /axis2>
SetHandler axis2_module
</Location>
Add httpd service restart:
sudo chkconfig httpd on
Disable SELinux in the /etc/sysconfig/selinux file, after that restart the computer:
SELINUX=disabled
NOTE. SELinux is disabled for illustrative purposes. The setup of security subsystem for working with Prognoz Platform 9 BI server must be executed by the system administrator.
Then set up xvfb. The graphics setup example is given in the Outputting Graphics via xvfb Virtual Display subsection.
Restart the httpd service:
sudo service httpd restart
Check performance of the BI server installed in httpd by the URL in the browser: http://localhost/axis2/services/. A page with the list of BI server operations should open (see the Checking BI Server Performance section).
See also: