Moodle/config.php: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „ $ '''cat moodle/config.php''' <?php // Moodle configuration file unset($CFG); global $CFG; $CFG = new stdClass(); $CFG->dbtype = 'mariadb'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'dbname'; $CFG->dbuser = 'dbuser'; $CFG->dbpass = 'dbpass'; $CFG->prefix = 'mdl_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => '', 'dbsocket' => '', 'dbcollation' => 'utf8mb4_general_ci', )…“ |
K Textersetzung - „ )“ durch „)“ |
||
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
$ '''cat moodle/config.php''' | $ '''cat moodle/config.php''' | ||
<?php | <?php // Moodle configuration file | ||
unset($CFG); | unset($CFG); | ||
global $CFG; | global $CFG; | ||
$CFG = new stdClass(); | $CFG = new stdClass(); | ||
$CFG->dbtype | $CFG->dbtype = 'mariadb'; | ||
$CFG->dblibrary = 'native'; | $CFG->dblibrary = 'native'; | ||
$CFG->dbhost | $CFG->dbhost = 'localhost'; | ||
$CFG->dbname | $CFG->dbname = 'dbname'; | ||
$CFG->dbuser | $CFG->dbuser = 'dbuser'; | ||
$CFG->dbpass | $CFG->dbpass = 'dbpass'; | ||
$CFG->prefix | $CFG->prefix = 'mdl_'; | ||
$CFG->dboptions = array ( | $CFG->dboptions = array ( | ||
'dbpersist' => 0, | |||
'dbport' => '', | |||
'dbsocket' => '', | |||
'dbcollation' => 'utf8mb4_general_ci', | |||
); | |||
$CFG->wwwroot | $CFG->wwwroot = '<nowiki>https://seminare.foxtom.de</nowiki>'; | ||
$CFG->dataroot | $CFG->dataroot = '/var/www/clients/client1/web76/web/moodledata'; | ||
$CFG->admin | $CFG->admin = 'admin'; | ||
$CFG->directorypermissions = 0777; | $CFG->directorypermissions = 0777; | ||
require_once(__DIR__ . '/lib/setup.php'); | require_once(__DIR__ . '/lib/setup.php'); | ||
// There is no php closing tag in this file, | // There is no php closing tag in this file, | ||
// it is intentional because it prevents trailing whitespace problems! | // it is intentional because it prevents trailing whitespace problems! | ||
[[Kategorie:Moodle]] | |||
Aktuelle Version vom 17. Juni 2026, 10:40 Uhr
$ cat moodle/config.php <?php // Moodle configuration file unset($CFG); global $CFG; $CFG = new stdClass(); $CFG->dbtype = 'mariadb'; $CFG->dblibrary = 'native'; $CFG->dbhost = 'localhost'; $CFG->dbname = 'dbname'; $CFG->dbuser = 'dbuser'; $CFG->dbpass = 'dbpass'; $CFG->prefix = 'mdl_'; $CFG->dboptions = array ( 'dbpersist' => 0, 'dbport' => , 'dbsocket' => , 'dbcollation' => 'utf8mb4_general_ci',
);
$CFG->wwwroot = 'https://seminare.foxtom.de'; $CFG->dataroot = '/var/www/clients/client1/web76/web/moodledata'; $CFG->admin = 'admin'; $CFG->directorypermissions = 0777; require_once(__DIR__ . '/lib/setup.php'); // There is no php closing tag in this file, // it is intentional because it prevents trailing whitespace problems!