public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Maier <[email protected]>
To: [email protected]
Subject: Path-ralated problem while setting up a local postgresql website
Date: Tue, 10 Jan 2006 23:16:49 +0200
Message-ID: <[email protected]> (raw)

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: 
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='.:/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




view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: Path-ralated problem while setting up a local postgresql website
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox