[Koha] still looking for mysql @ localhost

eric salayon esalayon at gmail.com
Fri Jun 2 14:28:03 NZST 2006


this is the error that i got:

    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
DBI->connect(:) failed: Can't
    connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2) at
    /www/koha/intranet/modules/C4/Context.pm line 411
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
    returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
DBI->connect(:) failed: Can't
    connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock' (2) at
    /www/koha/intranet/modules/C4/Context.pm line 411
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10] Can't call
method "prepare" on an
    undefined value at /www/koha/opac/cgi-bin/opac-main.pl line 16.
    [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10] Premature
end of script headers:
    opac-main.pl

eric


On 6/2/06, Chris Cormack <chris at katipo.co.nz> wrote:
> On Fri, Jun 02, 2006 at 10:20:38AM +0800, eric salayon said:
> > the file koha.conf on /etc has the this:
> >
> >   database=Koha
> >   hostname=10.0.3.1
> >   user=kohaadmin
> >   pass=passwordkoha
> >   intranetdir=/www/koha/intranet
> >   opacdir=/www/koha/opac
> >   kohalogdir=/var/log/koha
> >   kohaversion=2.2.5
> >   httpduser=apache
> >   intrahtdocs=/www/koha/intranet/htdocs/intranet-tmpl
> >   opachtdocs=/www/koha/opac/htdocs/opac-tmpl
> >
> That looks good
>
> > and the file has this access list :
> >
> >   [root at qcmail root]# ls -l /etc/koha.conf
> >   -r--r-----   1 apache   apache        275 May 29 17:43 /etc/koha.conf
> >
> And apache runs as use apache?
>
> Because
> > read_config_file(/etc/koha.conf)
> >     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
> >     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
>
> Is the error you get when the process running cant read the /etc/koha.conf
> file
>
> Chris
> --
> Chris Cormack                                                     Programmer
> 027 4500 789                                       Katipo Communications Ltd
> chris at katipo.co.nz                                          www.katipo.co.nz
>


More information about the Koha mailing list