Server OS and Third Party Software Setup

How to setup the server including OS installation, third party software and components installations.

Contents

Requirements

Needed to install Variations:

OS and 3rd-Party Software Installation

Perform the following installation steps as root or sudo

Linux

Network Alias Devices

Firewall

Variations uses the following ports:

Java

Apache

MySQL

Variations uses two databases for Metadata and Access Management. Currently Variations is configured to work with MySQL and will require that you set up these databases in the configuration of the Variations server. Linux distributions such as RedHat Enterprise 6 already come with the appropriate version of Mysql. If you are using another Linux distribution you may want to check that it has a compatible version of MySQL or download a more current version. For more information on the Variations database see the Databases page

Perl

yum install libxml2-devel

cpan -i XML::LibXML

yum install libxslt-devel

cpan -i XML::LibXSLT

Darwin

Variations Administration User Account Creation

If the dmlserv user was created during the first boot process, then also

If the dmlserv user was not created during the first boot process, then

Create /etc/profile.d/variations.sh with this content:

export VARIATIONS_HOME=/home/dmlserv
export PATH=$VARIATIONS_HOME/app/bin:$PATH

Check that your VARIATIONS_HOME matches your install location

Once VARIATIONS_HOME has been set log out and then back in again and check with echo $VARIATIONS_HOME. When VARIATIONS_HOME is set properly run the following as root to let SELinux know the proper file contexts for Variations files. Whenever the system performs a relabeling SELinux will use these rules to set the contexts instead of using a default context which would make Variations be blocked by the SELinux policy. You can manually force a relabel using the restorecon command: restorecon -R -v ${VARIATIONS_HOME}

semanage fcontext -a -t httpd_sys_content_t "${VARIATIONS_HOME}"
semanage fcontext -a -t httpd_sys_content_t "${VARIATIONS_HOME}/content(/.*)?"
semanage fcontext -a -t httpd_sys_content_t "${VARIATIONS_HOME}/Variations-[^/]*/conf(/.*)?"
semanage fcontext -a -t httpd_sys_content_t "${VARIATIONS_HOME}/Variations-[^/]*/data(/.*)?"
semanage fcontext -a -t httpd_sys_content_t "${VARIATIONS_HOME}/Variations-[^/]*/public_html(/.*)?"
semanage fcontext -a -t httpd_sys_script_exec_t "${VARIATIONS_HOME}/Variations-[^/]*/public_html/cgi-bin(/.*)?"

Next Steps

You have just finished installing the all of the components needed to install and run the Variations server software. Proceed to the next step and install the Variations Server Software.
Back to the Administrators Guide Home Page