Hi,
On Mon, 13 Aug 2001, Benoit Lathiere wrote:
> In httpd/error_log :
>
> midgard-lib: mgd_connect to midgard@midgard failed: Can't connect to
> local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
> [Aug 13 19:51:27 2001] [warn] [client 127.0.0.1] Midgard: failed to
> open midgard for midgard...
My best bet is that your mysql installation has its socket file at a
different location. you can specify the location in /etc/my.cnf (depending
on your installation, it could also be /usr/local/etc/my.cnf or a
different location):
[client]
# this where midgard will look
socket = /var/lib/somewhere/mysql.sock
[mysqld]
# this is where mysqld will open its socket
socket = /var/lib/somewhere/mysql.sock
if you allready have a my.cnf you will find a lot of other directives,
just put these in the approriate place. If you don't have a my.cnf, you
can search for examples, these are usually called my-huge.cnf,
my-large.cnf, my-medium.cnf, my-small.cnf.
> > And when I restart httpd, I can read (error_log) "PHP Fatal
error: > Cannot find save handler midgard in Unknowm on line 0".
I never saw this one, let's see first if it is related with your first
problem.
> My non-midgard PHP pages work, but not my midgard hosts.
> I checked my Mysql & Midgard databases, but I don't see any error.
>
> What is the problem ? mod-midgard ? midgard-PHP ? or simply access rules
> ?
Check the socket location first. Access rules can be checked by becoming
the apache user (su - nobody or su - apache, or ... depending on your
installation) and then trying to login to the midgard database using the
midgard username and password:
$ mysql -u (yourmidgarduser) -p (yourmidgarddatabase)
password:
you will be prompted for the password, and should be able to login.
wkr,
--
Envida http://www.envida.net/
Armand A. Verstappen Graadt van Roggenweg 328
[EMAIL PROTECTED] 3531 AH Utrecht
tel: +31 (0)30 298 2255 Postbus 19127
fax: +31 (0)30 298 2111 3501 DC Utrecht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]