Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User talk:Mike Tynes

From MoodleDocs
Revision as of 20:19, 5 November 2009 by Mike Tynes (talk | contribs)
(talk) talk | Latest revision (diff) | Newer revision → (diff)

Moodle (with XAMPP) Login Page Blank

If you login page appears blank, then try the following:

1. Open the config.php file located in the moodle directory and check for any out of place garble. The following between the dashes should be the only information listed. If your config.php file looks different, then just copy the following text into notepad, change the password and DNS name, and save the file as config.php. Replace the old config file with the newly created config file. Stop and start your appache and mysql services in xampp.


<?php /// Moodle Configuration File

unset($CFG);

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

$CFG->wwwroot = 'http://DNSname/moodle'; $CFG->dirroot = 'C:\xampp\htdocs\moodle'; $CFG->dataroot = 'C:\xampp\htdocs/moodledata'; $CFG->admin = 'admin';

$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode

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. ?>


2.If step one did not fix the issue, then upgrade your xampp. Before you do this, backup your htdocs folder to another drive for safe keeps. During the upgrade process make sure the destination for the install is the same as the older install location. For example: if the old directory is c:\xampp then the installer should be directed to c:\xampp. After this is complete, lock down your security in xampp. Stop and start your appache and mysql services in xampp. Good luck.