Quick Midgard installation notes for Mandrake 9.1

Note: Mandrake 9.2 appears to be buggy, and Midgard only half worked on it.
Downgrading to Mdk 9.1 fixed the issue.

The Mandrake box was installed fresh with "database" and "development" profiles
selected.

Mandrake 9.1 ships with a buggy version of expat, so we installed the latest
1.95.7 version from sources:
./configure --prefix=/usr/local/expat
make
make install

Mandrake 9.1 ships with Apache 2, which Midgard 1.5.0 doesn't support. Because
of this we installed latest Apache 1.3.x from sources with the following
configure string:
./configure --prefix=/usr/local/apache --enable-module=so

We needed to install several additional RPMs from the Mandrake CDs:
* flex
* bison
* libglib-devel

Since MySQL doesn't get installed with default Mandrake we also installed in
from sources, with configure string:
./configure --prefix=/usr/local/mysql

Then we needed to do the following to set it running:
adduser mysql
/usr/local/mysql/bin/mysql_install_db
chown mysql.mysql /usr/local/mysql/var
/usr/local/mysql/safe_mysqld &

We also installed PHP 4.3.4 from sources, with configure string:
./configure --prefix=/usr/local/php/ --with-iconv --with-iconv-dir --with-exif
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql

Midgard-lib was installed with:
./configure --prefix=/usr/local/midgard --with-mysql=/usr/local/mysql
--with-expat=/usr/local/expat
make
make install

Mod_midgard was installed with:
./configure --with-apxs=/usr/local/apache/bin/apxs
--with-midgard-config=/usr/local/midgard/bin/midgard-config
make
make install

Midgard-PHP4 was installed with:
export PATH=$PATH:/usr/local/apache/bin
/usr/local/php/bin/phpize
./configure --with-midgard=/usr/local/midgard/bin/midgard-config
--with-php-config=/usr/local/php/bin/php-config
make
make install

Midgard-data was installed with:
export PATH=$PATH:/usr/local/apache/bin
mkdir /var/www/blobs
chown apache.apache /var/www/blobs
./configure --with-install=new --with-blobdir=/var/www/blobs
--with-apxs=/usr/local/apache/bin/apxs --with-apache-user=apache
--with-apache-group=apache --with-midgard=/usr/local/midgard
./dbinstall
cp midgard-data.conf /usr/local/apache/conf

Edit /usr/local/apache/conf/httpd.conf and add line:
Include conf/midgard-data.conf

Edit /usr/local/php/lib/php.ini and add lines:
extension=midgard.so
file_uploads=On
short_open_tags=On
register_globals=On

Run /usr/local/apache/bin/apachectl configtest to see if everything works,
resolve potential issues, then start Apache by:
/usr/local/apache/bin/apachectl start

Point your browser to http://localhost/admin and midgard admin site should answer


/Bergie, having very bad connectivity here in South Africa


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to