[Koha] still looking for mysql @ localhost
Henri-Damien LAURENT
laurenthdl at alinto.com
Fri Jun 2 01:02:52 NZST 2006
eric salayon a écrit :
> guys,
>
> gud day!
>
> i just successfully installed KOHA but mysql is not residing on the
> same pc. i'd tweaked some statements in the Install.pm (include -h
> $hostname to every mysql and mysqladmin commands) to make it work. but
> now, when im trying to search for a book, the system still looks @
> localhost for the database. below is the logs:
>
> [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
>
> how should i go about this? thanks in advance
>
> eric
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
>
where is your koha.conf file ?
If it is not in /etc, you need to add a line :
SetEnv KOHA_CONF=/path/to/koha.conf
to your apache koha virtual host.
Does your apache user have read access to this file ? (chown httpd:httpd
/etc/koha.conf if you have /etc/koha.conf file)
HTH.
--
Henri-Damien LAURENT
More information about the Koha
mailing list