Hi,
I've compiled a test_apache with sitegroups enabled midgard, And I have a
working apache with non-sitegroups midgard listening to another IP.
In this way I don't break my existing installation.
However, I don't seem to understand what to do next. Here's what I did so
far:
- mysqladmin create midgard2
- mysql midgard2 < midgard.sql (from the 1.2.6beta2 package)
- mysql midgard2 < sitegroups.sql (from the lib/ tree in CVS)
- mysql mysql
- and from the install instructions in the 1.2.6beta2 package:
$ mysql mysql
mysql> INSERT INTO user (Host,User,Password)
-> VALUES ('localhost','midgard',Password('midgard'));
mysql> INSERT INTO db (Host,User,Db,Select_priv,Insert_priv,
Update_priv,Delete_priv)
-> VALUES ('localhost','midgard','midgard','Y','Y','Y','Y');
mysql> FLUSH PRIVILEGES;
,replacing my own username & passwd where appropriate.
- mysql midgard2
- update host set name="tst.alienspirit.com"; # thus having the admin
interface on http://tst.alienspirit.com/admin, example on
http://tst.alienspirit.com/example
- cp [midgard-data-dir]/htdocs/* /usr/local/test_apache/htdocs -Rv
- edited httpd.conf to have the virthost set up.
I then tried to login to the admin site, but I keep getting failed
authorisation. Having read sitegroups03.txt I did a:
INSERT INTO sitegroup (name) VALUES ('0');
mysql> select * from sitegroup;
+----+------+------------+
| id | name | admingroup |
+----+------+------------+
| 1 | 0 | 0 |
+----+------+------------+
1 row in set (0.00 sec)
and tried to log in as admin0, admin@0 #0 /0 and whatever else I could
think off, all in vain.
I've then set /example online, and this one turns out to work real fine,
so my problem is with authentication only I guess.
My logs also prove that the two server running on the same machine don't
'steal' eachothers requests.
I am pretty sure I missed something really simple, but I fail to see it.
Hope someone can help. I've include a bit from my error_log (LogLevel
debug), wich shows two attempts to login to the admin site. (btw.
tst.alienspirit.com resolves fine from here, I have a lying DNS...)
====================================================================================================
[Thu Apr 13 02:42:02 2000] [debug] mod_midgard.c(589): [client
195.11.232.126] midgard_translate_handler(latin1,
http://tst.alienspirit.com:80/admin/)
[Thu Apr 13 02:42:02 2000] [debug] mod_midgard.c(624): [client
195.11.232.126] Midgard: host record for tst.alienspirit.com:80 found (#1)
[Thu Apr 13 02:42:02 2000] [debug] mod_midgard.c(490): [client
195.11.232.126] walking pages /
[Thu Apr 13 02:42:02 2000] [debug] mod_midgard.c(648): [client
195.11.232.126] Midgard: page record for /admin/ found (#1)
[Thu Apr 13 02:42:02 2000] [debug] mod_midgard.c(654): [client
195.11.232.126] Midgard: using style #1 (19 elements)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[Thu Apr 13 02:43:56 2000] [debug] mod_midgard.c(589): [client
195.11.232.126] midgard_translate_handler(latin1,
http://tst.alienspirit.com:80/admin/)
[Thu Apr 13 02:43:56 2000] [debug] mod_midgard.c(624): [client
195.11.232.126] Midgard: host record for tst.alienspirit.com:80 found (#1)
[Thu Apr 13 02:43:56 2000] [debug] mod_midgard.c(490): [client
195.11.232.126] walking pages /
[Thu Apr 13 02:43:56 2000] [debug] mod_midgard.c(648): [client
195.11.232.126] Midgard: page record for /admin/ found (#1)
[Thu Apr 13 02:43:56 2000] [debug] mod_midgard.c(654): [client
195.11.232.126] Midgard: using style #1 (19 elements)
-----------------------------------------------------------------------------------------------------
Oh, yeah... something else. the php in CVS wouldn't compile because
MIDGARD_LOGIN_RESERVED_CHARS wasn't defined. I did a crude thing, and
changed in php/config.h from line 417:
#if HAVE_MIDGARD
#define MIDGARD_VERSION "+Midgard/1.2.6"
#else
...
into:
#if HAVE_MIDGARD
#define MIDGARD_VERSION "+Midgard/1.2.6"
#define MIDGARD_LOGIN_RESERVED_CHARS "*"
#else
...
The star may not have been the wisest choice, but I don't see it being the
cause of my prob, as I changed the admin passwd using the mysql interface
(It did contain ** to signal plaintext)
dunno,
Cheers,
--
Armand A. Verstappen * <[EMAIL PROTECTED]> *
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]