Nadmin Installation Guide

This guide by Mrinal Virnave covers installing Nadmin Studio or Aegir CMS on Red Hat 7.3. Important reading for all Aegir CMS installations.

For the newer guide covering Midgard 1.4.4 with Aegir CMS RC-1, see the Installation guide.

Prerequisites

  • Red Hat Linux 7.3
  • Root access
  • Apache, MySQL and PHP installed
  • GCC and development tools: apache apache-devel autoconf automake rcs php-mysql perl

Step 1 — Install Midgard 1.4.3

mkdir /usr/src/redhat/SOURCES/midgard
cd /usr/src/redhat/SOURCES/midgard

Download all files from http://www.midgard-project.org/download:

midgard-lib-1.4.3.tar.bz2
mod_midgard-1.4.3.tar.bz2
midgard-php4-1.4.3.tar.bz2
midgard-data-1.4.3.tar.bz2
mgd-nadmin-patches.tar.gz

Unpack and patch:

bunzip2 midgard-lib-1.4.3.tar.bz2 && tar xvf midgard-lib-1.4.3.tar
bunzip2 mod_midgard-1.4.3.tar.bz2 && tar xvf mod_midgard-1.4.3.tar
bunzip2 midgard-php4-1.4.3.tar.bz2 && tar xvf midgard-php4-1.4.3.tar
bunzip2 midgard-data-1.4.3.tar.bz2 && tar xvf midgard-data-1.4.3.tar
gunzip mgd-nadmin-patches.tar.gz && tar xvf mgd-nadmin-patches.tar

cd mgd-nadmin-patches
patch ../midgard-php4-1.4.3/event.c -i ./event.c.diff
patch ../midgard-php4-1.4.3/midgard.c -i midgard.c.diff
patch ../midgard-php4-1.4.3/mgd_event.h -i mgd_event.h.diff

Step 2 — Build and install

# midgard-lib
cd ../midgard-lib-1.4.3
export PATH=$PATH:/usr/sbin:/sbin
./configure && make && make install

# mod_midgard
cd ../mod_midgard-1.4.3
./configure --with-apxs=/usr/sbin/apxs
make && make install

# midgard-php4
cd ../midgard-php4-1.4.3
./mkall

See also: downgrade_unapproved.pl and Nadmin Studio Manual topic 73 for further configuration.

Step 3 — Configure MySQL

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

Step 4 — Install Aegir CMS

Follow the instructions on the Download page.

Questions? Email [email protected]