Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Massimiliano Andreoletti -
Number of replies: 5

I've got this problem. Similar with others.

Fatal error: Failed opening required 'g:\Programmi\EasyPHP\www\moodle/lib/setup.php' (include_path='.;c:\php\includes') in D:\Inetpub\webs\clubambrosianocom\moodle\config.php on line 112

$CFG->dbtype    = "mysql";
$CFG->dbhost    = "62.149.150.14";
$CFG->dbname    = "Sql18085_1"; 
$CFG->dbuser    = "Sql18085"; 
$CFG->dbpass    = "*******";

$CFG->prefix    = "mdl_"; 

$CFG->wwwroot   = "http://www.clubambrosiano.com/moodle";

$CFG->dirroot   = "g:\Programmi\EasyPHP\www\moodle";

$CFG->dataroot  = "g:\Programmi\EasyPHP\www\moodle\data";

require_once("$CFG->dirroot/lib/setup.php");

Average of ratings: -
In reply to Massimiliano Andreoletti

Re: Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Istvan Bozsa -

Backslash with Windows, guy smile

'g:\Programmi\EasyPHP\www\moodle/lib/setup.php'  is not a valid path for you, you see?

smile

 

In reply to Istvan Bozsa

Re: Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Actually, with PHP and Apache it is OK to mix slashes. smile
In reply to Martin Dougiamas

Re: Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Istvan Bozsa -
Really, I cant believe it smile

Anyway, something is wrong with the path.
If the dirroot is in the g: drive, how a problem can occure in a config.php in the D: drive, as the error message shows?
In reply to Istvan Bozsa

Re: Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Ah yes, well spotted!
In reply to Martin Dougiamas

Re: Fatal error: \moodle/lib/setup.php' (include_path='.;c:\php\includes')

by Fernando Finatti -

Hy everybody;

I have a similar problem:

somebody help me?