Toni Milovan wrote:

>  Midgard/1.2.4 configured -- resuming normal operations
>  [Mon Nov  8 15:10:53 1999] [notice] Midgard: Skipping unused database
>  <default>

This is a buglet in mod_midgard. It does no harm (other than filling
your
log). I attached a patch that will fix it. You will also need this patch
if you want a non-default databasename, user or password.

The sites not coming up is another thing. Have you used the default
passwords (none specified in httpd.conf, and DB/user/password =
midgard)?

Set the apache LogLevel to 'debug' and let's see what turns up.

>  I have to notice that installing on Solaris is much more complicated
>  than installing on linux. I did two instalation on linux relatively
>  easy, but with Solaris 2.6 is "always something missing" :)))

Yeah. Stupid, innit? 10 years ago, 'unix' meant 'Solaris' for the
majority
of systems, and all software worked out-of-the-box on that. Other
platforms required tweaking, major or minor. It seems that Linux just
moved into that spot.

Bye,
Emile
--- mod_midgard.c.bak   Thu Oct 28 11:12:17 1999
+++ mod_midgard.c       Fri Nov  5 09:15:32 1999
@@ -107,9 +107,13 @@
        /* Open a connection to each of the midgard databases defined */
        for (db = &default_database; db; db = db->next) {
                if (db->refcount < 1) { /* Skip unused databases */
-                       ap_log_error(APLOG_MARK, APLOG_NOTICE|APLOG_NOERRNO, s,
-                                    "Midgard: Skipping unused database %s",
-                                    db->database ? db->database:"<default>");
+                       if (db->database)
+                       {
+                               ap_log_error(APLOG_MARK,
+                                       APLOG_NOTICE|APLOG_NOERRNO, s,
+                                       "Midgard: Skipping unused database %s",
+                                       db->database);
+                       }
                        continue;
                }
 
@@ -164,9 +168,9 @@
 
        /* Is this database already defined? */
        for (dbcfg = &default_database; dbcfg; dbcfg = dbcfg->next)
-               if (SAFECMP(database, dbcfg->database) == 0
-                   && SAFECMP(username, dbcfg->username) == 0
-                   && SAFECMP(password, dbcfg->password) == 0)
+               if (SAFECMP(database, dbcfg->database)
+                   && SAFECMP(username, dbcfg->username)
+                   && SAFECMP(password, dbcfg->password))
                        return dbcfg;
 
        /* Database config not found, create a new one */

--
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]

Reply via email to