-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Asaf,
Asaf Bartov a écrit :
So far, I've been able to compile and run all the
tools, but am having some
trouble creating ZIM files: I've dumped a locally-loaded Mediawiki
installation to HTML using these instructions <http://openzim.org/Wiki2html>,
but when I try to run the builZimFileFromDirectory.pl script, I get silly
postgresql errors about failing to connect using "kiwix" user. I should
probably create a user, or a database, or both, but I've never used
postgresql (I use mysql), and despite trying some combinations of commands
to create a 'kiwix' user, with and without a password, couldn't get the
DBI::connect call to succeed.
You have right, this seems to be the problem... I'm not sure to remember
how I did that, I'm also not a psql expert:
By me, /etc/postgresql/8.3/main/pg_hba.conf looks like
# Database administrative login by UNIX sockets
local all all trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
To create a user you need:
$createuser kiwix
Avoid password.
Maybe you can only do that with the user "postgres".
If Tommi reads you email, he will certainly be able to answer more
properly to your quest.
Regards
Emmanuel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iEYEARECAAYFAknsxEIACgkQn3IpJRpNWtPJcgCfS2QYfya/lqCP6/LpbEPzdSYo
yqEAn3Mdi5eI5j+XPRnGf1iB2x1qGuWW
=cFsu
-----END PGP SIGNATURE-----