Hi,

Thijs Kinkhorst wrote:
> On Thursday 4 September 2008 17:12, Ansgar Burchardt wrote:
> >  * some substitions for initial data, see patch to debian/rules below
> >  * in /etc/phpbb3/database.inc.php: change $dbtype from `pgsql'
> >    to `postgres'.  This should probably done in config.php.
> >  * also in database.inc.php: change $dbhost to `127.0.0.1' to make
> >    phpbb3 work with Postgres' default configuration
> 
> Thanks for your help. Could you please check whether the packages below solve 
> your issues?
> http://people.debian.org/~thijs/

The package works for me with one change to config.php: dbconfig-common leaves
the $dbhost blank by default (not filled with `localhost').

I'm not sure how to set up ident-based authentication with dbconfig-common
(which would be used when $dbhost == ""): this would require changing the
user name used to connect to Postgres.  So I could not test if this would still
work, but I think it would still work if $dbhost is set to the socket name.

If users want to configure ident-based auth, they might be confused by the fact
that phpbb3 silently changes the $dbhost variable.  I also noticed that
dbconfig-common mentions that changes to Postgres' authentication setup might
be required, so I think it would be ok to leave this change out.  But having a
solution that works out-of-the-box is very nice as well...

Regards,
Ansgar

--- config.php.ori      2008-09-05 22:19:27.000000000 +0200
+++ config.php  2008-09-05 22:19:36.000000000 +0200
@@ -31,7 +31,7 @@
        # be 127.0.0.1 to make authentication work.
        if ( $dbms == 'pgsql' ) {
                $dbms = 'postgres';
-               if ( $dbhost == 'localhost' ) {
+               if ( $dbhost == '' ) {
                        $dbhost = '127.0.0.1';
                }
        }



-- 
PGP: 1024D/595FAD19  739E 2D09 0969 BEA9 9797  B055 DDB0 2FF7 595F AD19




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to