Mediawiki 1.10.0
Vorbedingungen
Vorbedingungen für Mediawiki 1.10:
- Apache
- PHP >= 5.0 (5.1 empfohlen)
- phpMyAdmin
- MySQL >= 4.0
- Apache und MySQL müssen im Runlevel-Editor aktiviert sein
- ImageMagick oder "gd" (zum automatischen Verkleinern der Software-Bilder)
Vorbedingungen für Mediawiki unter Ubuntu 7.04 Feisty Fawn
- apache2
- php5
- php5-cli (für einen Update mit dem Skript "update.php")
- mysql-server
- php5-mysql
- phpmyadmin
Installation
Quelle: http://sourceforge.net/projects/wikipedia/
# tar xzf mediawiki-1.10.0.tar.gz # mv mediawiki-1.10.0 /var/www/stoneswiki # cd /var/www # chown -R wiki:wiki stoneswiki # cd stoneswiki # chmod a+w config && chmod 777 images
Anlegen der Datenbank "stoneswiki" durch Aufruf von http://localhost/wiki/config
Site name: Stoneswiki Language: en - English Sysop account name: WikiSysop password: MySQL server: localhost Database name: stoneswiki DB username: root DB password: Database charset: Backwards-compatible UTF-8 Super user: root Password: [leer lassen!] MediaWiki 1.10.0 installation Please include all of the lines below when reporting installation problems. PHP 5.2.1 installed Found database drivers for: MySQL PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title) Have XML / Latin1-UTF-8 conversion support. Session save path appears to be valid. PHP's memory_limit is 128M. Couldn't find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used. Found GNU diff3: /usr/bin/diff3. Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads. Found GD graphics library built-in. Installation directory: /var/www/stoneswiki Script URI path: /stoneswiki Environment checked. You can install MediaWiki. Generating configuration file... Database type: MySQL Loading class: DatabaseMysql Attempting to connect to database server as root...success. Connected to 5.0.38-Ubuntu_0ubuntu1-log Database stoneswiki exists Creating tables... done. Initializing data... Created sysop account WikiSysop. Creating LocalSettings.php... Installation successful! Move the config/LocalSettings.php file into the parent directory, then follow this link to your wiki.
# cd /var/www/stoneswiki/config # mv LocalSettings.php ..
Für den Zugriff von anderen Rechnern her muss in der Firewall der Zugriff auf den HTTP-Server erlaubt werden.
Update von Mediawiki 1.5.6 auf 1.10.0
- Lesen der Upgrade-Datei, die in der Installation von Mediawiki 1.10 enthalten ist], sowie der Versionshinweise.
- Überprüfen der Anforderungen
- Sicherung der bestehenden Datenbank "mikiwiki" und der zugehörigen Dateien im Verzeichnis "/mik/www/wiki".
- Sicherung der bestehenden Datenbank "mikiwiki":
# /usr/bin/mysqldump -u root --password=<Passwort> --quick mikiwiki | bzip2 -c > /tmp/DBSAVEmikiwiki.$(date -I).sql.bz2 - Sicherung der Dateien im Verzeichnis "/mik/www/wiki":
# cd /mik/www
# mv wiki wiki.BACKUP
- Sicherung der bestehenden Datenbank "mikiwiki":
- Herunterladen und Entpacken der neuen Dateien
- Herunterladen der neuen Dateien:
$ cd /tmp
$ wget http://download.wikimedia.org/mediawiki/1.10/mediawiki-1.10.0.tar.gz - Löschen der bestehenden Installation:
$ sudo rm -rf /mik/www/wiki - Entpacken der neuen Dateien:
$ tar xzf mediawiki-1.10.0.tar.gz
$ sudo mv mediawiki-1.10.0 /mik/www/wiki
- Herunterladen der neuen Dateien:
- Ausführen des Updateskripts, das fehlende Tabellen einfügt, bestehende Tabellen aktualisiert und wo nötig Daten verschiebt.
- Erzeugen der Datei "AdminSettings.php" im Hauptverzeichnis des Wiki und Aktualisieren der enthaltenen Informationen:
$ cd /mik/www/wiki
$ cp AdminSettings.sample AdminSettings.php
$ vi AdminSettings.php
$wgDBadminuser = 'root';
$wgDBadminpassword = 'xxxxxx'; - Hinstellen der bisherigen Datei "LocalSettings.php":
$ cd /mik/www/wiki.BACKUP
$ cp -i LocalSettings.php /mik/www/wiki - Hinstellen der bisherigen Bilder:
cd /mik/www/wiki.BACKUP/images
$ cp -pr * /mik/www/wiki/images - Durchführen des Updates:
$ cd /mik/www/wiki/maintenance
$ php update.php
- Erzeugen der Datei "AdminSettings.php" im Hauptverzeichnis des Wiki und Aktualisieren der enthaltenen Informationen:
- Erneuern der Erweiterungen
- Überprüfen der Konfigurationseinstellungen. Die Namen von Variablen und ihre Standardwerte und -zwecke können zwischen den Versionen abweichen. Dazu sollten die [1] gelesen werden.
- Testen der neuen Version
- Aufruf der Versionsseite unter http://<Domain>/wiki/index.php/Spezial:Version
- Überprüfen der Grundfunktionen wie Anzeigen, Bearbeiten, Erzeugen und Löschen.
Die Ausgabe des Updateskripts beim Update von Mediawiki 1.5.6 auf 1.10.0 im Einzelnen:
MediaWiki 1.10.0 Updater Going to run database updates for mikiwiki Depending on the size of your database this may take a while! Abort with control-c in the next five seconds...0 ...hitcounter table already exists. ...querycache table already exists. ...objectcache table already exists. ...categorylinks table already exists. ...logging table already exists. ...user_newtalk table already exists. Creating transcache table...ok ...trackbacks table already exists. Creating externallinks table...ok Creating job table...ok Creating langlinks table...ok Creating querycache_info table...ok Creating filearchive table...ok Creating querycachetwo table...ok ...have ipb_id field in ipblocks table. ...have ipb_expiry field in ipblocks table. ...have rc_type field in recentchanges table. ...have rc_ip field in recentchanges table. ...have rc_id field in recentchanges table. ...have rc_patrolled field in recentchanges table. Adding rc_old_len field to table recentchanges...ok ...have user_real_name field in user table. ...have user_token field in user table. ...have user_email_token field in user table. Adding user_registration field to table user...ok ...have log_params field in logging table. ...have ar_rev_id field in archive table. ...have ar_text_id field in archive table. ...have page_len field in page table. ...have rev_deleted field in revision table. ...have img_width field in image table. ...have img_metadata field in image table. ...have img_media_type field in image table. ...have ss_total_pages field in site_stats table. ...have iw_trans field in interwiki table. Adding ipb_range_start field to table ipblocks...ok Adding ss_images field to table site_stats...ok Adding ipb_anon_only field to table ipblocks...ok Adding ipb_enable_autoblock field to table ipblocks...ok Adding user_newpass_time field to table user...ok Adding user_editcount field to table user...ok Adding rc_deleted field to table recentchanges...ok Adding log_id field to table logging...ok Adding log_deleted field to table logging...ok Adding ar_deleted field to table archive...ok Adding ipb_deleted field to table ipblocks...ok Adding fa_deleted field to table filearchive...ok Adding rev_len field to table revision...ok Adding ar_len field to table archive...ok Adding rev_parent_id field to table revision...ok ...page_restrictions table does not exist, skipping new field patch ...already have interwiki table ...indexes seem up to 20031107 standards Already have pagelinks; skipping old links table updates. ...image primary key already set. The watchlist table is already set up for email notification. ...watchlist talk page rows already present ...user table does not contain old email authentication field. Logging table has correct title encoding. ...page table already exists. revision timestamp indexes already up to 2005-03-13 ...rev_text_id already in place. ...page_namespace is already a full int (int(11)). ...ar_namespace is already a full int (int(11)). ...rc_namespace is already a full int (int(11)). ...wl_namespace is already a full int (int(11)). ...qc_namespace is already a full int (int(11)). ...log_namespace is already a full int (int(11)). ...already have pagelinks table. Creating templatelinks table... Populating... Done. Please run maintenance/refreshLinks.php for a more thorough templatelinks update. No img_type field in image table; Good. Already have unique user_name index. ...user_groups table already exists. ...user_groups is in current format. Making wl_notificationtimestamp nullable... ok Adding timestamp key on logging table... ok Setting page_random to a random value on rows where it equals 0...changed 0 rows Checking for additional recent changes indices... ...index on ( rc_namespace, rc_user_text ) not found; creating ...index on ( rc_user_text, rc_timestamp ) not found; creating Creating redirect table...ok Checking for backlinking indices... Checking if pagelinks index pl_namespace includes field pl_from... ...index pl_namespace on table pagelinks has no field pl_from; adding Creating page_restrictions table...ok Migrating old restrictions to new table...ok Deleting old default messages (this may take a long time!)...Done Checking site_stats row...ok. Purging caches...done. Done.