MediaWikiのアップグレード手順のソースを表示
←
MediaWikiのアップグレード手順
ナビゲーションに移動
検索に移動
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:導入手順]][[Category:CMS]] バージョン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.16.0 -> 1.23.5 にアップグレードを行いましたが、以前とアップグレード用ファイルが変更されていました。 cd /usr/local/apache2/htdocs/w/ php maintenance/update.php 関係ないですが、ページ編集時、Draft extention がエラーとなってしまい、処理続行できなかったので、コメントアウトしました。アップグレードが必要かも。 === Apacheを起動する === == 補足 == === ver 1.16.0 -> 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 の仕様変更があったようだが、詳細は知らない。 ==== 「特別:最近の更新」にアクセスできない ==== ver 1.16.0 -> 1.23.5 にアップグレード後、[[特別:最近の更新]] を開こうとすると、画面が真っ白となり、apache の error_log に Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2147483648 bytes) in /usr/local/apache2/htdocs/w/includes/User.php on line 2439 のようなログが表示される。php のメモリ割り当てが少ないのかと思い、php.ini の 「memory_limit = 128M」を徐々に上げていったが、解決しなかった。 試しに、php のバージョンを 5.3 系の最新版である、5.3.29 に挙げてみたらエラーが解消された。根本原因は謎。(エラー発生時は、5.3.6 を使用していた) == 参考 == *http://www.mediawiki.org/wiki/Manual:Upgrading_MediaWiki == 更新履歴 == *2014/10/13 **ver 1.23.5 へのアップグレードの記述を追記 *2010/01/10 **ページ作成
MediaWikiのアップグレード手順
に戻る。
ナビゲーション メニュー
個人用ツール
ログイン
名前空間
ページ
議論
日本語
表示
閲覧
ソースを閲覧
履歴表示
その他
検索
案内
メインページ
導入手順
CMS
Tips
仮想化
Java
ソフトウェア開発
その他
最近の更新
ツール
リンク元
関連ページの更新状況
特別ページ
ページ情報