Tutorial Mahara Installation

Aus Mahoodle

Wechseln zu: Navigation, Suche

Die Instalation von Mahara setzt voraus, dass der Benutzer ein Verständnis mitbringt, wie Webapplikationen arbeiten. Diese Anleitung setzt voraus, dass die Grundlagen einen Webserver/Datenbanken aufzusetzen, vorhanden sind.

WEnn ein Debian/Ubuntu Server benutzt wird, können viele der benötigten Softwarekomponenten mit apt-get installiert werden. Wenn eine andere Linux Distribution eingesetzt wird, kann das dortige Distributionswerkzeug sicherlich auch eingesetzt werden.

Inhaltsverzeichnis

1. Grundlagen

Basic Betriebssystem

  • Linux
  • PHP 5.1.3+
  • Postgres 8.1+ oder MySQL 5.02+

PHP Erweiterungen

  • gd
  • json
  • libxml
  • session
  • pgsql oder mysqli
  • für die Netzwerkunterstützung: openssl, curl und xmlrpc
  • optional: imagick

Kann eine Windows Serverlösung benutzt werden?

Windows wir momentan nicht unterstützt. Es soll jedoch Benutzern schon gelungen sein, Mahara auf einer Windows Serverlösung zu installieren. Augenscheinlich benötigt man einen Ersatz für das 'file' Programm (vgl.https://eduforge.org/tracker/index.php?func=detail&aid=700&group_id=176&atid=739 ), und muss symlink als actual file benutzen.

Wird es in der Zukunft eine Windows Lösung geben?

Vielleicht. Aber die Entwickler haben nicht einmal eine Windows Plattform, um Mahara damit zu testen. So lautet die Antwort gerade: NEIN. Bugreports sind OK, aber es darf nicht erwartet werden, dass diese mit hoher Priorität behandelt werden.

Wie steht es mit Solaris/Mac/BSD/anderen Betriebssystemen?

If it's *nix/BSD like, we are reasonably interested in bug reports. We have a few macs floating around, so are reasonably interested in bugs there as well.

Wie sieht es mit anderen Webservern/anderen Datenbanken/anderen PHP-Versionen aus?

Es wurden bisher keine anderen Webserver getestet, hier sind Sie auf sich allein gestellt. Wenn Sie daran interessiert sind, Mahara für andere Datenbanken zu implementieren, nehmen Sie bitte mit dem Entwicklerteam Kontakt über das Forum #mahara auf. PHP 5.1+ ist erforderlich, alle höheren Versionen sollten gut klappen.

2. Get the code

You can either download a snapshot from http://git.catalyst.net.nz/gitweb?p=mahara.git;a=summary or you can check out the project from the git repo:

git clone http://git.catalyst.net.nz/mahara.git

3. Anlegen der Datenbank

Mahara benötigt eine Datenbank und der Webserver muss auf diese Datenbank zugreifen können.
Für Postgres gilt:

createdb -U (Benutzername, der benutzt wird) (databasename)

In MySQL:

mysql -Uroot
[enter password]
create database mahara;
grant all on mahara.* to 'Benutzername'@'localhost' identified by 'password';

Welches Datenbanksysten soll verwendet werden?

Die Entwickler empfehlen für maximale Stabilität ud Datenintegrität PostgreSQL. Richtig eingestellt, übertrifft PostgreSQL MySQL auf jeden Fall - die Entwickler benutzen für den Tranactionssupport InnoDB tables.

Furthermore, PostgreSQL can do DDL in transactions - that is to say BEGIN; CREATE TABLE foo(bar int); ROLLBACK; actually works how you would expect. This makes the upgrade process a lot safer, if the upgrade fails you know you won't have left your database schema in a mess that can't be automatically upgraded once the original problem is fixed.

4. Konfiguration

PHP Einstellungen

You should make sure that magic_quotes_gpc is off, and that register_globals is off. Mahara will warn you about any other unsafe or unoptimal settings when it is run. Mahara also ships with a .htaccess file that will ensure that bad settings are off.

Webserver Konfiguration

You need to ensure that your webserver is serving up the htdocs/ folder of the project root somewhere.

Mahara Konfiguration

You need to make a directory (outside the document root) and ensure the web server has write access to it. This is where Mahara will store data.

In htdocs/ is config-dist.php, you need to make a copy of this called config.php. You then need to go through the file and make changes where appropriate (including the data dir you created). The file is well commented, and there are not many settings to change.

5. Aufruf der webbasierten Installationsroutine

Once you have set up your config.php, you should now be able to navigate to the Mahara installation using your web browser. This will pop up a page stating the conditions of using Mahara, and will ask for agreement. If you agree with the conditions, click "agree" and Mahara will install itself into your database. Click continue, and you should now be at a login screen.

Die Anmeldung im System erfolgt mit dem Benutzer "admin", password "mahara". Gratulation!

Troubleshooting

Frage: Ich sehe dies hier:

Fatal error: Call to undefined function get_config() in /.../htdocs/lib/errors.php on line 122

Antwort: Sie sollten eine Kopie von config-dist.php als config.php anlegen

Frage: Während der erfolgreichen Installation, sehe ich Meldungen wie 'You are missing the XMLRPC extension

Antwort: Diese Meldungen sind Warnungen, dass erforderliche Erweiterungen für die Networking Möglichkeiten nicht installiert sind - das betrifft die Option, die es Ihrer Mahara Website erlaubt, mit anderen Moodle- oder Maharaplattformen in Verbindung zu treten. Wenn dies gewünscht wird, müssen die erforderlichen PHP Erweiterungen installiert werden. Wenn diese Option nicht gewünscht wird, kann in der Datei config.php diese Zeile:

$cfg->log_environ_targets = LOG_TARGET_SCREEN | LOG_TARGET_ERRORLOG;

wie folgt abgeändert werden:

$cfg->log_environ_targets = 0;

Frage: Ich sehe dies hier:

Parse error: syntax error, unexpected '{' in /var/www/web610/html/mahara/htdocs/init.php on line 79

Antwort: Hier benutzt der Webhost wahrscheinlich eine nicht unterstützte PHP-Version.

Persönliche Werkzeuge
Herunterladen