Failed Opening Required Error

Failed Opening Required Error

wót Shiao Yeh -
Anzahl Antworten: 4
Hi,

I have some problems installing moodle using OpenBSD 3.2, PHP 4.2.3, and Postgresql 7.3 using a different port (5555)

the error log shows:

[Tue Jan 28 00:58:59 2003] [error] PHP Fatal error: Failed opening required '/home/shiao/public_html/moodle/lib/setup.php' (include_path='.:/usr/local/lib/php') in /usr/home/public_html/moodle/config.php on line 110

Note /home/shiao = /usr/home/shiao

I have tried adding in the include_path the path for /home/shiao/moodle/lib, but without success. I also tried to add the port as localhost:5555

Any ideas?
Als Antwort auf Shiao Yeh

Re: Failed Opening Required Error

wót Martin Dougiamas -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Moodle HQ Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von Testers
> /home/shiao = /usr/home/shiao

That may be, but from the error message your installation is not in either... it says: /usr/home/public_html/moodle

Try:

$CFG->dirroot = "/usr/home/public_html/moodle";
Als Antwort auf Martin Dougiamas

Re: Failed Opening Required Error

wót Shiao Yeh -
Ok, I have change some of the directory structure, and I still have the error. Could this be related to the database port not using the standard 5432?

[Tue Jan 28 12:29:55 2003] [error] PHP Fatal error: Failed opening required '/usr/home/shiao/ssl_public/moodle/lib/setup.php' (include_path='.:/usr/local/lib/php') in /usr/home/shiao/ssl_html/moodle/config.php on line 110

This is the config.php file:

CFG->dbtype = "pgsql"; // mysql or postgres7 (for now)
$CFG->dbhost = "localhost"; // eg localhost or db.isp.com
$CFG->dbname = "moodle"; // database name, eg moodle
$CFG->dbuser = "moodleuser"; // your database username
$CFG->dbpass = "******"; // your database password

$CFG->prefix = "mdl_"; // Prefix to use for all table names

$CFG->wwwroot = "https://bcn.dyndns.org/moodle";

$CFG->dirroot = "/usr/home/shiao/ssl_public/moodle";

$CFG->dataroot = "/home/shiao/data/moodle";

$CFG->buggy_referer = false;

require_once("$CFG->dirroot/lib/setup.php"); // Do not change this


Thank you

Shiao
Als Antwort auf Shiao Yeh

Re: Failed Opening Required Error

wót Martin Dougiamas -
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Moodle HQ Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von Testers
Again, the right directory is in the error message:

$CFG->dirroot = "/usr/home/shiao/ssl_html/moodle";

Then try it.

If you start getting errors related to the database not being found then try localhost:5555 for the dbhost.