Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 199CA9F9A74 for ; Sun, 7 Oct 2007 10:15:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 58284-02 for ; Sun, 7 Oct 2007 10:15:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from postmaster.pointhere.net (postmaster.pointhere.net [208.41.234.245]) by postgresql.org (Postfix) with ESMTP id B93EA9F99F4 for ; Sun, 7 Oct 2007 10:15:09 -0300 (ADT) Received: from warpcore (warpcore.pointhere.net [192.168.2.22]) by postmaster.pointhere.net (Postfix) with ESMTP id 4B189B40C20 for ; Sun, 7 Oct 2007 09:15:06 -0400 (EDT) Reply-To: From: "Jeffrey Brower" To: References: Subject: Apache2 PostgreSQL http authentication Date: Sun, 7 Oct 2007 09:14:43 -0400 Organization: Green Visor, Inc. Message-ID: <501201c808e4$06e0a350$1602a8c0@warpcore> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Thread-Index: AcgFppv/2lm747BRQqOFGZyDq2dA7ACfbktgABJ33HAAHWiO8A== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/70 X-Sequence-Number: 27092 Greetings All, I have to authenticate against an existing (constantly modified) PostgreSQL database under Solaris 10 (X86). While my PHP scripts are an obvious no-brainer, the rest of the contents need to be protected as well (images, etc) so the http authentication is required. I am using the blastwave Apache2 and PostgreSQL packages. I am concerned about slowing down apache too much with these postgres queries on every get and post - and I would love to have some tips from you guys on how to avoid that (beyond the normal tuning for postgres). For now, I can not even get it working at all so I can test it. I have posted on blastwave and solaris groups without reply but I have been watching this list for years and you guys always come through if you can. When I enable mod_dbd and set up the directory access, apache complains that it can not find the DBDriver pgsql and I read from the manual page that it is looking for apr_dbd_pgsql.so to be available to apache. Other research indicates libpq.so is what it is looking for. Yet other research says that libaprutil-1.so should contain one of these two when you look at it in a ldd command. The closest thing that my system seems to have is the libpq.so in the /opt/csw/postgres/lib directory and even when I provide a symbolic link from the /opt/csw/apache2/lib for this library I still get a not found condition from the DBDriver setting. It seems Google only helps if you are not on Solaris - and even then not so much. Is ANYONE using blastwave packages and getting the http authentication to work against a PostgreSQL database on Solaris 10? If so, how? I am out of straws to grasp. As I say, from a performance point of view, I would really like to know if there is anything I can do to make sure that postgres is performing as quickly as possible under apache2 so that my http authentication is not impacted too significantly. Thanks in advance for any help that anyone can be! Jeff Brower