Update per github

Update per github

von Tobias Blank -
Anzahl Antworten: 2

Hallo,

wir haben eine ziemlich große Moodleinstanz auf einem eigenen Webserver in unserer Schule am laufen. Die installierte Version ist 1.9.5+

Nachdem unser Serveradministrator nicht mehr bei uns tätig ist, soll Moodle jetzt auf einen managed Server zu Hetzner umziehen und im Zuge dessen auch gleich auf Moodle 2.3 upgegradet werden. Die ganze up-to-date Geschichte soll dann über github laufen. Da bin ich ABSOLUTR NEULING.

Um das mal durchzutesten, habe ich bei mir lokal als erstes per github Moodle in der Version 1.9.19 installiert, die config.php entsprechend angepasst und nach der Aktualisierung  der mySQL Datenbank lief alles wunderbar.

Jetzt wollte ich auf 2.3 upgraden, habe folgende Befehle eingegeben:

sudo git branch local_23_STABLE --track origin/MOODLE_23_STABLE

sudo git checkout local_23_STABLE -m

Als Meldung kam folgendes:

Checking out files: 100% (12991/12991), done.
M admin/index.php
M theme/afterburner/pix/favicon.ico
A theme/chameleon/README.html
A theme/chameleon/config.php
A theme/chameleon/footer.html
A theme/chameleon/header.html
A theme/chameleon/pix/a/r_next.gif
A theme/chameleon/pix/a/r_previous.gif
A theme/chameleon/pix/c/course.gif
A theme/chameleon/pix/c/event.gif
A theme/chameleon/pix/c/group.gif
A theme/chameleon/pix/c/site.gif
A theme/chameleon/pix/c/user.gif
A theme/chameleon/pix/f/audio.gif
A theme/chameleon/pix/f/avi.gif
A theme/chameleon/pix/f/dmg.gif
A theme/chameleon/pix/f/edit.gif
A theme/chameleon/pix/f/env.gif
A theme/chameleon/pix/f/excel.gif
A theme/chameleon/pix/f/explore.gif
A theme/chameleon/pix/f/flash.gif
A theme/chameleon/pix/f/folder.gif
A theme/chameleon/pix/f/help.gif
A theme/chameleon/pix/f/html.gif
A theme/chameleon/pix/f/image.gif
A theme/chameleon/pix/f/jbc.gif
A theme/chameleon/pix/f/jcl.gif
A theme/chameleon/pix/f/jcw.gif
A theme/chameleon/pix/f/jmt.gif
A theme/chameleon/pix/f/jmx.gif
A theme/chameleon/pix/f/jqz.gif
A theme/chameleon/pix/f/move.gif
A theme/chameleon/pix/f/odt.gif
A theme/chameleon/pix/f/parent.gif
A theme/chameleon/pix/f/pdf.gif
A theme/chameleon/pix/f/powerpoint.gif
A theme/chameleon/pix/f/text.gif
A theme/chameleon/pix/f/unknown.gif
A theme/chameleon/pix/f/video.gif
A theme/chameleon/pix/f/web.gif
A theme/chameleon/pix/f/word.gif
A theme/chameleon/pix/f/xml.gif
A theme/chameleon/pix/f/zip.gif
A theme/chameleon/pix/g/f1.png
A theme/chameleon/pix/g/f2.png
A theme/chameleon/pix/help.gif
A theme/chameleon/pix/i/admin.gif
A theme/chameleon/pix/i/all.gif
A theme/chameleon/pix/i/backup.gif
A theme/chameleon/pix/i/calc.gif
A theme/chameleon/pix/i/course.gif
A theme/chameleon/pix/i/db.gif
A theme/chameleon/pix/i/edit.gif
A theme/chameleon/pix/i/email.gif
A theme/chameleon/pix/i/files.gif
A theme/chameleon/pix/i/grades.gif
A theme/chameleon/pix/i/group.gif
A theme/chameleon/pix/i/guest.gif
A theme/chameleon/pix/i/hide.gif
A theme/chameleon/pix/i/info.gif
A theme/chameleon/pix/i/key.gif
A theme/chameleon/pix/i/log.gif
A theme/chameleon/pix/i/marked.gif
A theme/chameleon/pix/i/marker.gif
A theme/chameleon/pix/i/new.gif
A theme/chameleon/pix/i/news.gif
A theme/chameleon/pix/i/one.gif
A theme/chameleon/pix/i/questions.gif
A theme/chameleon/pix/i/report.gif
A theme/chameleon/pix/i/restore.gif
A theme/chameleon/pix/i/return.gif
A theme/chameleon/pix/i/roles.gif
A theme/chameleon/pix/i/rss.gif
A theme/chameleon/pix/i/rsssitelogo.gif
A theme/chameleon/pix/i/scales.gif
A theme/chameleon/pix/i/search.gif
A theme/chameleon/pix/i/settings.gif
A theme/chameleon/pix/i/show.gif
A theme/chameleon/pix/i/stats.gif
A theme/chameleon/pix/i/switch.gif
A theme/chameleon/pix/i/user.gif
A theme/chameleon/pix/i/users.gif
A theme/chameleon/pix/s/angry.gif
A theme/chameleon/pix/s/approve.gif
A theme/chameleon/pix/s/biggrin.gif
A theme/chameleon/pix/s/blackeye.gif
A theme/chameleon/pix/s/blush.gif
A theme/chameleon/pix/s/clown.gif
A theme/chameleon/pix/s/cool.gif
A theme/chameleon/pix/s/dead.gif
A theme/chameleon/pix/s/evil.gif
A theme/chameleon/pix/s/kiss.gif
A theme/chameleon/pix/s/mixed.gif
A theme/chameleon/pix/s/sad.gif
A theme/chameleon/pix/s/shy.gif
A theme/chameleon/pix/s/sleepy.gif
A theme/chameleon/pix/s/smiley.gif
A theme/chameleon/pix/s/surprise.gif
A theme/chameleon/pix/s/tongueout.gif
A theme/chameleon/pix/s/wideeyes.gif
A theme/chameleon/pix/t/backup.gif
A theme/chameleon/pix/t/calc.gif
A theme/chameleon/pix/t/clear.gif
A theme/chameleon/pix/t/copy.gif
A theme/chameleon/pix/t/delete.gif
A theme/chameleon/pix/t/down.gif
A theme/chameleon/pix/t/edit.gif
A theme/chameleon/pix/t/email.gif
A theme/chameleon/pix/t/emailno.gif
A theme/chameleon/pix/t/go.gif
A theme/chameleon/pix/t/groupn.gif
A theme/chameleon/pix/t/groups.gif
A theme/chameleon/pix/t/groupv.gif
A theme/chameleon/pix/t/hide.gif
A theme/chameleon/pix/t/left.gif
A theme/chameleon/pix/t/message.gif
A theme/chameleon/pix/t/move.gif
A theme/chameleon/pix/t/moveleft.gif
A theme/chameleon/pix/t/preview.gif
A theme/chameleon/pix/t/removeright.gif
A theme/chameleon/pix/t/restore.gif
A theme/chameleon/pix/t/right.gif
A theme/chameleon/pix/t/show.gif
A theme/chameleon/pix/t/stop.gif
A theme/chameleon/pix/t/switch.gif
A theme/chameleon/pix/t/switch_minus.gif
A theme/chameleon/pix/t/switch_plus.gif
A theme/chameleon/pix/t/up.gif
A theme/chameleon/pix/t/user.gif
A theme/chameleon/pix/t/usernot.gif
A theme/chameleon/pix/u/f1.png
A theme/chameleon/pix/u/f2.png
A theme/chameleon/styles.php
A theme/chameleon/ui/chameleon.php
A theme/chameleon/ui/chameleon_js.php
A theme/chameleon/ui/css.php
A theme/chameleon/ui/sarissa.js
A theme/chameleon/user_styles.css
Switched to branch 'local_23_STABLE'

Der Aufruf der lokalen Moodleinstanz liefert jetzt folgenden php-Fehler:

Parse error: syntax error, unexpected T_IS_IDENTICAL in /opt/lampp/htdocs/moodle/admin/index.php on line 149

In Zeile 149 steht =======

War denn die Vorgehensweise korrekt und wenn nicht, wo liegt der Fehler?

Danke schon einmal für die Hilfe!

Mittelwert:  -
Als Antwort auf Tobias Blank

Re: Update per github

von Tobias Blank -

Hat sich erledigt, vielleicht hätte ich vorher die Dokumentation genauer lesen sollen.

Upgrade von 1.9 auf 2.3 geht von Haus aus nicht.

Schrittweises Upgrade von 1.9 - 2.0 - 2.1 ... kein Problem

Als Antwort auf Tobias Blank

Re: Update per github

von Andreas Grabs -
Nutzerbild von Besonders aktive Moodler Nutzerbild von Entwickler
Hallo Tobias,

besser ist 1.9 -> 2.2 -> 2.3
Die Update-Routinen in 2.0 werden nicht mehr gepflegt und daher nicht wirklich zu empfehlen.

Viele Grüße
Andreas