You are here

Installing focmm

Preparing repository database

Create the Ops Center Schema in the repository database as follows:

mysql --user=root

CREATE SCHEMA focmm;
CREATE USER 'focmm_owner'@'127.0.0.1' IDENTIFIED BY 'secret';
GRANT ALL ON focmm.* to 'focmm_owner'@'127.0.0.1';

Downloading software

Download FromDual Ops Center here and store it under /tmp.

Installation

Ubuntu 14.04

ubuntu.png
VERSION=0.3.0
tar -C /var/www/html -xf /tmp/focmm-${VERSION}.tar.gz
cd /var/www/html
chown -R www-data: /var/www/html/focmm-${VERSION}
ln -s focmm-${VERSION} focmm
chown -h www-data: focmm
mkdir /etc/focmm
chown www-data: /etc/focmm

If you want to make sure all http traffic is forced to use https copy the tpl/htaccess.template file to /var/www/html/focmm:

cp /var/www/html/focmm/tpl/htaccess.template /var/www/html/focmm/.htaccess
chown www-data: /var/www/html/focmm/.htaccess

and change your Apache configuration file as follows:

# /etc/apache2/conf-available/focmm.conf

<Directory /var/www/html/focmm>
  AllowOverride All
</Directory>

Do not forget to restart Apache afterwards with:

a2enconf focmm

systemctl restart apache2

od

service apache2 restart

CentOS 7 / Redhat 7

centos.pngredhat.png
VERSION=0.3.0
tar -C /var/www/html -xf /tmp/focmm-${VERSION}.tar.gz
cd /var/www/html
chown -R apache: /var/www/html/focmm-${VERSION}
ln -s focmm-${VERSION} focmm
chown -h apache: focmm
mkdir /etc/focmm
chown apache: /etc/focmm

If you want to make sure all http traffic is forced to use https copy the tpl/htaccess.template file to /var/www/html/focmm:

cp /var/www/html/focmm/tpl/htaccess.template /var/www/html/focmm/.htaccess
chown apache: /var/www/html/focmm/.htaccess

and change your Apache configuration file as follows:

# /etc/httpd/conf/httpd.conf

<Directory /var/www/html/focmm>
  AllowOverride All
</Directory>

and install OpenSSL:

yum install mod_ssl openssl

Do not forget to restart Apache afterwards with systemctl restart httpd.

If later in your web browser you should get an error code 3002 or 3004 and/or the following error in your Apache error log, then it is most probably SElinux which causes troubles:

PHP Warning:  error_log(/var/www/html/focmm-rev402/log/error.log): failed to open stream: Permission denied in /var/www/html/focmm-rev402/lib/Log.inc on line 109

# sestatus 
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   permissive
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Max kernel policy version:      28

# setenforce Permissive

OpenSuSE 13.1

suse.png

n.a.

Creating Ops Center Repository

Now you have to connect with your browser to the Ops Center. As soon as you do this the first time. Ops Center tries to do some checks and lets you know about the diagnosis:

Ops Center diagnosis

At the end you have to enter the connect information for your Ops Center Repository Database you have created above. The Ops Center will start installing the Repository.

Ops Center installing repository

If everything completed successful you can login. The defaul user/password is admin/admin.

Ops Center Login

After the login you reach the Ops Center dashboard. Currently it will be empty and thus shows a nice architecture overview.

Ops Center Dashboard

If you reached this step Ops Center is installed and needs to be configured now...