Failed Opening Required Error

Failed Opening Required Error

- Shiao Yeh の投稿
返信数: 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?
Shiao Yeh への返信

Re: Failed Opening Required Error

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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";
Martin Dougiamas への返信

Re: Failed Opening Required Error

- 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
Shiao Yeh への返信

Re: Failed Opening Required Error

- Martin Dougiamas の投稿
画像 Core developers 画像 Documentation writers 画像 Moodle HQ 画像 Particularly helpful Moodlers 画像 Plugin developers 画像 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.