Moodle not loading after install

Moodle not loading after install

by Mark Bayliss -
Number of replies: 4

Hi,

We just installed Moodle 2.1 that is required to be conneted to MSSQL but it isnt loading.

We get the following page on load up in FF:

et($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mssql';
$CFG->dblibrary = 'native';
$CFG->dbhost    = 'server\\Moodle';
$CFG->dbname    = 'Moodle2';
$CFG->dbuser    = 'sa';
$CFG->dbpass    = 'password';
$CFG->prefix    = 'mdl_';
$CFG->dboptions = array (
  'dbpersist' => 0,
  'dbsocket' => 0,
);

$CFG->wwwroot   = 'http://localhost/moodle';
$CFG->dataroot  = '/var/www/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

$CFG->passwordsaltmain = ******

 

Any help would be great.

Cheers,

Mark

Average of ratings: -
In reply to Mark Bayliss

Re: Moodle not loading after install

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

This is what I have at the start of my config.php for my localhost install of Moodle 2.1...

Are you sure you have set yours up correctly?

<?php  // Moodle configuration file

unset($CFG);
global $CFG;
$CFG = new stdClass();

$CFG->dbtype    = 'mysqli';

 

Mary

In reply to Mary Evans

Re: Moodle not loading after install

by Mark Bayliss -

Hi,

Yes, I am certain as we use MSSQL with Moodle 1.8 that is in production.

The install.php ran fine but once we copied the config.php file across we get what I posted above.

Cheers,

Mark

 

In reply to Mark Bayliss

Re: Moodle not loading after install

by Mary Evans -
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Is this a new install or are you upgrading from Moodle 1.8 ?

The MSSQL I can understand but the rest looks like you have some of the code missing or is that how you copied it perhaps?

In reply to Mary Evans

Re: Moodle not loading after install

by Mark Bayliss -

Hi,

I Just rebuilt the server and moodle is working. Thanks for help.

Mark