On Wed, 10 Jan 2001, Pasi Kärkkäinen wrote:
> On Wed, 10 Jan 2001, Alan Knowles wrote:
>
> > Pasi Kärkkäinen <[EMAIL PROTECTED]> said:
> >
> > > I installed debian-packages for midgard, and everything should be set up
> > > OK.. I read the installation guide from the midgard-project.org too.
> > >
> > > Now, when I try to access the admin-site (or example-site), I get this
> > > error in apache's error.log:
> > >
> > > [Tue Jan 9 15:31:14 2001] [error] [client xxx.yyy.zzz.xyz] Midgard:
> > > database not defined for servers.hostname.somewhere.fi
> > >
> > 1. Check the database actually exists :) and check that you can log in as
> > midgard/midgard/midgard
> > mysql midgard -umidgard -pmidgard
> > show tables;
> >
>
> Yes, that works. The database is there.
>
>
> > then have a look at
> > http://www.midgard-project.org/req/midgard-1.4/x242.htm
> >
> > and see how your apache config differs.
> >
>
> Hmm, I can't find the difference. I'll look it more in depth..
>
This is what I have in apache's httpd.conf:
NameVirtualHost ip:8101
<VirtualHost ip:8101>
MidgardEngine on
MidgardBlobDir /var/www/blobs
MidgardRootfile libexec/midgard-root.php3
MidgardTemplate phpelements.xml
MidgardParser latin1
MidgardDatabase midgard midgard midgard
ServerName server.somewhere.fi
Port 8101
php3_magic_quotes_gpc off
php3_magic_quotes_runtime off
</VirtualHost>
I have loaded the midgard and php-midgard modules. Apache is running fine
with them. Mysql works ok, the database is there and I can log in with
midgard-user using password midgard and I can see the tables.
This is what I have in the host-table:
| 1 | server.somewhere.fi | 4 | 1 | auth | 0 | 8101 |
1 | /asgard | 0 |
| 2 | server.somewhere.fi | 4 | 2 | auth | 0 | 8099 |
1 | /asgard/framed | 0 |
| 3 | LOCALHOST | 4 | 3 | auth | 0 | 0 |
1 | /asgard/framed/top | 0 |
| 4 | LOCALHOST | 4 | 4 | auth | 0 | 0 |
1 | /asgard/framed/main | 0 |
And here are the contents of the apache's srm.conf:
DirectoryIndex index.php index.php3 index.phtml index.html
AddType application/x-httpd-php3 .phtml
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php3 .php3
AddType application/x-hhtpd-php-midgard .mgd
So.. any ideas what's wrong?
- Pasi Kärkkäinen
^
. .
Linux
/ - \
Choice.of.the
.Next.Generation.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]