Error on the setup.php

Error on the setup.php

د Soren Hansen لخوا -
د ځوابونو شمیر: 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 ?

د درجې بندۍ اوسط:  -
In reply to Soren Hansen

Re: Error on the setup.php

د Martin Dougiamas لخوا -
د Core developers انځور د Documentation writers انځور د Moodle HQ انځور د Particularly helpful Moodlers انځور د Plugin developers انځور د 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?
In reply to Martin Dougiamas

Re: Error on the setup.php

د 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. 
In reply to Martin Dougiamas

Re: Error on the setup.php

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

In reply to Soren Hansen

Re: Error on the setup.php

د Martin Dougiamas لخوا -
د Core developers انځور د Documentation writers انځور د Moodle HQ انځور د Particularly helpful Moodlers انځور د Plugin developers انځور د Testers انځور
You need a full pathname ... try this:

$CFG->dirroot = "/home/sites/site329/web/moodle";