X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 821E29DC9EC for ; Tue, 10 Jan 2006 17:16:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96624-04 for ; Tue, 10 Jan 2006 17:16:52 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.195]) by postgresql.org (Postfix) with ESMTP id 094079DC9E8 for ; Tue, 10 Jan 2006 17:16:48 -0400 (AST) Received: by nproxy.gmail.com with SMTP id n29so3711nfc for ; Tue, 10 Jan 2006 13:16:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pYO2IJnDXLlAQAG7UR2kj9WGwESk0yjbHnvznVgVcsz4QazTBT+zc63fMf8+iU6NR2r3O08VVCDFdC5ShF0RM89byDsu2atmVbgK+dsT6i2idN54kS8ucrDoh04jhsZnslDDzqKZ2BANFa/7YhHmgl7GTN2GJj1KN8ODj7ARFPU= Received: by 10.49.63.14 with SMTP id q14mr883539nfk; Tue, 10 Jan 2006 13:16:49 -0800 (PST) Received: by 10.48.208.18 with HTTP; Tue, 10 Jan 2006 13:16:49 -0800 (PST) Message-ID: Date: Tue, 10 Jan 2006 23:16:49 +0200 From: Adrian Maier To: pgsql-www@postgresql.org Subject: Path-ralated problem while setting up a local postgresql website MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/58 X-Sequence-Number: 9246 Hello, I am unable to run a local copy of the PostgreSQL website. The errors I'm getting are: [Wed Jan 11 02:24:45 2006] [error] [client 192.168.0.2] PHP Warning:=20 main(./global/settings.php): failed to open stream: No such file or directory in /home/am/pgweb/portal/system/handler.php on line 8 [Wed Jan 11 02:24:45 2006] [error] [client 192.168.0.2] PHP Fatal error: main(): Failed opening required './global/settings.php' (include_path=3D'.:/usr/pkg/lib/php/') in /home/am/pgweb/portal/system/handler.php on line 8 It seems to be unable to include the files based on a relative path: I modified in handler.php the line : require_once './global/settings.php'; to require_once '/home/am/pgweb/portal/global/settings.php'; The error disappears, but it complains about the next require_once. This is probably a configuration issue. Any ideas about what can be done to fix the problem? (it is very ugly to modify all the php files to use full paths ... ) Cheers, Adrian Maier