Parse and fatal error on xp

Parse and fatal error on xp

by Pontus Sörlin -
Number of replies: 2
Hi!
And thanks for a wonderful software solution.

However, I just tried to install moodle on windows xp, IIS 5, MySQL.

When I try to reach the admin/index.php in my browser, I get this:

Parse error: parse error, unexpected ':' in C:Inetpubwwwrootmoodleconfig.php on line 58

Fatal error: Call to undefined function: check_php_version() in C:Inetpubwwwrootmoodleadminindex.php on line 8

My settings are:
$CFG->dbtype = "mysql";
$CFG->dbhost = "XXX.XX.XX.XX"; /my IP
$CFG->dbname = "moodle";
$CFG->dbuser = "root";
$CFG->dbpass = "XXXXXXXXX"; /my root-login

$CFG->wwwroot = "http://XXX.XX.XX.XX/moodle";

$CFG->dirroot = C:Inetpubwwwrootmoodle";

$CFG->dataroot = C:moodle";

$CFG->buggy_referer = false;

I suspect it has something to do with the index.php page, which I have not been able to understand how to change to default on xp. Maybe someone here knows it. Or is it my settings that are wrong somehow?

I have other php-programs like phpcollab which works fine through the browser, so I'm a little confused. Probably it's an easy solution to this (i hope?).

Many thanks in advance. (and happy new year!)
/Pontus Sörlin
Average of ratings: -
In reply to Pontus Sörlin

Re: Parse and fatal error on xp

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
The line with $CFG->dirroot is missing a double quote " before the C. smile
In reply to Martin Dougiamas

Re: Parse and fatal error on xp

by Pontus Sörlin -
I guess I should have seen that, huh? Well, it's the day after new years... I'll blame it on that. smile Now it's working great. Thanks for your fast reply, too.
/Pontus