Zum Inhalt springen

Moodle/Update: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „line>“ durch „line copy>“
 
(109 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''Moodle Update''' - Software-Aktualisierung
'''Moodle/Update''' - Software-Aktualisierung


== Vorbereitung ==
== Beschreibung ==
; Version
[[File:2024-08-08_13-34.png|mini|400px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]


; Download
=== Verzeichnisstruktur  ===
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" highlight="1,3" line copy>
wget https://download.moodle.org/download.php/direct/stable404/moodle-latest-404.tgz
tree -d -L 2
├── backup
└── web
   └── moodle
</syntaxhighlight>
</syntaxhighlight>


=== Datensicherung ===
== Version ==
==== Konfiguration ermitteln ====
Aktuelle und neue Version ermitteln
<syntaxhighlight lang="bash" line>
https://seminare.foxtom.de/admin/index.php
$ grep '$CFG->db' moodle/config.php
 
  $CFG->dbname    = 'databaseName';
[[File:moodleUpdateMessage.png|800px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]
  $CFG->dbuser    = 'databaseUserName';
 
  $CFG->dbpass    = 'databasePassword';
=== 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>
</syntaxhighlight>


; Beispiel
<syntaxhighlight lang="bash" highlight="1-3" line copy>
export dbname='dbname'
export dbuser='dbuser'
export dbpass='dbpass'
</syntaxhighlight>


==== Datenbank ====
== Datensicherung ==
<syntaxhighlight lang="bash" line>
=== Datenbank ===
mysqldump --user=$databaseUserName --password=$databasePassword $databaseName > backup/$databaseName_$(date -I).sql
<syntaxhighlight lang="bash" highlight="1" line copy>
mysqldump --user="$dbuser" --password="$dbpass" $dbname | gzip > ../backup/"$dbname"_$(date -I).sql.gz
</syntaxhighlight>
</syntaxhighlight>


; Beispiel
; Kontrolle
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
mysqldump c1moodleFoxtomDe > backup/c1moodleFoxtomDe_$(date -I).sql
zless ../backup/"$dbname"_$(date -I).sql.gz
</syntaxhighlight>
</syntaxhighlight>


==== Dateisystem ====
=== Dateisystem ===
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle
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>
</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" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
tar -xf moodle-latest-404.tgz
unzip moodle-latest-405.zip
</syntaxhighlight>
</syntaxhighlight>


<!--
=== Daten übertragen ===
=== Daten übertragen ===
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" highlight="1-7" line copy>
mv moodle moodle.bak
cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/
cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/
cp -au moodle.bak/course/format/tiles moodle/course/format/
cp -au moodle.bak/course/format/tiles moodle/course/format/
Zeile 53: Zeile 78:
cp -au moodle.bak/theme/stream/ moodle/theme/
cp -au moodle.bak/theme/stream/ moodle/theme/
</syntaxhighlight>
</syntaxhighlight>
-->


=== Zugriffsrechte korrigieren ===
=== Zugriffsrechte korrigieren ===
<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo chown -Rc web76:client1 moodle
sudo chown -Rc web76:client1 moodle
</syntaxhighlight>
</syntaxhighlight>


=== Einstiegspunkt ändern ===
<!--
=== Konfiguration anpassen ===
-->
 
=== 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


=== Konfiguration anpassen ===
[[File:moodlePluginUebersicht.png|800px]]


=== Erweiterungen aktualisieren ===
[[File:moodlePluginsAdditional.png|800px]]


<!--
=== Update-Skript ===
=== Update-Skript ===
; Manuelle Eingriffe
-->


<noinclude>
<noinclude>
Zeile 72: Zeile 113:
== Anhang ==
== Anhang ==
=== Siehe auch ===
=== Siehe auch ===
==== Dokumentation ====
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
==== Links ====
=== Dokumentation ===
===== Projekt =====
=== Links ===
===== Weblinks =====
==== Projekt ====
# https://docs.moodle.org/404/de/Aktualisierung_von_Moodle
==== Weblinks ====
# https://docs.moodle.org/405/de/Aktualisierung_von_Moodle


[[Kategorie:Moodle]]
[[Kategorie:Moodle]]


</noinclude>
</noinclude>

Aktuelle Version vom 11. Mai 2025, 13: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

seminare.foxtom.de/admin

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

  1. https://docs.moodle.org/405/de/Aktualisierung_von_Moodle