Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Installing Moodle on Windows Vista.

Installing Moodle on Windows Vista: Difference between revisions

From MoodleDocs
Line 12: Line 12:
2. Create config.php in your main Moodle directory
2. Create config.php in your main Moodle directory


<?php /// Moodle Configuration File
  <?php /// Moodle Configuration File
 
 
unset($CFG);
  unset($CFG);
 
 
$CFG->dbtype = 'mysql'; //Database Type
  $CFG->dbtype = 'mysql'; //Database Type
$CFG->dbhost = 'localhost'; //Database Host
  $CFG->dbhost = 'localhost'; //Database Host
$CFG->dbname = 'moodle'; //Database Name
  $CFG->dbname = 'moodle'; //Database Name
$CFG->dbuser = 'root'; //Database User
  $CFG->dbuser = 'root'; //Database User
$CFG->dbpass = ''; //Database Password
  $CFG->dbpass = ''; //Database Password
$CFG->dbpersist = false;
  $CFG->dbpersist = false;
$CFG->prefix = 'mdl_'; //Table Prefix
  $CFG->prefix = 'mdl_'; //Table Prefix
 
 
$CFG->wwwroot = 'http://localhost/moodle'; //Location where moodle is accessed
  $CFG->wwwroot = 'http://localhost/moodle'; //Location where moodle is accessed
$CFG->dirroot = 'C:\wwwroot\moodle'; //Directory of Moodle
  $CFG->dirroot = 'C:\wwwroot\moodle'; //Directory of Moodle
$CFG->dataroot = 'C:\moodledata'; //Directory of moodledata folder (Created in step 1, Should be unaccessible through HTTP)
  $CFG->dataroot = 'C:\moodledata'; //Directory of moodledata folder (Created in step 1, Should be unaccessible through HTTP)
$CFG->admin = 'admin';
  $CFG->admin = 'admin';
 
 
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
  $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
 
 
$CFG->unicodedb = true; // If Database is utf8
  $CFG->unicodedb = true; // If Database is utf8
 
 
require_once("$CFG->dirroot/lib/setup.php");
  require_once("$CFG->dirroot/lib/setup.php");
// MAKE SURE WHEN YOU EDIT THIS FILE THAT THERE ARE NO SPACES, BLANK LINES,
  // 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.
  // RETURNS, OR ANYTHING ELSE AFTER THE TWO CHARACTERS ON THE NEXT LINE.
?>
  ?>


3. Go to your browser and type your moodle URL. you should get a screen that allows you to continue installation.
3. Go to your browser and type your moodle URL. you should get a screen that allows you to continue installation.


From http://moodle.org/mod/forum/post.php?reply=349700
From http://moodle.org/mod/forum/post.php?reply=349700

Revision as of 12:53, 9 January 2008

Problem installing Moodle with Windows Vista

Many people tried to install Moodle on Windows Vista, but got blank screen after database config. This is due to some Vista permission issue. This method is from Moodle forum and might help Moodle installation.

1. Create a "moodledata" directory on somewhere in your PC ( May be c:\wwwroot\moodledata ) Not sure if this step is needed, but it worked.

  1. Right-click on the folder moodledata, select Properties, then select the Security tab.
  2. Click on "Everyone" ("Users" in some machine) in the top window (Group or User Names) then click Edit.
  3. Check to allow read and write permissions for Everyone (List folder contents and Read & Execute should already be checked)

2. Create config.php in your main Moodle directory

  <?php /// Moodle Configuration File
  
  unset($CFG);
  
  $CFG->dbtype = 'mysql'; //Database Type
  $CFG->dbhost = 'localhost'; //Database Host
  $CFG->dbname = 'moodle'; //Database Name
  $CFG->dbuser = 'root'; //Database User
  $CFG->dbpass = ; //Database Password
  $CFG->dbpersist = false;
  $CFG->prefix = 'mdl_'; //Table Prefix
  
  $CFG->wwwroot = 'http://localhost/moodle'; //Location where moodle is accessed
  $CFG->dirroot = 'C:\wwwroot\moodle'; //Directory of Moodle
  $CFG->dataroot = 'C:\moodledata'; //Directory of moodledata folder (Created in step 1, Should be unaccessible through HTTP)
  $CFG->admin = 'admin';
  
  $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
  
  $CFG->unicodedb = true; // If Database is utf8
  
  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.
  ?>

3. Go to your browser and type your moodle URL. you should get a screen that allows you to continue installation.

From http://moodle.org/mod/forum/post.php?reply=349700