I've recently tried to install Midgard 1.4.4 from source on
a Mandrake 9.0 installation. I had two problems: one to do
with glib, the other to do with authentication to Asgard.

The first time around, I tried compiling midgard-lib using
the option that used glib memory pools. That stopped repligard
working in the midgard-data install. It produced lots of lines
saying:

Freeing chunk 1
Freeing chunk 2
Freeing chunk 3
Freeing chunk 4
Freeing chunk 5
Freeing chunk 6
Freeing chunk 7
Freeing chunk 8
Freeing chunk 9
Freeing chunk 10
Freeing chunk 11
Freeing chunk 12

and then froze. I got the same messages in the Apache error log
when I went on to try using Midgard with my existing database.

So I recompiled midgard-lib without that option, and went on
to complile mod_midgard and midgard-php4, without any errors
(although I did notice a message flash by about some special
compilation for Mandrake systems: I hope that included
Mandrake 9.0). But when I tried to access my existing sites,
Apache just returned page not found errors.

So I then backed up my databases, and installed a new Midgard
database from midgard-data-1.4.4. I asked it to install Asgard,
but not the example site. I also set the Apache log level to
debug (as one always does with Midgard :-( ).

On trying to access http://localhost:8000/asgard/ my browser
poped up an authentication dialog, asking for a username and
password to access SG0. So I typed in the usual admin and
password. The authentication dialog went away. The browser then
returned a 403 forbidden error page.

Just in case I had mistyped the username and password, I tried
other combinations. Everything except username admin and password
password made the authentication dialog pop up again. Only
the admin/password combination was accepted by the server. I also
checked the person table in the Midgard database, and found an
entry for admin, password **password in it, with sitegroup 0.

So it looked like the early stages of the Asgard authentication
were working, but something went wrong later. In the Apache
error log, I found these lines (ignore the line wrapping done by
my e-mail client):

[Fri Dec 27 09:56:53 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Dec 27 09:57:41 2002] [debug] mod_midgard.c(1325): [client 127.0.0.1] midgard_translate_handler(latin1, http://localhost:8000/asgard/)
[Fri Dec 27 09:57:41 2002] [debug] select_db.h(51): [client 127.0.0.1] Midgard: select_database opened database midgard
[Fri Dec 27 09:57:42 2002] [debug] select_db.h(33): [client 127.0.0.1] Midgard: select_database kept current database midgard
[Fri Dec 27 09:57:42 2002] [debug] mod_midgard.c(102): [client 127.0.0.1] Midgard: no basic auth found, trying cookie auth
[Fri Dec 27 09:57:46 2002] [debug] mod_midgard.c(239): Midgard: closing 1 database connections
[Fri Dec 27 09:57:48 2002] [debug] mod_midgard.c(239): Midgard: closing 1 database connections
[Fri Dec 27 09:57:49 2002] [debug] mod_midgard.c(1325): [client 127.0.0.1] midgard_translate_handler(latin1, http://localhost:8000/asgard/)
[Fri Dec 27 09:57:49 2002] [debug] select_db.h(51): [client 127.0.0.1] Midgard: select_database opened database midgard
[Fri Dec 27 09:57:49 2002] [debug] select_db.h(33): [client 127.0.0.1] Midgard: select_database kept current database midgard
[Fri Dec 27 09:57:50 2002] [debug] mod_midgard.c(1446): [client 127.0.0.1] Midgard: using style #3 (40 elements)
[Fri Dec 27 09:57:50 2002] [debug] select_db.h(33): [client 127.0.0.1] Midgard: select_database kept current database midgard
[Fri Dec 27 09:57:50 2002] [error] [client 127.0.0.1] client denied by server configuration: /usr/lib/apache/midgard-root.php
[Fri Dec 27 09:58:07 2002] [debug] mod_midgard.c(239): Midgard: closing 1 database connections

What is going wrong?

--
Dr. David R. Newman, Queen's University Belfast, School of
Management and Economics, Belfast BT7 1NN, Northern Ireland (UK)
Tel. (direct) +44 (0)28 9027 3643 (office) +44 (0)28 9033 5011
FAX: +44 (0)28 9033 5156 mailto:[EMAIL PROTECTED]
http://www.qub.ac.uk/mgt/staff/dave/


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

Reply via email to