Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php'

Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php'

por David Butt -
Número de respostas: 7

Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php' (include_path='.:/data/apache/php/mmp_lib') in config.php on line 84


$CFG->wwwroot   = "http://members.lycos.co.uk/phpworld/";

$CFG->dirroot   = "http://members.lycos.co.uk/phpworld/moodle";    

$CFG->dataroot  = "http://members.lycos.co.uk/phpworld/data";

ccan anyone help sort this out

thanks in advance

Dai

Media de puntuacións: -
En resposta a David Butt

Re: Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php'

por Martin Dougiamas -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Moodle HQ Imaxe de Particularly helpful Moodlers Imaxe de Plugin developers Imaxe de Testers
dirroot and dataroot should be directory paths, not web addresses.

You probably want something like:

$CFG->dirroot = "/data/members/free/tripod/uk/p/h/p/phpworld/htdocs/moodle";

$CFG->dataroot = "/data/members/free/tripod/uk/p/h/p/phpworld/htdocs/data";
En resposta a Martin Dougiamas

Re: Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php'

por David Butt -

I tired your suggestion, but no joy.

This is all the info that I can find on tripod.  I hope it throws more light on the subject for you.

ID and path for Tripod account
empty.gif

To access your Tripod account using your PHP scripts, you can use the BASE_DIR constant. This contains the path associated with your Lycos Tripod account.
empty.gif
In the same way, your ID is saved in the LOGIN constant and the name of your site in SITENAME. You can call it up at any time.
En resposta a David Butt

Re: Fatal error: Failed opening required 'http://members.lycos.co.uk/phpworld/moodle/lib/setup.php'

por David Butt -

changed entries in config.php to below, but still getting:

Fatal error: Failed opening required 'moodle/lib/setup.php' (include_path='.:/data/apache/php/mmp_lib') in config.php on line 84

///////////////////////////////////////////////////////////////////////////
// Now you need to tell Moodle where it is located. Specify the full
// web address where moodle has been installed (without trailing slash)

$CFG->wwwroot   = "http://members.lycos.co.uk/phpworld/";


///////////////////////////////////////////////////////////////////////////
// Next, specify the full OS directory path to this same location
// For Windows this might be something like "C:\apache\htdocs\moodle"

#$CFG->dirroot   = basename  ("docs/moodle");
$CFG->dirroot   = basename  ("htdocs/moodle");

 

///////////////////////////////////////////////////////////////////////////
// Now you need a place where Moodle can save uploaded files.  This
// directory should be writeable by the web server user (usually 'nobody'
// or 'apache'), but it should not be accessible directly via the web.

#$CFG->dataroot  = basename  ("docs/moodle/data");
$CFG->dataroot  = basename  ("docs/moodle/data");

En resposta a David Butt

config.php for Lycos.co.uk

por Martin Dougiamas -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Moodle HQ Imaxe de Particularly helpful Moodlers Imaxe de Plugin developers Imaxe de Testers
OK, then try this:

$CFG->dirroot = BASEDIR."/moodle";
$CFG->dataroot = BASEDIR."/data";

and if that doesn't work, then:

$CFG->dirroot = BASEDIR."/htdocs/moodle";
$CFG->dataroot = BASEDIR."/htdocs/data";
En resposta a Martin Dougiamas

Re: config.php for Lycos.co.uk

por David Butt -

Fatal error: Failed opening required 'BASEDIR/htdocs/moodle/lib/setup.php' (include_path='.:/data/apache/php/mmp_lib') in config.php on line 88

no joy after using this code:

OK, then try this:

$CFG->dirroot = BASEDIR."/moodle";
$CFG->dataroot = BASEDIR."/data";

and if that doesn't work, then:

$CFG->dirroot = BASEDIR."/htdocs/moodle";
$CFG->dataroot = BASEDIR."/htdocs/data";

 

En resposta a David Butt

Re: config.php for Lycos.co.uk

por David Butt -

$CFG->dirroot = BASE_DIR."/htdocs/moodle";
$CFG->dataroot = BASE_DIR."/htdocs/data";    

The above now gives me this error:

Fatal error: Failed opening required '/data/members/free/tripod/uk/p/h/p/phpworld/htdocs//htdocs/moodle/lib/setup.php' (include_path='.:/data/apache/php/mmp_lib') in config.php on line 88

$CFG->dirroot = BASE_DIR."/moodle"; 
$CFG->dataroot = BASE_DIR."/data";

This also gives the above error looks like moodle wont setup on lycos pity.

will moodle set up with post nuke as I have a postnuke site with plenty of space left on the server. I don't mean incorporated into postnuke but run along side it  url being www.crazybiker.net/moodle

En resposta a David Butt

Re: config.php for Lycos.co.uk

por Martin Dougiamas -
Imaxe de Core developers Imaxe de Documentation writers Imaxe de Moodle HQ Imaxe de Particularly helpful Moodlers Imaxe de Plugin developers Imaxe de Testers
OK, it definitely looks like you need this for Lycos:

$CFG->dirroot = BASEDIR."moodle";
$CFG->dataroot = BASEDIR."data";

Yes, you can set it up next to postnuke, but I would wait a few days for 1.0.8 if I were you.

[a few minutes later]

Ah, I just noticed the other new discussion you started where you say it works now. Great.