Zum Inhalt springen

Moodle/Update: Unterschied zwischen den Versionen

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


== Vorbereitung ==
== Beschreibung ==
; Version


=== Verzeichnisstruktur  ===
<syntaxhighlight lang="bash" highlight="1,3" line copy>
tree -d -L 2
├── backup
└── web
   └── moodle
</syntaxhighlight>


; Download
== Version ==
  $ '''wget <nowiki>https://download.moodle.org/download.php/direct/stable404/moodle-latest-404.tgz</nowiki>'''
Aktuelle und neue Version ermitteln
  https://seminare.foxtom.de/admin/index.php


=== Datensicherung ===
[[File:moodleUpdateMessage.png|800px|link=https://seminare.foxtom.de/admin/index.php|seminare.foxtom.de/admin]]
==== Konfiguration ermitteln ====
$ grep '$CFG->db' moodle/config.php
$CFG->dbname    = 'databaseName';
$CFG->dbuser    = 'databaseUserName';
$CFG->dbpass    = 'databasePassword';


==== Datenbank ====
=== Konfiguration auslesen ===
$ '''mysqldump --user=''$databaseUserName'' --password=''$databasePassword'' ''$databaseName'' > backup/''$databaseName''_$(date -I).sql'''
<syntaxhighlight lang="bash" highlight="1" line copy>
grep '$CFG->db' moodle/config.php
$CFG->dbname    = 'dbname';
$CFG->dbuser    = 'dbuser';
$CFG->dbpass    = 'dbpass';
</syntaxhighlight>


# '''mysqldump c1moodleFoxtomDe > backup/c1moodleFoxtomDe_$(date -I).sql'''
<syntaxhighlight lang="bash" highlight="1-3" line copy>
export dbname='dbname'
export dbuser='dbuser'
export dbpass='dbpass'
</syntaxhighlight>


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


<noinclude>
=== Dateisystem ===
 
<syntaxhighlight lang="bash" highlight="1" line copy>
== Anhang ==
tar -czf ../backup/moodle_$(date -I).tar.gz moodle
=== Siehe auch ===
</syntaxhighlight>
==== Dokumentation ====
==== Links ====
===== Projekt =====
===== Weblinks =====
# https://docs.moodle.org/404/de/Aktualisierung_von_Moodle


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


= 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/stable405/moodle-latest-405.zip
</syntaxhighlight>


=== Archiv entpacken ===
=== Archiv entpacken ===
tar -xf moodle-latest-404.tgz
<syntaxhighlight lang="bash" highlight="1" line copy>
 
unzip moodle-latest-405.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|800px]]


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


=== 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/405/de/Aktualisierung_von_Moodle


=== Update-Skript ===
[[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

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