Install not creating fields in database

Install not creating fields in database

by Dave Davis -
Number of replies: 0

This is a followup to an earlier post, I can pinpoint where the problem is coming in now.

Here's the problem:

Clean install.

During the installation process moodle successfully creates the tables in the database, I get the admin setup screen, I click ok and there's a brief screen that moodle cannot set the 'lang' value and the 'framename' value. The next screen tells me the version # but says it can't set the release value.

ERROR: Could not update release version in database!!

If I check the database in the config table I find there are no fields for 'lang', 'framename', or 'release'. If I create these fields, use the back button on the browser to get back to the admin screen and click ok, the install proceeds without the error messages until I get the screen where it tells me it can't set the activity_modules block. Obviously at this point it thinks it's dealing with an old instalation and halts.

Here's the setup on the server:

Windows 2000 ; Apache 2.0; Php 5; Mysql 4.0.20a; Moodle 1.4.3

I set the parameters in apache and php according to the install guide.

i.e.:

AcceptPathInfo on

magic_quotes_gpc = 1    (preferred but not necessary)
magic_quotes_runtime = 0    (necessary)
file_uploads = 1
session.auto_start = 0
session.bug_compat_warn = 0

etc.

Permissions seem to be set ok on the Mysql directories because it creates the tables in the database and populates them, the moodledata directories are also created successfully so I don't think that's the problem

here's the config file that gets created:

<?php  /// Moodle Configuration File

unset($CFG);

$CFG->dbtype    = 'mysql';
$CFG->dbhost    = 'localhost';
$CFG->dbname    = 'moodle';
$CFG->dbuser    = 'moodleuser';
$CFG->dbpass    = 'xxxxxxx';
$CFG->dbpersist =  false;
$CFG->prefix    = 'mdl_';

$CFG->wwwroot   = 'http://localhost/train/moodle';
$CFG->dirroot   = 'C:\Program Files\Apache Group\Apache2\htdocs\moodle';
$CFG->dataroot  = 'C:\Program Files\Apache Group\Apache2 htdocs/moodledata';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
// RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>

So the big question is: why aren't those fields in the database being created?

I've installed moodle before on another server under IIS and didn't have these kind of problems (though I did have the php/pathing problem that rendered the scorm module useless, so I thought install under apache would be the way to go. )

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

Things I've tried:

Double checked that permissions were open.

Delete the moodle database, delete the moodle installation, re-download the latest files and rerun the installation. Same result.

Delete everything and download an earlier stable version. Same result.

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

If any of you extremely bright people out there have any suggestions it would be much appeciated. I'll even manually insert tables/records/fields/values into the database if I can get some idea of what/where to do so.

Thanks,

Dave

Average of ratings: -