Installation Guide

This guide covers the installation of Midgard 1.4.4 with Aegir CMS RC-1 and an optional Staging/Live setup on RedHat 7.3. Contributed by Mrinal Virnave.

This guide is written for RedHat 7.3. Steps are broadly applicable to other RPM-based Linux distributions.

Step 1 — Install required RPM packages

The following RPM packages must be installed before compiling Midgard:

rpm -Uvh gcc gcc-c++ make automake autoconf libtool \
         glib glib-devel libxml2 libxml2-devel \
         openssl openssl-devel mysql mysql-devel \
         apache apache-devel mod_ssl

Step 2 — Download and compile Midgard

tar xvfz midgard-1.4.4.tar.gz
cd midgard-1.4.4
./configure --with-apxs=/usr/sbin/apxs
make
make install

Step 3 — Configure MySQL

mysqladmin create midgard
mysql midgard < midgard.sql
mysql midgard -e "GRANT ALL ON midgard.* TO midgard@localhost IDENTIFIED BY 'midgard';"

Step 4 — Configure Apache

Add the Midgard VirtualHost configuration to your Apache configuration:

<VirtualHost my.host.name:8001>
  ServerName my.host.name
  MidgardDatabaseUsername midgard
  MidgardDatabasePassword midgard
  MidgardDatabaseName midgard
  MidgardDatabasePort 3306
</VirtualHost>

Step 5 — Install Aegir CMS

Follow the instructions on the Download page to install the Aegir CMS repligard package.

Staging/Live setup (optional)

See the Staging/live setup guide for instructions on configuring a two-server deployment.