Error on the setup.php

Error on the setup.php

av Soren Hansen -
Antall svar: 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 ?

Gjennomsnittlig vurdering: -
Som svar til Soren Hansen

Re: Error on the setup.php

av Martin Dougiamas -
Bilde av Core developers Bilde av Documentation writers Bilde av Moodle HQ Bilde av Particularly helpful Moodlers Bilde av Plugin developers Bilde av 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?
Som svar til Martin Dougiamas

Re: Error on the setup.php

av 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. 
Som svar til Martin Dougiamas

Re: Error on the setup.php

av 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.