This article describes installing and setting up httpd services for working with BI server on Zircon 36C OS. 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:
To install httpd, execute the following command in the terminal:
sudo yum install httpd
If the installation failed and the message "conflicts with file from package httpd-2.2.15-9.el6.x86_64" appears, remove the pack httpd-2.2.15-9.el6.x86_64, by executing the following command:
sudo yum remove httpd
NOTE. The httpd version number that will be contained in the message depends on the installed httpd version and can differ from the specified in the example.
After that reinstall httpd:
sudo yum install httpd
Install the xorg-x11-server-Xvfb package:
sudo yum install xorg-x11-server-Xvfb
Then set up xvfb. The graphics setup example is given in the Outputting Graphics via xvfb Virtual Display subsection.
Determine httpd start parameters, for that open the httpd file, by executing the following command in the terminal:
sudo vi /etc/sysconfig/httpd
At the end of the file add the following strings:
## Prognoz Platform
export WSFCPP_HOME=/opt/foresight/9.0/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.0
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.
sudo vi /etc/httpd/conf/httpd.conf
Remove the <IfModule worker.c> tags with their contents from the file. Add to the end of the file:
<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/9.0/bin/libmod_axis2_2_2.so"
# Uncomment line below if use htppd 2.4
#LoadModule axis2_module "/opt/foresight/9.0/bin/libmod_axis2_2_4.so"
Axis2RepoPath "/opt/foresight/9.0/bin"
Axis2LogFile "/opt/foresight/9.0/bin/logs/axis2.log"
Axis2LogLevel info
Axis2ServiceURLPrefix services
<Location /axis2>
SetHandler axis2_module
</Location>
Change KeepAlive Off for KeepAlive On for correct work with Java client under Tomcat.
Make the Apache user the owner of the /opt/foresight/9.0 directory by executing the command in the terminal:
sudo chown -R apache:apache /opt/foresight/9.0
Disable the SELinux access control system. To do this, open the selinux file by executing the command in the terminal:
sudo vi /etc/sysconfig/selinux
In the window that opens set SELINUX to disabled. Restart the computer.
Enable the MPR worker module in the httpd file. To do this, open the file by executing the command in the terminal:
sudo vi /etc/sysconfig/httpd
Uncomment the string:
HTTPD=/usr/sbin/httpd.worker
Run httpd services by executing the command in the terminal:
sudo chkconfig httpd on
sudo service httpd start
If after executing the command the error message "Syntax error on line 1 of /etc/httpd/conf.d/mod_dnssd.conf" appears, execute the following in the terminal:
sudo rm -f /etc/httpd/conf.d/mod_dnssd.conf
sudo service httpd restart
Check performance of the BI server started under httpd by the URL in the browser: http://localhost:80/axis2/services/. A page with the list of BI server operations should open (see the Checking BI Server Performance section).
See also: