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 and the file has this access list : [root@qcmail root]# ls -l /etc/koha.conf -r--r----- 1 apache apache 275 May 29 17:43 /etc/koha.conf any other ideas? tnx 4 your suggestions ang time eric On 6/2/06, Chris Cormack <chris@katipo.co.nz> wrote:
On Fri, Jun 02, 2006 at 09:35:52AM +0800, eric salayon said:
what has koha.conf got to do with this error?
[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
Because /etc/koha.conf is what you should have edited.
The 2nd line of koha.conf contains the hostname hostname=localhost
And thats what C4::Context uses to create a database handler.
If it cant read the /etc/koha.conf file or you havent changed the hostname there it will be defaulting to trying to use localhost
Chris
-- Chris Cormack Programmer 027 4500 789 Katipo Communications Ltd chris@katipo.co.nz www.katipo.co.nz