<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="ja">
  <siteinfo>
    <sitename>Nヴァストアーカイブ</sitename>
    <dbname>xs238426_mwiki1</dbname>
    <base>https://nvast.com/mwiki/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8</base>
    <generator>MediaWiki 1.34.2</generator>
    <case>first-letter</case>
    <namespaces>
      <namespace key="-2" case="first-letter">メディア</namespace>
      <namespace key="-1" case="first-letter">特別</namespace>
      <namespace key="0" case="first-letter" />
      <namespace key="1" case="first-letter">トーク</namespace>
      <namespace key="2" case="first-letter">利用者</namespace>
      <namespace key="3" case="first-letter">利用者・トーク</namespace>
      <namespace key="4" case="first-letter">Nヴァストアーカイブ</namespace>
      <namespace key="5" case="first-letter">Nヴァストアーカイブ・トーク</namespace>
      <namespace key="6" case="first-letter">ファイル</namespace>
      <namespace key="7" case="first-letter">ファイル・トーク</namespace>
      <namespace key="8" case="first-letter">MediaWiki</namespace>
      <namespace key="9" case="first-letter">MediaWiki・トーク</namespace>
      <namespace key="10" case="first-letter">テンプレート</namespace>
      <namespace key="11" case="first-letter">テンプレート・トーク</namespace>
      <namespace key="12" case="first-letter">ヘルプ</namespace>
      <namespace key="13" case="first-letter">ヘルプ・トーク</namespace>
      <namespace key="14" case="first-letter">カテゴリ</namespace>
      <namespace key="15" case="first-letter">カテゴリ・トーク</namespace>
      <namespace key="828" case="first-letter">モジュール</namespace>
      <namespace key="829" case="first-letter">モジュール・トーク</namespace>
      <namespace key="2300" case="first-letter">Gadget</namespace>
      <namespace key="2301" case="first-letter">Gadget talk</namespace>
      <namespace key="2302" case="case-sensitive">Gadget definition</namespace>
      <namespace key="2303" case="case-sensitive">Gadget definition talk</namespace>
    </namespaces>
  </siteinfo>
  <page>
    <title>メインページ</title>
    <ns>0</ns>
    <id>1</id>
    <revision>
      <id>449</id>
      <parentid>447</parentid>
      <timestamp>2022-09-11T11:57:07Z</timestamp>
      <contributor>
        <username>NVadmin</username>
        <id>1</id>
      </contributor>
      <comment>/* カテゴリ */</comment>
      <model>wikitext</model>
      <format>text/x-wiki</format>
      <text xml:space="preserve" bytes="23010">== &lt;span style="font-size:32px;"&gt;Nヴァストアーカイブへようこそ！&lt;/span&gt; ==

こちらには、いろいろな「覚え」を記載しておくつもりです。&lt;br&gt;
年のせいか、何でもすぐに忘れてしまうので「備忘録」として活用したい。&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;

== 各種ページへのリンク ==


=== カテゴリ ===
&lt;div class="mw-customtoggle-myHelp koyama-button-h" style="text-align:center; width:145px; font-size:12px;"&gt;カテゴリ表示／非表示&lt;/div&gt;&lt;/div&gt;
{| class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myHelp" 
| style="width: 34%"| 1. [[○○○○○]]　　　　|| style="width: 33%"| 6. [[○○○○○]] ||style="width: 36%"| 11. [[○○○○○]]
|-
| 2. [[#MediaWikiインストール|レンタルサーバーへのMediaWikiインストール]]　　　|| 7. [[○○○○○]] || 12. [[○○○○○]] 　　
|-
| 3. [[#MediaWikiの各種設定|MediaWikiの各種設定について]] || 8. [[○○○○○]] || 13. ○○○○○
|-
| 4. [[MediaWikiヘルプ]]　　　　|| 9. [[雑多な情報]] || 14. ○○○○○
|-
| 5. [[○○○○○]]　　　　|| 10. [[○○○○○]] || 15. [[BackUp Page01|編集者情報共有ページバックアップへ]]
|-
| 　
|}
----
&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;

=== &lt;span style="font-size:22px;"&gt;MediaWikiインストール&lt;/span&gt; ===
:「MediaWiki」は「Wikipedia」と同じ枠組みを簡単に作れるすばらしいソフトです。
:「よーしオイラも自前のWikipediaを構築してみよう！」と思い立って始めたのは良かったのですが、
:Web上の情報が少ないのと、たまにあっても「古～い」情報だったり、「Linuxコマンド堪能なお方」による、難解なコマンド羅列のご説明だったりして困りました。
:さらに、本家本元の「MediaWiki」サイトのヘルプが、これまた日本語とは思えない「超難解！」。 Linuxコマンド以上の難易度であります。orz
:そこで「まずはやってみよう」と始めて、さまざまな「試行錯誤」を繰り返し、なんとかできるようになりました(Google様と、行き詰まったときに気晴らしに読んだ小説・マンガのおかげです)。
&lt;br&gt;
:以下のリンクは「試行錯誤」の結果です。まだ、良く分かっていないところもありますが、同じような境遇の方のお役に立てれば幸いです。
:1. [[さくらのレンタルサーバーにインストール|さくらのレンタルサーバー]]
:2. [[MediaWikiをXServerにインストール|XServer]] (このサイトを置いているレンタルサーバーです)
:3. [[MediaWikiをStarFreeサーバーにインストール|StarFreeサーバー]]
:4. [[MediaWikiをXREAサーバーにインストール|XREAサーバー]]
:5. [[MediaWikiとXFreeサーバーについて|XFreeサーバーについて]](未インストール)
&lt;br&gt;&lt;br&gt;
=== &lt;span style="font-size:22px;"&gt;MediaWikiの各種設定&lt;/span&gt; ===
:インストールが終わったら、初期設定やその他の設定をすると快適に使えるようになります。
:主な設定項目は以下のとおりです。
:1. [[メインページだけは見せて、他は非公開にする|「メインページ」以外を非公開にする]]
:2. [[アカウントの登録と権限設定|「アカウントの登録」と「権限設定」]]
:3. [[「メインページ」のカスタマイズ|「メインページ」のカスタマイズ]]
:4. [[「サイドバー(左のメニュー)」のカスタマイズ|「サイドバー(左のメニュー)」のカスタマイズ]]
&lt;br&gt;&lt;br&gt;&lt;br&gt;
=== &lt;span style="font-size:22px;"&gt;MediaWikiのバージョンアップ&lt;/span&gt; ===
:MediaWiki の新バージョンが出ています。Ver-1.35から「Visual Editor」が使えるようになったとのことです。
:現時点(2021/12/17)での最新はVer-1.37です。
&lt;br&gt;
:以下にバージョンアップ手順を記録します(ちゃんとVerUpできるか不明ですが...)
&lt;br&gt;
:1. ファイル転送
::[https://www.mediawiki.org/wiki/Manual:Upgrading/ja MediaWikiのヘルプ]を見ると、まず「ファイル転送しろ」となっています。
:::「WinSCP」でFTP転送できるので、これでファイル転送する。
:2. 準備
::上記ヘルプには次に「準備」の項目があり、そこには以下の記述がある。
::MediaWikiに含まれるUPGRADE テキストファイルを読みましょう。
&lt;br&gt;
::This file provides an overview of the MediaWiki upgrade process.
::このファイルは、MediaWikiのアップグレードプロセスの概要を提供します。
::For help with specific problems, you should check:
::特定の問題のヘルプについては、以下を確認する必要があります。
&lt;br&gt;
::the docs at https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents
::https：//www.mediawiki.org/wiki/Special：MyLanguage/Help：Contents のドキュメント
::the mediawiki-l mailing list archive at https://lists.wikimedia.org/pipermail/mediawiki-l/
::mediawiki-lメーリングリストアーカイブ  https://lists.wikimedia.org/pipermail/mediawiki-l/
::and the bug tracker at https://phabricator.wikimedia.org/  … for information and workarounds to common issues.
::およびhttps://phabricator.wikimedia.org/のバグトラッカー  …一般的な問題の情報と回避策について。
&lt;br&gt;
:この上に書かれている、3個のURLだが、英語堪能な方以外は無視して良いだろう。というか読めないんだからどーしようもない。
:運良く、自分のトラブルに該当するものを見つけられて、何とか意味が分かれば「それは祝着でしたな！」となる。
&lt;br&gt;

====概要====
::We provide comprehensive documentation on upgrading to the latest version of the software at https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Upgrading.
::ソフトウェアの最新バージョンへのアップグレードに関する包括的なドキュメントは、https：//www.mediawiki.org/wiki/Special：MyLanguage / Manual：Upgradingで提供されています。
&lt;br&gt;
::Important: Upgrading from releases older than two LTS release is not supported anymore.
::重要：2つのLTS&lt;ref&gt;LTS:Long Term Support 詳細説明は[https://linuc.org/study/knowledge/453/ こちら参照]&lt;/ref&gt;版より古いVersionからのアップグレードは不可能となりました。
::If you want to upgrade from an old version, please upgrade to a more recent LTS version first, then to this version.
::古いバージョンからアップグレードする場合は、最初に新しいLTS Versionにアップグレードした後に、このバージョン(1.37)にアップグレードしてください。
::Currently any upgrade from any version older than 1.27 will fail.
::現在、Version-1.27より古いバージョンからのアップグレードは失敗します。
:と言っているが、今回は旧バージョンが「1.34.2」なので問題ないと思われる。
&lt;br&gt;
::1. 要件を確認する(右の「展開する」クリックで詳細表示)
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
:::MediaWiki 1.37 の要件は以下の通りです:
:::PHP 7.3.19/7.4.3+
:::MySQL 5.5.8+ (または同等の MariaDB)
:::これは、5.7だからOK。
&lt;/div&gt;
&lt;br&gt;
::2. RELEASE-NOTES ファイルを読む
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::Before doing anything, stop and consult the release notes supplied with the new version of the software.
::何かをする前に、一度止まって、ソフトウェアの新しいバージョンに付属しているリリースノートを参照してください。
::These detail bug fixes, new features and functionality, and any particular points that may need to be noted during the upgrade process.
::これらの詳細なバグ修正、新しい特長と新機能、そして特定のポイントなどは、アップグレードプロセス中に注意する必要があります。
&lt;/div&gt;
&lt;br&gt;
::3. UPGRADE ファイルを読む → これって「最新Verのファイル解凍して、新たなフォルダーを作成しそのフォルダーにコピーする」という意味だろうか？→いや違う。
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::Download the files for the new version of the software. These are available as a compressed "tar" archive from the Wikimedia Download Service
::(https://releases.wikimedia.org/mediawiki/).
&lt;br&gt;
::ソフトウェアの新しいバージョンのファイルをダウンロードします。 これらは、ウィキメディアダウンロードサービスから圧縮された「tar」アーカイブとして入手できます。
::（https://releases.wikimedia.org/mediawiki/）。
&lt;br&gt;
::You can also obtain the new files directly from our Git source code repository.
::新しいファイルは、Gitソースコードリポジトリから直接入手することもできます。
::Replace the existing MediaWiki files with the new. You should preserve the LocalSettings.php file and the "extensions" and "images" directories.
::既存のMediaWikiファイルを新しいものに置き換えます。 LocalSettings.phpファイルと「extensions」および「images」ディレクトリを保持する必要があります。
::Depending upon your configuration, you may also need to preserve additional directories, including a custom upload directory ($wgUploadDirectory), deleted file archives, and any custom skins.
::構成によっては、カスタムアップロードディレクトリ（$ wgUploadDirectory）、削除されたファイルアーカイブ、カスタムスキンなどの追加のディレクトリを保持する必要がある場合もあります。
&lt;/div&gt;
&lt;br&gt;
::4. 既存のファイルとデータベースをバックアップする
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::It is imperative that, prior to attempting an upgrade of the database schema, you take a complete backup of your wiki database and files and verify it.
::データベーススキーマのアップグレードを試みる前に、wikiデータベースとファイルの完全なバックアップを取り、それを検証することが不可欠です。
::While the upgrade scripts are somewhat robust, there is no guarantee that things will not fail, leaving the database in an inconsistent state.
::アップグレードスクリプトはある程度堅牢ですが、失敗しないという保証はありませんし、データベースが一貫性のない状態になってしまうこともあります。
&lt;br&gt;
::https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Backing_up_a_wiki is an overview of the backup process.
::「[https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki/ja 上記URL]」には、バックアッププロセスの概要が記載されています。
::You should also refer to the documentation for your database management system for information on backing up a database,
::データベースのバックアップに関する情報は、データベース管理システムのドキュメントを参照ください。
::and to your operating system documentation for information on making copies of files.
::そして、ファイルのコピーについては、使用しているOSのドキュメントを参照してください。

&lt;/div&gt;
&lt;br&gt;
::5. 新しいファイルを展開する
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::Download the files for the new version of the software. These are available as a compressed "tar" archive from the Wikimedia Download Service
::(https://releases.wikimedia.org/mediawiki/).
::ソフトウェアの新しいバージョンのファイルをダウンロードします。 これらは、ウィキメディアダウンロードサービスから圧縮された「tar」アーカイブとして入手できます。
::（https://releases.wikimedia.org/mediawiki/）。
&lt;br&gt;
::You can also obtain the new files directly from our Git source code repository.
::新しいファイルは、Gitソースコードリポジトリから直接入手することもできます。
::Replace the existing MediaWiki files with the new. You should preserve the LocalSettings.php file and the "extensions" and "images" directories.
::既存のMediaWikiファイルを新しいものに置き換えます。 LocalSettings.phpファイルと「extensions」および「images」ディレクトリを保持する必要があります。
::Depending upon your configuration, you may also need to preserve additional directories, including a custom upload directory ($wgUploadDirectory), deleted file archives, and any custom skins.
::構成によっては、カスタムアップロードディレクトリ（$ wgUploadDirectory）、削除されたファイルアーカイブ、カスタムスキンなどの追加のディレクトリを保持する必要がある場合もあります。
&lt;/div&gt;
&lt;br&gt;
::6. 拡張機能をアップグレードする
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::Extensions usually need to be upgraded at the same time as the MediaWiki core.
::拡張機能は通常、MediaWikiコアと同時にアップグレードする必要があります。
::In MediaWiki 1.14 some extensions were migrated into the core.
::MediaWiki 1.14では、いくつかの拡張機能がコアに移行されました。
::Please see the HISTORY section "Migrated extensions" and disable these extensions in your LocalSettings.php
::HISTORYセクションの「移行された拡張機能」を参照し、LocalSettings.phpでこれらの拡張機能を無効にしてください
&lt;/div&gt;
&lt;br&gt;
::7. 更新スクリプトを実行してデータベースをチェックする
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::コマンドラインからデータベースのアップグレードを実行する、ということですかね。
::From the command line, browse to the "maintenance" directory and run the
::update.php script to check and update the schema.
::コマンドラインから「maintenance」ディレクトリに移動して、「update.php」を実行することでアップデートできるようだ。
::This will insert missing tables, update existing tables, and move data around as needed.
::In most cases, this is successful and nothing further needs to be done.
::この「update.php」スクリプトの実行で、テーブル、既存のテーブルを更新し、必要に応じてデータを移動します。
::ほとんどの場合、これは成功するので、これ以上何もする必要はありません。
&lt;br&gt;
::If you need to separate out the schema changes so they can be run by someone with more privileges,
::then you can use the --schema option to produce a text file with the necessary commands.
::You can use --schema, --noschema, $wgAllowSchemaUpdates as well as proper database permissions to enforce this separation.
::より多くの特権を持つ誰かが実行できるようにスキーマの変更を分離する必要がある場合は、次に、-schemaオプションを使用して、必要なコマンドを含むテキストファイルを作成できます。
::--schema、-noschema、$ wgAllowSchemaUpdates、および適切なデータベース権限を使用して、この分離を強制できます。
&lt;/div&gt;
&lt;br&gt;
::8. アップグレードをテストする
&lt;div class="mw-collapsible mw-collapsed" style="margin:0 1em 0 3em"&gt;
::It makes sense to test your wiki immediately following any kind of maintenance procedure,
::あらゆる種類のメンテナンス手順の直後にウィキをテストすることは理にかなっています。
::and especially after upgrading; check that page views and edits work normally, that special pages continue to function, etc.,
::特にアップグレード後。 ページの表示と編集が正常に機能すること、特別なページが引き続き機能することなどを確認します。
::and correct any errors and quirks which reveal themselves.
::そして、自分自身を明らかにするエラーや癖を修正します。
::You should also test any extensions, and upgrade these if necessary.
::また、拡張機能をテストし、必要に応じてアップグレードする必要があります。
&lt;/div&gt;
&lt;br&gt;
::9. Remove leftovers from old installations (古いインストールから残り物を削除します)
:となっている。

===Configuration settings(構成設定)を確認してください===
::The names of configuration variables, and their default values and purposes, can change between release branches,
::構成変数の名前、およびそれらのデフォルト値と目的は、リリースブランチ間で変更できます。
::e.g. $wgDisableUploads in 1.4 is replaced with $wgEnableUploads in later versions.
::例えば 1.4の$ wgDisableUploadsは、それ以降のバージョンでは$ wgEnableUploadsに置き換えられています。
::When upgrading, consult the release notes to check for configuration changes which would alter the expected behavior of MediaWiki.
::アップグレードするときは、リリースノートを参照して、MediaWikiの予想される動作を変更する構成の変更を確認してください。
&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;
::バックアップしろ
::その概要は[https://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki/ja Manual:ウィキのバックアップ]に記載してある。
&lt;br&gt;
:データベースのバックアップ手順
::コマンドラインでmysqldumpを実行する
::最も簡便なのは、MySQLに標準で付属するmysqldumpを用いることである。これは、バックアップ対象のデータベース名やテーブル名を指定してダンプファイルを作成することができるコマンドラインアプリケーションである。
&lt;br&gt;
::まずLocalSettings.phpに次の行を挿入します
&lt;br&gt;
::$wgReadOnly = 'Dumping Database, Access will be restored shortly';
::これは、ダンプが完了するとすぐに削除することができます。
&lt;br&gt;
::Linux/UNIX シェル上で実行するコマンドの例:
&lt;br&gt;
::mysqldump -h hostname -u userid -p --default-character-set=whatever dbname &gt; backup.sql
&lt;br&gt;
::hostname、userid、whatever、dbnameを適宜変更します。 4つはすべて LocalSettings.php (LSP) ファイルにあります。 hostname may be found under $wgDBserver; by default it is localhost. useridは $wgDBuser の下にありますが、whatever は ::$wgDBTableOptions の下にあり、DEFAULT CHARSET= の後にリストされます。 whateverが指定されていない場合、mysqldumpは既定のutf8を使用するか、古いバージョンのMySQLを使用する場合はlatin1を使用します。 dbnameは $wgDBname にあります。 
::コマンドラインからこの行を実行すると、mysqldumpはサーバーのパスワードを要求します (LSPの Manual:$wgDBpassword にあります)。
&lt;br&gt;
::コマンドライン パラメーターの完全な一覧については mysqldump を参照してください。
&lt;br&gt;
::より小さい出力ファイルの場合、mysqldump の出力を以下のように gzip にパイプすることもできます
&lt;br&gt;
::mysqldump -h hostname -u userid -p dbname | gzip &gt; backup.sql.gz
::Some newer versions of MySQL might show an error about tablespaces and PROCESS privilege. MediaWiki does not use tablespaces. The solution is to add the --no-tablespaces option to the command:
&lt;br&gt;
::mysqldump --no-tablespaces -h hostname -u userid -p dbname | gzip &gt; backup.sql.gz
::同様のmysqldumpコマンドを使用して、代わりに--xmlパラメータを含めることでXML出力を生成することができます。
&lt;br&gt;
::mysqldump -h hostname -u userid -p --xml dbname &gt; backup.xml
::gzipにパイプでファイルを圧縮する
&lt;br&gt;
::mysqldump -h hostname -u userid -p --xml dbname | gzip &gt; backup.xml.gz
::また、画像、ロゴ、拡張機能など、必要に応じてwikiのファイルシステムコンポーネントをバックアップすることを忘れないでください
&lt;br&gt;&lt;br&gt;
&lt;br&gt;
:ファイルシステムのバックアップ
::データベースに保存するよりもファイルシステムに保存した方が適切であるような要素についてはファイルシステムの中に保存されます。
::例えばサイトの設定ファイル ($1、$2 (最終的に 1.23 で除去されました))や画像ファイル (削除された画像、サムネイル、数式やSVGファイルも含む)、外装のカスタマイズ設定、拡張機能ファイルなどが該当します。
::The most important of these are LocalSettings.php and uploaded files in the images/ directory (including deleted files, thumbnails, and rendered math and SVG images, if applicable).
&lt;br&gt;
::これらのファイルをバックアップするのに最適な方法は、.tarのようなアーカイブファイル（必要が有れば圧縮して）に纏めることです。WindowsであればWinZipや7-Zipといったアプリケーションが使用できます。
&lt;br&gt;
::Linux の場合でウィキが /srv/www/htdocs/wiki に格納されているとすると
&lt;br&gt;
::tar zcvhf wikidata.tgz /srv/www/htdocs/wiki
::It should be possible to backup the entire "wiki" folder in "htdocs" if using XAMPP.
&lt;br&gt;&lt;br&gt;
:Configuration files
::LocalSettings.php is the most important of these, but a wiki might also have things like .htaccess or other web server configuration files that should be backed up.
&lt;br&gt;
:Uploaded files
::Files uploaded to the wiki are by default put into the images/ directory, separated into subdirectories such as images/8/8f. There are also other directories such as images/archive/ and images/deleted/. These should all be backed up.
&lt;br&gt;
T::he images/thumb/ can be backed up along with everything else, but can optionally be excluded in order to save backup space.
::This directory stores the derived thumbnails of images and other files; generally multiple thumbnails per wiki file.
::After restoring from backup, these thumbnails will be recreated as required (although depending on $wgGenerateThumbnailOnParse this may need to be a manual process).

&lt;br&gt;&lt;br&gt;

:こちら↓の説明が分かりやすい。
:[https://dococo.jp/index.php?title=MediaWiki%E3%83%90%E3%83%83%E3%82%AF%E3%82%A2%E3%83%83%E3%83%97/%E3%83%AA%E3%82%B9%E3%83%88%E3%82%A2%E3%82%92%E5%88%86%E3%81%8B%E3%82%8A%E3%82%84%E3%81%99%E3%81%8F%E8%AA%AC%E6%98%8E MediaWikiバックアップ/リストアを分かりやすく説明]
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
----
脚注：&lt;references/&gt;
&lt;br&gt;&lt;br&gt;</text>
      <sha1>mmc46oyc6ikh195m58jmmamkobjdxth</sha1>
    </revision>
  </page>
</mediawiki>
