Greetings!

After some struggle the whole Midgard system, MidCOM included seems to now run
reliably on my Mac OS X (Panther) box.

I've attached the latest installation notes. Some feedback and testing would be
appreaciated before these are posted to the Midgard website.

/Bergie
Installing Midgard 1.5.0 on Mac OS X 10.3 (Panther)

Henri Bergius <[EMAIL PROTECTED]>
2004-02-03

The default MySQL and Apache packages for OS X are a bit troublesome, as they don't 
seem to support dynamic libraries properly. Because of this we decided to install 
Apache from sources and MySQL from the Fink packages.

Compiling applications on Mac OS X requires the Xcode development tools to be 
installed. They can be found from the Applications/Developer Tools/ in file 
Developer.mpkg. Double click this file to install the package.

Download glib from http://www.serverlogistics.com/downloads-x11.php#gtk
and install it using the provided Mac OS X installer

Download the fink package management tools from 
http://fink.sourceforge.net/download/index.php
and install fink following the installer package provided.

Install mysql via fink
$ export PATH=$PATH:/sw/bin
$ sudo /sw/bin/apt-get update
$ sudo /sw/bin/apt-get install mysql
$ sudo /sw/bin/apt-get install mysql12-dev
$ sudo /sw/bin/mysqld_safe &

Install expat via fink
$ sudo /sw/bin/apt-get install expat
$ sudo /sw/bin/apt-get install expat-shlibs

Download Apache 1.3.29 from http://apache.archive.sunet.se/dist/httpd/

Compile Apache:
$ ./configure --prefix=/usr/local/apache --enable-module=so 
--sysconfdir=/usr/local/apache/conf --libexecdir=/usr/local/apache/libexec
$ make
$ make install

Download PHP 4.3.4 from http://fi2.php.net/get/php-4.3.4.tar.bz2/from/a/mirror

Compile PHP
$ ./configure --prefix=/usr/local/php --with-mysql=/sw 
--with-apxs=/usr/local/apache/sbin/apxs --with-iconv=/sw --with-iconv-dir=/sw 
--with-exif
$ make
$ sudo make install

Download Midgard source packages from http://www.midgard-project.org/download/

Note: mod_midgard_preparse doesn't work on Mac OS X, use the regular mod_midgard 
package instead.

Compile midgard-lib:
$ ./configure --prefix=/usr/local/midgard --with-mysql=/sw
$ make
$ sudo make install

Compile mod_midgard
$ ./configure --with-apxs=/usr/local/apache/sbin/apxs 
--with-midgard-config=/usr/local/midgard/bin/midgard-config
$ make
$ sudo make install

Make glibtoolize to be also found as libtoolize
$ sudo ln -s /usr/bin/glibtoolize /usr/bin/libtoolize

Compile midgard-php
$ cd midgard-php-1.5.0
$ /usr/local/php/bin/phpize
$ export PATH=/usr/local/apache/sbin:$PATH
$ ./configure --with-midgard=/usr/local/midgard/bin/midgard-config 
--with-php-config=/usr/local/php/bin/php-config
$ make
$ sudo make install

Edit file /usr/local/php/lib/php.ini, add lines
extension=midgard.so
register_globals=on

Install midgard-data
$ sudo mkdir /usr/local/midgard/blobs
$ sudo chown www:www /usr/local/midgard/blobs
$ ./configure --with-install=new --with-apache-user=www --with-apache-group=www 
--with-blobdir=/usr/local/midgard/blobs --with-midgard=/usr/local/midgard 
--with-port=8080
$ export PATH=$PATH:/usr/local/mysql/bin
$ sudo ./dbinstall
$ sudo cp midgard-data.conf /usr/local/apache/conf

Edit your /usr/local/apache/conf/httpd.conf, add to the end line
Include conf/midgard-data.conf

Point your browser to http://localhost:8080/admin and Midgard's login dialogue should 
appear.

Now that Midgard is running the next task is to install Aegir
http://www.midgard-project.org/projects/aegir/download/
and MidCOM
http://www.midgard-project.org/projects/midcom/download/
http://www.midgard-project.org/projects/midcom/components/

Edit /usr/local/midgard/etc/repligard.conf and change BlobDir to point to 
/usr/local/midgard/blob

Install Aegir
$ tar jxvf Aegir-1.0.1.tar.bz2
$ sudo /usr/local/midgard/bin/repligard -a -i AegirCMS.xml.gz

Edit Aegir's host entry:
$ mysql midgard -uroot
mysql> update host set port=8080;

Install MidCOM
$ sudo /usr/local/midgard/bin/repligard -a -i midcom.xml 
$ sudo /usr/local/midgard/bin/repligard -a -i midcom-template.xml
$ sudo /usr/local/midgard/bin/repligard -a -i midcom-example.xml
$ sudo /usr/local/midgard/bin/repligard -a -i de.linkm.events.xml
$ sudo /usr/local/midgard/bin/repligard -a -i de.linkm.taviewer.xml
$ sudo /usr/local/midgard/bin/repligard -a -i de.linkm.newsticker.xml
$ sudo /usr/local/midgard/bin/repligard -a -i de.linkm.sitemap.xml
$ sudo /usr/local/midgard/bin/repligard -a -i net.nemein.personnel.xml
$ sudo /usr/local/midgard/bin/repligard -a -i net.nemein.rss.xml
$ sudo /usr/local/midgard/bin/repligard -a -i net.siriux.photos.xml
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to