Moodle/Update: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
(133 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
'''Moodle Update''' - Software-Aktualisierung | '''Moodle/Update''' - Software-Aktualisierung | ||
== | == Beschreibung == | ||
=== Verzeichnisstruktur === | |||
<syntaxhighlight lang="bash" highlight="1,3" line> | |||
tree -d -L 2 | |||
├── backup | |||
└── web | |||
└── moodle | |||
</syntaxhighlight> | |||
== Version == | |||
Aktuelle und neue Version ermitteln | |||
https://seminare.foxtom.de/admin/index.php | |||
= | [[File:moodleUpdateMessage.png|800px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]] | ||
==== | === Konfiguration auslesen === | ||
<syntaxhighlight lang="bash" highlight="1" line> | |||
grep '$CFG->db' moodle/config.php | |||
$CFG->dbname = 'dbname'; | |||
$CFG->dbuser = 'dbuser'; | |||
$CFG->dbpass = 'dbpass'; | |||
</syntaxhighlight> | |||
==== Dateisystem ==== | <syntaxhighlight lang="bash" highlight="1-3" line> | ||
export dbname='dbname' | |||
export dbuser='dbuser' | |||
export dbpass='dbpass' | |||
</syntaxhighlight> | |||
== Datensicherung == | |||
=== Datenbank === | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
mysqldump --user="$dbuser" --password="$dbpass" $dbname | gzip > ../backup/"$dbname"_$(date -I).sql.gz | |||
</syntaxhighlight> | |||
; Kontrolle | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
zless ../backup/"$dbname"_$(date -I).sql.gz | |||
</syntaxhighlight> | |||
=== Dateisystem === | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
tar -czf ../backup/moodle_$(date -I).tar.gz moodle | |||
</syntaxhighlight> | |||
; Kontrolle | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
tar -tvf ../backup/moodle_$(date -I).tar.gz moodle | |||
</syntaxhighlight> | |||
== Durchführung == | == Durchführung == | ||
< | === Verzeichnis umbenennen === | ||
<syntaxhighlight lang="bash" highlight="1-7" line> | |||
--> | mv moodle moodle.bak | ||
</syntaxhighlight> | |||
=== Download === | |||
<syntaxhighlight lang="bash" highlight="1" line> | |||
wget https://download.moodle.org/download.php/direct/stable405/moodle-latest-405.zip | |||
</syntaxhighlight> | |||
=== Archiv entpacken === | === Archiv entpacken === | ||
<syntaxhighlight lang="bash" highlight="1" line> | |||
unzip moodle-latest-405.zip | |||
</syntaxhighlight> | |||
<!-- | <!-- | ||
=== Daten übertragen === | === Daten übertragen === | ||
< | <syntaxhighlight lang="bash" highlight="1-7" line> | ||
cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/ | |||
cp -au moodle.bak/course/format/tiles moodle/course/format/ | |||
cp -au moodle.bak/config.php moodle | |||
cp -au moodle.bak/blocks/featuredcourses moodle/blocks/ | |||
cp -au moodle.bak/mod/ moodle/ | |||
cp -au moodle.bak/theme/stream/ moodle/theme/ | |||
</syntaxhighlight> | |||
--> | --> | ||
=== | === Zugriffsrechte korrigieren === | ||
<syntaxhighlight lang="bash" highlight="1" line> | |||
sudo chown -Rc web76:client1 moodle | |||
</syntaxhighlight> | |||
<!-- | <!-- | ||
=== Konfiguration anpassen === | |||
--> | --> | ||
=== | === Erweiterungen aktualisieren === | ||
<syntaxhighlight lang="bash" highlight="1-4" line> | |||
cp -a moodle.bak/mod/cardbox moodle/mod | |||
cp -a moodle.bak/blocks/featuredcourses moodle/blocks | |||
cp -a moodle.bak/theme/stream moodle/theme | |||
cp -a moodle.bak/question/type/multichoiceset moodle/question/type/ | |||
</syntaxhighlight> | |||
https://seminare.foxtom.de/admin/plugins.php | |||
[[File:moodlePluginUebersicht.png|800px]] | |||
[[File:moodlePluginsAdditional.png|800px]] | |||
<!-- | <!-- | ||
=== Update-Skript === | === Update-Skript === | ||
; | ; Manuelle Eingriffe | ||
--> | --> | ||
Zeile 105: | Zeile 113: | ||
== Anhang == | == Anhang == | ||
=== Siehe auch === | === Siehe auch === | ||
{{Special:PrefixIndex/{{BASEPAGENAME}}}} | |||
==== Dokumentation ==== | ==== Dokumentation ==== | ||
==== Links ==== | ==== Links ==== | ||
===== Projekt ===== | ===== Projekt ===== | ||
===== Weblinks ===== | ===== Weblinks ===== | ||
# https://docs.moodle.org/405/de/Aktualisierung_von_Moodle | |||
[[Kategorie:Moodle]] | [[Kategorie:Moodle]] | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 21. Februar 2025, 08:48 Uhr
Moodle/Update - Software-Aktualisierung
Beschreibung
Verzeichnisstruktur
tree -d -L 2
├── backup
└── web
└── moodle
Version
Aktuelle und neue Version ermitteln
https://seminare.foxtom.de/admin/index.php
Konfiguration auslesen
grep '$CFG->db' moodle/config.php
$CFG->dbname = 'dbname';
$CFG->dbuser = 'dbuser';
$CFG->dbpass = 'dbpass';
export dbname='dbname'
export dbuser='dbuser'
export dbpass='dbpass'
Datensicherung
Datenbank
mysqldump --user="$dbuser" --password="$dbpass" $dbname | gzip > ../backup/"$dbname"_$(date -I).sql.gz
- Kontrolle
zless ../backup/"$dbname"_$(date -I).sql.gz
Dateisystem
tar -czf ../backup/moodle_$(date -I).tar.gz moodle
- Kontrolle
tar -tvf ../backup/moodle_$(date -I).tar.gz moodle
Durchführung
Verzeichnis umbenennen
mv moodle moodle.bak
Download
wget https://download.moodle.org/download.php/direct/stable405/moodle-latest-405.zip
Archiv entpacken
unzip moodle-latest-405.zip
Zugriffsrechte korrigieren
sudo chown -Rc web76:client1 moodle
Erweiterungen aktualisieren
cp -a moodle.bak/mod/cardbox moodle/mod
cp -a moodle.bak/blocks/featuredcourses moodle/blocks
cp -a moodle.bak/theme/stream moodle/theme
cp -a moodle.bak/question/type/multichoiceset moodle/question/type/
https://seminare.foxtom.de/admin/plugins.php
Anhang
Siehe auch
Dokumentation
Links
Projekt
Weblinks