I am trying to install 2.2 on a rental server. I already had a moodle installed on the same server; that moodle began as 1.9 and was upgraded successfully to 2.2, but I want to try putting a clean install of 2.2 in its place. I completely removed the old moodle, including the database, and started from scratch, but the installation always hangs up after the server checks screen. "Installation" and "System" are displayed in the browser, and then nothing more.
The php.ini file after hangup looks like this:
<?php // Moodle configuration file unset($CFG); global $CFG; $CFG = new stdClass(); $CFG->dbtype = 'mysqli'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = '******'; $CFG->dbuser = '******'; $CFG->dbpass = '******'; $CFG->prefix = 'mdl_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbsocket' => 0, ); $CFG->wwwroot = 'http://moodle.abiloon.com'; $CFG->dataroot = '/home/abiloon/public_html/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; $CFG->passwordsaltmain = '********'; require_once(dirname(__FILE__) . '/lib/setup.php'); // There is no php closing tag in this file, // it is intentional because it prevents trailing whitespace problems!
This differs in a few ways from the php.ini of the previous (successful) installation:
<?php /// Moodle Configuration File unset($CFG); $CFG = new stdClass(); $CFG->dbtype = 'mysql'; $CFG->dbhost = 'localhost'; $CFG->dbname = '******'; $CFG->dbuser = '*******'; $CFG->dbpass = '******'; $CFG->dbpersist = false; $CFG->prefix = 'mdl_'; $CFG->wwwroot = 'http://moodle.abiloon.com'; $CFG->dirroot = '/home/abiloon/public_html/moodle'; $CFG->dataroot = '/home/abiloon/public_html/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode $CFG->passwordsaltalt1 = '*********'; $CFG->passwordsaltalt2 = '*********'; $CFG->passwordsaltmain = '**********'; 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. ?>
Does this give any clues as to why the fresh installation is not working?