I'm trying hard to install Moodle on my Linux hosted website - www.t20suzuki.com
It seemed to go well, but at the end I got the 'Blank page' problem when trying to access moodle. I read the FAQ files and read about the
$CFG->dirroot
problem in config.php .
Mine did read:
<?php /// Moodle Configuration File
unset($CFG);
$CFG->dbtype = 'mysql';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'bscphysics';
$CFG->dbuser = '*********';
$CFG->dbpass = '*********';
$CFG->dbpersist = false;
$CFG->prefix = 'mdl_';
$CFG->wwwroot = 'http://www.t20suzuki.com/public_html/moodle';
$CFG->dirroot = '/home/tsuzuki/public_html/public_html/moodle';
$CFG->dataroot = '/home/tsuzuki/public_html/mdata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
require_once("$CFG->dirroot/lib/setup.php");
So I changed the dirroot variable to read:
$CFG->dirroot = 'http://www.t20suzuki.com/public_html/moodle';
And now the blank screen problem goes away but instead I get the following error messages:
Notice: Fatal: $CFG->wwwroot is not configured! Exiting. in /home/tsuzuki/public_html/public_html/moodle/lib/setup.php on line 88
Warning: main() [function.main]: open_basedir restriction in effect. File(/adminlib.php) is not within the allowed path(s): (/home/tsuzuki/public_html/) in /home/tsuzuki/public_html/public_html/moodle/admin/index.php on line 25
Warning: main(/adminlib.php) [function.main]: failed to open stream: Operation not permitted in /home/tsuzuki/public_html/public_html/moodle/admin/index.php on line 25
Fatal error: main() [function.require]: Failed opening required '/adminlib.php' (include_path='.:/usr/share/pear') in /home/tsuzuki/public_html/public_html/moodle/admin/index.php on line 25
* Server Operating System name: Linux
* Browser name: Firefox 2.0.12
* Moodle version: the latest version
* Moodle install type? New
* Phpinfo attached? (N): Not attached, but it all seems to be working OK
Any help appreciated.
Thanks
(Edited by Helen Foster to remove database username and password - original submission Saturday, 19 April 2008, 11:02 PM)