Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.0
-
Component/s: Installation
-
Labels:None
-
Environment:HideUbunut 9.0.4
ii cherokee 0.11.6-1 extremely fast and flexible web server
ii php5 5.2.9-0.dotdeb.2 server-side, HTML-embedded scripting language (metapackage)
ii postgresql 8.3.7-1 object-relational SQL database (supported version)
<?php // Moodle Configuration File
unset($CFG);
$CFG = new stdClass();
$CFG->dbtype = 'pgsql';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle-2oh';
$CFG->dbuser = 'moodle-2oh';
$CFG->dbpass = '****************';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersit' => 0,
'dbsocket' => 1,
);
$CFG->wwwroot = 'http://moodlemoot.goshen.edu/2.0';
$CFG->dirroot = '/var/www/2.0';
$CFG->dataroot = '/var/2oh-moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode
require_once("$CFG->dirroot/lib/setup.php");
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!
ShowUbunut 9.0.4 ii cherokee 0.11.6-1 extremely fast and flexible web server ii php5 5.2.9-0.dotdeb.2 server-side, HTML-embedded scripting language (metapackage) ii postgresql 8.3.7-1 object-relational SQL database (supported version) <?php // Moodle Configuration File unset($CFG); $CFG = new stdClass(); $CFG->dbtype = 'pgsql'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'moodle-2oh'; $CFG->dbuser = 'moodle-2oh'; $CFG->dbpass = '****************'; $CFG->prefix = 'mdl_'; $CFG->dboptions = array ( 'dbpersit' => 0, 'dbsocket' => 1, ); $CFG->wwwroot = 'http://moodlemoot.goshen.edu/2.0'; $CFG->dirroot = '/var/www/2.0'; $CFG->dataroot = '/var/2oh-moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 00777; // try 02777 on a server in Safe Mode require_once("$CFG->dirroot/lib/setup.php"); // There is no php closing tag in this file, // it is intentional because it prevents trailing whitespace problems!
-
Database:PostgreSQL
-
Affected Branches:MOODLE_20_STABLE
-
Fixed Branches:MOODLE_20_STABLE
Description
Attempted fresh web installation from CVS with empty database as of July 9, 2009 appears to work right up until the config.php file is created and placed into the correct directory. Clicking continue at this point redirects to /admin/ and then php reports an unhelpful error "Fatal error: Exception thrown without a stack frame in Unknown on line 0" and nothing is printed to the screen. No tables/data are ever created in the database. Nothing more is logged to my file base PHP error log. However, I can connect to the database without any problem using psql and the correct password.
I'm not sure what I need to do to debug more. Permissions on the config.php seem correct (root:www-data 644). I am slightly suspicious of the database connection being incorrect, and I've tried non-socket connections, connections via localhost, 127.0.0.1 and connections through the public IP (after editing pg_hba.conf appropriately and testing via psql) but nothing seems to alter what is being done.
Activity
- All
- Comments
- History
- Activity
- Source
- Test Sessions
should be fixed now, thanks