Error on the setup.php

Error on the setup.php

von Soren Hansen -
Anzahl Antworten: 5

I've been browsing the questions in this forum and I can see that I'm not the only one that have some problems with the setup.php file.

What I can't see, is what I am doing wrong?

The error message is:

Fatal error: Failed opening required '/web/moodle/lib/setup.php' (include_path='') in /home/sites/site329/web/moodle/config.php on line 84

The config file :

$CFG->wwwroot   = "http://www.thenavigator.dk/moodle";

$CFG->dirroot   = "/web/moodle";

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

 

Any help on this one ?

Als Antwort auf Soren Hansen

Re: Error on the setup.php

von 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
Something is obviously wrong with the documentation in config.php, as this has become a FAQ. How can I make it clearer?

You've specified that your files are stored at: /web/moodle/

Do you in fact have a directory called /web/moodle? Is your Moodle installation located in that directory on your server?
Als Antwort auf Martin Dougiamas

Re: Error on the setup.php

von Jacob Romeyn -
In the Redhead Linux from 7.0 upwards the HTML directory is /var/www/html  by default.  Redhead Linux is the most popular in North America.  So /var/www/html/moodle/  would probably the most common here. 
Als Antwort auf Martin Dougiamas

Re: Error on the setup.php

von Soren Hansen -

All my file folders are in the /web directory and that is also where I have put moodle.

If I go to properties in the moodle folder, the location is given as /web/moodle, so it should be okay.

But I guess that it would be in that direction, I should be working, according to your answer.

Anyway the program looks good and I'm looking forward to see it work.