Note: You are currently viewing documentation for Moodle 2.0. Up-to-date documentation for the latest stable version is available here: 1and1 MySQL installation.

1and1 MySQL installation: Difference between revisions

From MoodleDocs
(Information on installing Moodle on a 1and1 hosted site)
 
No edit summary
Line 2: Line 2:


$CFG->dbtype    = 'mysql';      // mysql or postgres7 (for now)
$CFG->dbtype    = 'mysql';      // mysql or postgres7 (for now)
$CFG->dbhost    = 'db123.perfora.net';  // eg localhost or db.isp.com
$CFG->dbhost    = 'db123.perfora.net';  // eg localhost or db.isp.com
$CFG->dbname    = 'db123456789';      // database name, eg moodle
$CFG->dbname    = 'db123456789';      // database name, eg moodle
$CFG->dbuser    = 'dbo123456789';    // your database username
$CFG->dbuser    = 'dbo123456789';    // your database username
$CFG->dbpass    = 'Gvu8rrqs';    // your database password
$CFG->dbpass    = 'Gvu8rrqs';    // your database password
$CFG->prefix    = 'mdl_';        // Prefix to use for all table names
$CFG->prefix    = 'mdl_';        // Prefix to use for all table names


Line 13: Line 18:


$CFG->wwwroot  = 'http://www.yoururl.com';
$CFG->wwwroot  = 'http://www.yoururl.com';
$CFG->dirroot  = '/homepages/12/d123456789/htdocs/yourdirectory';
$CFG->dirroot  = '/homepages/12/d123456789/htdocs/yourdirectory';
$CFG->dataroot  = '/homepages/12/d123456789/htdocs/moodledata';
$CFG->dataroot  = '/homepages/12/d123456789/htdocs/moodledata';


So far, this gets me into the Moodle setup program on theserver, but I get errors when trying to install Moodle. It can't seem to correctly set up the database. Please edit this page to provide more information to the many users of 1and1. Thanks you.
So far, this gets me into the Moodle setup program on theserver, but I get errors when trying to install Moodle. It can't seem to correctly set up the database. Please edit this page to provide more information to the many users of 1and1. Thanks you.

Revision as of 19:20, 28 May 2007

There are eamples of Moodle beign successfully installed on 1and1 Apache hosted sites. There are some formalities that you must follow. In the config.php file, yuo must use the following format for the listed database variables:

$CFG->dbtype = 'mysql'; // mysql or postgres7 (for now)

$CFG->dbhost = 'db123.perfora.net'; // eg localhost or db.isp.com

$CFG->dbname = 'db123456789'; // database name, eg moodle

$CFG->dbuser = 'dbo123456789'; // your database username

$CFG->dbpass = 'Gvu8rrqs'; // your database password

$CFG->prefix = 'mdl_'; // Prefix to use for all table names


other variables must be defined as follows:


$CFG->wwwroot = 'http://www.yoururl.com';

$CFG->dirroot = '/homepages/12/d123456789/htdocs/yourdirectory';

$CFG->dataroot = '/homepages/12/d123456789/htdocs/moodledata';

So far, this gets me into the Moodle setup program on theserver, but I get errors when trying to install Moodle. It can't seem to correctly set up the database. Please edit this page to provide more information to the many users of 1and1. Thanks you.