Ricardo Marques wrote:
> My problem is that when I try to access the example or admin site, I only
> get a file listing with the images (earth.gif, kulma1.gif, kulma3.gif)
>
> If I check the error_log at /var/log/httpd (with LogLevel in httpd.conf set
> to debug) I get the following message:
> ___________________________
> [Fri Apr 14 16:01:46 2000] [crit] Midgard: Access denied for user:
> 'midgard@localhost' (Using password: YES)
> ___________________________
>
> However, if I try to access the midgard password by typing:
> > mysql -u midgard -h localhost -p
> and write the password defined in httpd.conf, I get the usual and correct
> mysql> prompt
This is not entirely the same: this will use a unix domain socket
instead of the socket file. Change to the user apache runs as, then
start the command line tool without the '-h localhost'.
> My httpd.conf is like this (I have masked the domains and the IP address,
> but you get the idea):
> ServerName localhost
> And finally the midgard.host table:
> +----+--------------------+------+-------+------+-------+------+--------+---
> ---+
> | id | name | root | style | info | owner | port | online |
> prefi|
> +----+--------------------+------+-------+------+-------+------+--------+---
> ---+
> | 1 | mydomain.pt | 1 | 1 | auth | 0 | 8101 | 1 |
> |
> | 2 | mydomain.pt | 34 | 2 | | 1 | 8099 | 1 |
> |
> +----+--------------------+------+-------+------+-------+------+--------+---
> ---+
This won't work. 'localhost' and 'mydomain.pt' or not the same, even if
they
end up at the same machine. Names as defined in DNS, NIS or hosts files
are
not machine identifications but network interface identifications.
'localhost'
is mapped to interface 'lo' on my machine while the DNS name will
usually
be mapped to an ethernet interface.
You'll have to change all to 'localhost' or 'mydomain.pt'
Emile
--
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]