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

From MoodleDocs
Revision as of 14:34, 30 June 2009 by Earl Smith (talk | contribs)

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

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

Other variables must be defined as follows:

$CFG->wwwroot = 'http://www.kushuniversity.us'; $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 the server, 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. Thank you.


In my experience you need to add .htaccess file which contains this line AddType x-mapp-php5 .php to your moodle folder as described in Installation hangs when setting-up database tablesFAQ.

You also need to use a MySQL 5.0 database for moodle 1.8.


I can confirm the above. I struggled with a fresh installation of Version 1.9 with a MySQL 5.0 db set up. The addition of AddType x-mapp-php5 .php as a single entry in the .htaccess file of the moodle directory solved the problem - the unattended installation worked well without error.