「MediaWikiのアップグレード手順」の版間の差分

提供:Software Development Memo
ナビゲーションに移動 検索に移動
35行目: 35行目:


=== Apacheを起動する ===
=== Apacheを起動する ===
== 補足 ==
=== ver 1.15.1 -> 1.23.5 にアップグレード時の注意事項 ===
公式サイトに記載はありますが、念のため備忘として残します。
==== Profilerのエラー ====
【事象】
ページアクセス時、下記のエラーが出る。操作一切不可。
Fatal error: Cannot redeclare wfProfileIn() (previously declared in /usr/local/apache2/htdocs/w/includes/profiler/Profiler.php:33) in /usr/local/apache2/htdocs/w/includes/ProfilerStub.php on line 24
【対処】
ファイルを移動。
/usr/local/apache2/htdocs/w/
mv StartProfiler.php StartProfiler.orig.php
Profilerが何なのかは知りません。
==== skinのエラー ====
【事象】
画面上部に、常に下記の Warning が出る。
Warning: A skin using autodiscovery mechanism, MySkin, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
Warning: A skin using autodiscovery mechanism, Simple, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
Warning: A skin using autodiscovery mechanism, Chick, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
Warning: A skin using autodiscovery mechanism, KindofBlue, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
Warning: A skin using autodiscovery mechanism, Standard, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
Warning: A skin using autodiscovery mechanism, Nostalgia, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303
【対処】
現状の skins フォルダを消して、新規の skins フォルダを上書き。
当サイトは、スキンは vector しか使用していないので、これで問題なし。skin の仕様変更があったようだが、詳細は知らない。


== 参考 ==
== 参考 ==

2014年10月13日 (月) 09:44時点における版

バージョン1.15.1へのアップグレード手順を示します。

手順

DBとWebのデータをバックアップする

DBバックアップコマンド例

mysqldump -u <MYSQL_USER> -p <DB_NAME> > <DUMP_NAME>

Apacheを終了する

終了は必須ではありませんが、トラブル防止のために実施しました。

新たなMediaWikiのアーカイブファイルを既存ディレクトリに上書きする

コマンド例

tar zxvf mediawiki-1.15.1.tar.gz -C <APACHE_HOME>/htdocs/ --strip-components=1

AdminSettings.phpをコマンドラインから実行する(1.15.1 の場合)

AdminSettings.phpは、ブラウザから実行できません。

コマンド例(maintenanceディレクトリに移動してください)

$ php update.php --aconf ../AdminSettings.php

エラーメッセージが出る場合は、AdminSettings.phpの設定が不適切であるかもしれません。

update.phpをコマンドラインから実行する(1.23.5 の場合)

ver 1.15.1 -> 1.23.5 にアップグレードを行いましたが、以前とアップグレード用ファイルが変更されていました。

cd /usr/local/apache2/htdocs/w/
php maintenance/update.php

関係ないですが、ページ編集時、Draft extention がエラーとなってしまい、処理続行できなかったので、コメントアウトしました。アップグレードが必要かも。

Apacheを起動する

補足

ver 1.15.1 -> 1.23.5 にアップグレード時の注意事項

公式サイトに記載はありますが、念のため備忘として残します。

Profilerのエラー

【事象】

ページアクセス時、下記のエラーが出る。操作一切不可。

Fatal error: Cannot redeclare wfProfileIn() (previously declared in /usr/local/apache2/htdocs/w/includes/profiler/Profiler.php:33) in /usr/local/apache2/htdocs/w/includes/ProfilerStub.php on line 24

【対処】

ファイルを移動。

/usr/local/apache2/htdocs/w/
mv StartProfiler.php StartProfiler.orig.php

Profilerが何なのかは知りません。

skinのエラー

【事象】

画面上部に、常に下記の Warning が出る。

Warning: A skin using autodiscovery mechanism, MySkin, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

Warning: A skin using autodiscovery mechanism, Simple, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

Warning: A skin using autodiscovery mechanism, Chick, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

Warning: A skin using autodiscovery mechanism, KindofBlue, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

Warning: A skin using autodiscovery mechanism, Standard, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

Warning: A skin using autodiscovery mechanism, Nostalgia, was found in your skins/ directory. The mechanism will be removed in MediaWiki 1.25 and the skin will no longer be recognized. See https://www.mediawiki.org/wiki/Manual:Skin_autodiscovery for information how to fix this. [Called from Skin::getSkinNames in /usr/local/apache2/htdocs/w/includes/Skin.php at line 74] in /usr/local/apache2/htdocs/w/includes/debug/Debug.php on line 303

【対処】

現状の skins フォルダを消して、新規の skins フォルダを上書き。

当サイトは、スキンは vector しか使用していないので、これで問題なし。skin の仕様変更があったようだが、詳細は知らない。


参考

更新履歴

  • 2014/10/13
    • ver 1.23.5 へのアップグレードの記述を追記
  • 2010/01/10
    • ページ作成