Error on the setup.php

Error on the setup.php

de către Soren Hansen-
Număr de răspunsuri: 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 ?

Media aprecierilor: -
Ca răspuns la Soren Hansen

Re: Error on the setup.php

de către Martin Dougiamas-
Fotografia lui Core developers Fotografia lui Documentation writers Fotografia lui Moodle HQ Fotografia lui Particularly helpful Moodlers Fotografia lui Plugin developers Fotografia lui 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?
Ca răspuns la Martin Dougiamas

Re: Error on the setup.php

de către 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. 
Ca răspuns la Martin Dougiamas

Re: Error on the setup.php

de către 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.