Error on the setup.php

Error on the setup.php

Soren Hansen - келді
Number of replies: 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

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";