Zum Inhalt springen

Moodle/Update: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
K Textersetzung - „800px“ durch „600px“
 
(144 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''Moodle Update''' - Software-Aktualisierung durchführen
'''Moodle/Update''' - Software-Aktualisierung


== Vorbereitung ==
== Vorbereitung ==
; Version
=== Version ===
Aktuelle und neue Version ermitteln
https://seminare.foxtom.de/admin/index.php


[[File:moodleUpdateMessage.png|600px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]


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


=== Datensicherung ===
=== Konfiguration auslesen ===
==== Konfiguration ermitteln ====
<syntaxhighlight lang="bash" highlight="1" copy>
$ grep '$CFG->db' moodle/config.php
grep '$CFG->db' moodle/config.php
$CFG->dbname   = 'databaseName';
</syntaxhighlight>
$CFG->dbuser   = 'databaseUserName';
<syntaxhighlight lang="bash" highlight="" line>
$CFG->dbpass   = 'databasePassword';
$CFG->dbname = 'dbname';
$CFG->dbuser = 'dbuser';
$CFG->dbpass = 'dbpass';
</syntaxhighlight>


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


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


==== Dateisystem ====
; Kontrolle
$ '''tar -czf ../backup/seminareFoxtomDe_$(date -I).tar.gz moodle'''
<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>


<noinclude>
; Kontrolle
<syntaxhighlight lang="bash" highlight="1" line copy>
tar -tvf ../backup/moodle_$(date -I).tar.gz moodle
</syntaxhighlight>


== Anhang ==
=== Siehe auch ===
==== Dokumentation ====
==== Links ====
===== Projekt =====
===== Weblinks =====
# https://docs.moodle.org/404/de/Aktualisierung_von_Moodle
[[Kategorie:Moodle]]
= TMP =
== Durchführung ==
== Durchführung ==
mv moodle moodle.bak
=== 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/stable502/moodle-latest-502.zip
</syntaxhighlight>


=== Archiv entpacken ===
=== Archiv entpacken ===
tar -xf moodle-latest-404.tgz
<syntaxhighlight lang="bash" highlight="1" line copy>
 
unzip moodle-latest-502.zip
</syntaxhighlight>


<!--
=== Daten übertragen ===
=== Daten übertragen ===
cp -au moodle.bak/question/type/multichoiceset/ moodle/question/type/
<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>
-->


cp -au moodle.bak/course/format/tiles moodle/course/format/
=== Zugriffsrechte korrigieren ===
<syntaxhighlight lang="bash" highlight="1" line copy>
sudo chown -Rc web76:client1 moodle
</syntaxhighlight>


cp -au moodle.bak/config.php moodle
<!--
=== Konfiguration anpassen ===
-->


cp -au moodle.bak/blocks/featuredcourses moodle/blocks/
=== 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>


cp -au moodle.bak/mod/ moodle/
https://seminare.foxtom.de/admin/plugins.php


cp -au moodle.bak/theme/stream/ moodle/theme/
[[File:moodlePluginUebersicht.png|600px]]


chown -Rc web76:client1 moodle
[[File:moodlePluginsAdditional.png|600px]]


=== Einstiegspunkt ändern ===
<!--
=== Update-Skript ===


; Manuelle Eingriffe
-->


=== Konfiguration anpassen ===
<noinclude>


=== Erweiterungen aktualisieren ===
== Anhang ==
=== Siehe auch ===
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
=== Dokumentation ===
=== Links ===
==== Projekt ====
==== Weblinks ====
# https://docs.moodle.org/502/de/Aktualisierung_von_Moodle


=== Update-Skript ===
[[Kategorie:Moodle]]


</noinclude>
</noinclude>

Aktuelle Version vom 20. Juni 2026, 18:27 Uhr

Moodle/Update - Software-Aktualisierung

Vorbereitung

Version

Aktuelle und neue Version ermitteln

https://seminare.foxtom.de/admin/index.php

seminare.foxtom.de/admin

Verzeichnisstruktur

tree -d -L 2
├── backup
└── web
    └── moodle

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/stable502/moodle-latest-502.zip

Archiv entpacken

unzip moodle-latest-502.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

Projekt

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