Moodle_web | Config table does not contain version, can not continue, sorry. Moodle_web | moodle 23:58:52.58 INFO => Running database upgrade Moodle_web | moodle 23:58:52.58 DEBUG => Getting $CFG->dbpass from Moodle configuration Moodle_web | moodle 23:58:52.57 DEBUG => Getting $CFG->dbuser from Moodle configuration Moodle_web | moodle 23:58:52.56 DEBUG => Getting $CFG->dbname from Moodle configuration Moodle_web | moodle 23:58:52.55 DEBUG => Getting 'dbport' from Moodle configuration Moodle_web | moodle 23:58:52.54 DEBUG => Getting $CFG->dbhost from Moodle configuration Moodle_web | moodle 23:58:52.53 DEBUG => Getting $CFG->dbtype from Moodle configuration Moodle_web | moodle 23:58:52.53 INFO => Trying to connect to the database server Moodle_web | moodle 23:58:50.83 INFO => Restoring persisted Moodle installation Moodle_web | moodle 23:58:50.79 DEBUG => Validating settings in MOODLE_* environment variables. Moodle_web | moodle 23:58:50.76 INFO => Validating settings in MYSQL_CLIENT_* env vars Moodle_web | moodle 23:58:50.74 INFO => Configuring PHP options Moodle_web | moodle 23:58:50.71 DEBUG => Configuring port 8443 on file /opt/bitnami/apache/conf/bitnami/nf Moodle_web | moodle 23:58:50.71 INFO => Configuring the HTTPS port Moodle_web | moodle 23:58:50.70 DEBUG => Validating settings in APACHE_* environment variables Moodle_web | moodle 23:58:50.69 INFO => ** Starting Moodle setup ** Moodle_web | moodle 23:58:50.68 Submit issues and feature requests at Moodle_web | moodle 23:58:50.68 Subscribe to project updates by watching Instead, the debug info shows: moodle_web | moodle 23:58:50.68 Welcome to the Bitnami moodle container I'm expecting the container go into "installation mode" as there's no data in moodle/data or moodle/moodledata, and the database does not contain any tables. ) $CFG->wwwroot = getenv('MOODLE_WWWROOT') $CFG->dataroot = '/bitnami/moodledata' īoot up the container, by going to /var/up 'dbport' => getenv('MOODLE_DATABASE_PORT_NUMBER'), // the TCP port number to use when connecting if dbhost is 'localhost' - if you need (please note mysql is always using socket if you set it to 'true' or custom path 'dbsocket' => 0, // should connection via UNIX socket be used? setting, 'true' can improve performance used? set to 'false' for the most stable 'dbpersist' => false, // should persistent database connections be $CFG->prefix = 'mdl_' // prefix to use for all table names $CFG->dbpass = getenv('MOODLE_DATABASE_PASSWORD') // your database password $CFG->dbuser = getenv('MOODLE_DATABASE_USER') // your database username $CFG->dbname = getenv('MOODLE_DATABASE_NAME') // database name, eg moodle $CFG->dbhost = getenv('MOODLE_DATABASE_HOST') // eg 'localhost' or 'db.isp.com' or IP $CFG->dblibrary = 'native' // 'native' only at the moment ![]() to the database: $CFG->dbtype = getenv('MOODLE_DATABASE_TYPE') // 'pgsql', 'mariadb', 'mysqli', 'mssql', 'sqlsrv' or 'oci' Ĭp /var/Edit config.php and add the environment variables for connecting, e.g. MOODLE_DATABASE_TYPE=$:/bitnami/moodledata/localcache:delegated"Īdd all of your referenced environment variables, as per Step two above, at /var/A snippet of this variable might look like this. Image: "docker.io/bitnami/moodle:3-debian-10" Git clone git:///moodle.gitĪdd a docker-compose.yml file that looks as follows: version: "3.8" var/www/moodle/moodledata cd /var/www/moodle In order to easily share data with other developers without disclosing passwords, I'm injecting. ![]() I'm setting up a new production environment and would like to use the bitnami docker image primarily for serving php, while keeping my mysql server running on the host (or external with something like AWS RDS).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |