Installation problem: setup.php not found

Installation problem: setup.php not found

by Roberto Cuccu -
Number of replies: 1

Hi,

I've uploaded Moodle on my Unix server, and there is the following message that warns me on a configuration problem.
___________________________
Warning: main(/web/htdocs/www/learnholistically.it/home/moodle/lib/setup.php) [function.main]: failed to create stream: No such file or directory in /web/htdocs/www.learnholistically.it/home/moodle/config.php on line 129

Fatal error: main() [function.main]: Failed opening required '/web/htdocs/www/learnholistically.it/home/moodle/lib/setup.php' (include_path='.:/usr/local/lib/php') in /web/htdocs/www.learnholistically.it/home/moodle/config.php on line 129
_________________________________


If I try to access the setup.php file from the same address shown above, I get


Notice: Undefined variable: CFG in /web/htdocs/www.learnholistically.it/home/moodle/lib/setup.php on line 18

Warning: main(/lib/adodb/adodb.inc.php) [function.main]: failed to create stream: No such file or directory in /web/htdocs/www.learnholistically.it/home/moodle/lib/setup.php on line 20

Fatal error: main() [function.main]: Failed opening required '/lib/adodb/adodb.inc.php' (include_path='.:/usr/local/lib/php') in /web/htdocs/www.learnholistically.it/home/moodle/lib/setup.php on line 20

------------------------------------------------------

Here are the lines I changed in  my config.php

$CFG->wwwroot   = "http://lnx.learnholistically.it/moodle";

$CFG->dirroot   = "/web/htdocs/www/learnholistically.it/home/moodle";

$CFG->dataroot  = "/web/htdocs/www/learnholistically.it/home/moodledata";

Thanks for you help

Roberto Cuccu

Average of ratings: -
In reply to Roberto Cuccu

Re: Installation problem: setup.php not found

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
In your config.php you have accidentally typed a / instead of a .

/web/htdocs/www/learnholistically.it/home/moodle should be
/web/htdocs/www.learnholistically.it/home/moodle

Same error in dirroot and dataroot.

P.S. Moodle 1.0.9 will be released tomorrow - if you can wait I highly recommend using that instead of 1.0.8.1