Menu:

Delicious!

arrow Drawing with jquery

arrow Mobile applications RIP

arrow Lighthttpd tuning

arrow Kännykästä WLAN tukiasema

arrow MySQL advanced performance tips

 left_thumb_25102008-002.jpgleft_thumb_24102008-032.jpgleft_thumb_24102008-015.jpgleft_thumb_24102008-013.jpgleft_thumb_20092008.jpg 

Dezign
(4 Janv, 2007)

Some documentation about installing Midgard 2

Posted on 2008-10-25 13:58:13 EEST.

Required os: Ubuntu 8.04

Installing newest midgard is bit tricky. After all it's beta software so the installing scripts are not yet done.

1. Add following lines to your /etc/apt/sources.list
deb http://download.opensuse.org/repositories/home:/midgardproject:/ragnaroek/xUbuntu_8.04/ ./
# deb http://download.opensuse.org/repositories/home:/midgardproject:/vinland-dev/xUbuntu_8.04/ ./

2. apt-get update
3. apt-get install midgard libgda3-3 libgda3-common php5-memcache libgda3-mysql git-core python-gobject python2.5-dbus php5-syck
    - Ask yes for the midgard related questions
4. datagard
    - Enter your hostname when it's asked
        - Otherwise you won't be able to access web interface
    - Use default values except answer yes to MidCOM3 related question
5. Download and install all packages from http://download.opensuse.org/repositories/home:/midgardproject:/vinland-dev/xUbuntu_8.04/ that are related to your system architecture
6. Link /etc/midgard => /etc/midgard-2.0 and /usr/share/midgard => /usr/share/midgard-2.0

Now you got a midgard 2 installed on your system

6. git clone git://repo.or.cz/midcom.git (Installs MidCOM 3)
7. edit /etc/midgard-2.0/apache/vhost/hostname
    - add: php_value include_path .:/usr/share/php:/root/midcom        
    - add: MidgardRootFile /root/midcom/midcom_core/httpd/midcom-root-midgard2.php
    - Comment other MidgardRootFiles off

8. Ensure that line extension=midgard.so is present at /etc/php5/apache2/php.ini

9. Add following file
/etc/dbus-1/system.d/midgard_dbus.conf
with content

<!-- This configuration file specifies the required security policies
     for Midgard D-Bus service to work. -->

<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <policy user="root">
    <allow own="org.midgardproject"/>
  </policy>

  <policy context="default">
    <allow own="org.midgardproject" />
  </policy>

</busconfig>

10. pear install http://phptal.motion-twin.com/files/PHPTAL-1.1.13.tar.gz
11.     pear channel-discover pear.phing.info
    pear install phing/phing
    pear channel-discover pear.phpunit.de
    pear install phpunit/PHPUnit

Related stories

Back