Moodle/Update: Unterschied zwischen den Versionen
Erscheinungsbild
	
	
 Die Seite wurde neu angelegt: „'''Mediawiki Update''' - Software-Aktualisierung durchführen  == Vorbereitung == ; Version   ; Download  $ '''wget <nowiki>https://releases.wikimedia.org/mediawiki/1.39/mediawiki-1.39.3.tar.gz</nowiki>'''  === Datensicherung === ==== Konfiguration ermitteln ====  $ '''grep '$wgDB' mediawiki/LocalSettings.php'''  $wgDBserver = '''"wgDBserver"''';  $wgDBuser = '''"wgDBuser"''';  $wgDBname = '''"wgDBname"''';  $wgDBpassword = '''"wgDBpassword"''';  ==== Dat…“  | 
				K Textersetzung - „line>“ durch „line copy>“  | 
				||
| (156 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
'''  | '''Moodle/Update''' - Software-Aktualisierung  | ||
==   | == Beschreibung ==  | ||
=== Verzeichnisstruktur  ===  | |||
<syntaxhighlight lang="bash" highlight="1,3" line copy>  | |||
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 copy>  | |||
grep '$CFG->db' moodle/config.php  | |||
 $CFG->dbname    = 'dbname';  | |||
 $CFG->dbuser    = 'dbuser';  | |||
 $CFG->dbpass    = 'dbpass';  | |||
</syntaxhighlight>  | |||
==== Dateisystem ====  | <syntaxhighlight lang="bash" highlight="1-3" line copy>  | ||
export dbname='dbname'  | |||
export dbuser='dbuser'  | |||
export dbpass='dbpass'  | |||
</syntaxhighlight>  | |||
== Datensicherung ==  | |||
=== Datenbank ===  | |||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
mysqldump --user="$dbuser" --password="$dbpass" $dbname | gzip > ../backup/"$dbname"_$(date -I).sql.gz  | |||
</syntaxhighlight>  | |||
; Kontrolle  | |||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
zless ../backup/"$dbname"_$(date -I).sql.gz  | |||
</syntaxhighlight>  | |||
=== Dateisystem ===  | |||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
tar -czf ../backup/moodle_$(date -I).tar.gz moodle  | |||
</syntaxhighlight>  | |||
; Kontrolle  | |||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
tar -tvf ../backup/moodle_$(date -I).tar.gz moodle  | |||
</syntaxhighlight>  | |||
== Durchführung ==  | == Durchführung ==  | ||
=== Verzeichnis umbenennen ===  | |||
<syntaxhighlight lang="bash" highlight="1-7" line copy>  | |||
mv moodle moodle.bak  | |||
</syntaxhighlight>  | |||
=== Download ===  | |||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
wget https://download.moodle.org/download.php/direct/stable405/moodle-latest-405.zip  | |||
</syntaxhighlight>  | |||
=== Archiv entpacken ===  | === Archiv entpacken ===  | ||
<syntaxhighlight lang="bash" highlight="1" line copy>  | |||
unzip moodle-latest-405.zip  | |||
</syntaxhighlight>  | |||
<!--  | |||
=== Daten übertragen ===  | === Daten übertragen ===  | ||
<syntaxhighlight lang="bash" highlight="1-7" line copy>  | |||
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 copy>  | |||
sudo chown -Rc web76:client1 moodle  | |||
</syntaxhighlight>  | |||
<!--  | |||
=== Konfiguration anpassen ===  | === Konfiguration anpassen ===  | ||
-->  | |||
=== Erweiterungen aktualisieren ===  | === Erweiterungen aktualisieren ===  | ||
<syntaxhighlight lang="bash" highlight="1-4" line copy>  | |||
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  | ||
-->  | |||
<noinclude>  | <noinclude>  | ||
== Anhang ==  | == Anhang ==  | ||
=== Siehe auch ===  | === Siehe auch ===  | ||
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}  | |||
=== Dokumentation ===  | |||
=== Links ===  | |||
==== Projekt ====  | |||
==== Weblinks ====  | |||
# https://docs.moodle.org/405/de/Aktualisierung_von_Moodle  | |||
#   | |||
[[Kategorie:Moodle]]  | |||
</noinclude>  | </noinclude>  | ||
Aktuelle Version vom 11. Mai 2025, 12:44 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