Manual:Installing on MoWeS Portable (Windows)/ja

From MediaWiki.org
Jump to: navigation, search
Wikimedia-logo-meta.png

This page was moved from MetaWiki.
It probably requires cleanup – please feel free to help out. In addition, some links on the page may be red; respective pages might be found at Meta. Remove this template once cleanup is complete.

Contents

MoWeS Portable(旧WOS Portable)は、USBメモリ上で動作するウィキとしてMediaWikiを動作させる一つの簡単な方法です。このパッケージはCH Softwareにより提供されています。MoWeS Portableは追加のドライブ名を必要とせず、解凍後すぐに実行させることができます。つまり、USBメモリをWindowsコンピュータに差し込むだけで、ウィキサーバがブラウザ内で動作し始めます。

[edit] 必要容量

MoWeS Portableパッケージは完全なApache、PHP、MySQLサーバであり、自動で設定してサーバを起動するインストーラが付属しています。制限版(Small Edition)であればたったの20MBしか必要ではありません。完全版でも空の状態のウィキで60MBも占めません。ウィキの内容が増えた場合、SQLキャッシュが10MB程度余分に必要です。メモリスティックの容量が限られている場合は、ウィキの内容を含んでいるMoWeSフォルダを圧縮することができます。圧縮後のフォルダサイズは60~70%ほど縮みます。

[edit] インストール

MoWeS Portableは書き込み可能なドライブやフォルダから実行させることができます。初回起動時には、MoWeSはカレントディレクトリに基づいてサーバのパスを設定します。その後起動する場合は毎回、新しいディレクトリやフォルダに移動されたかどうかを確認し、適切なパスへと修正します。

  1. まず初めにMoWeS mixerのサイトへ行き、ソフトウェアをダウンロードします。
    • 初めてダウンロードする場合は、"do not have a MoWeS Portable II package"を選びます。
    • ApacheとPHPのバージョンを選択します。 * "Small Edition"でも、PHP4、PHP5ともにMediaWikiはきちんと動作するはずです。MediaWikiの他利用したいソフトウェアがあれば、"application software"から選択します。
(*) この方法は次の環境下でテストされました。
MediaWiki 1.6.1, WOS Portable SE] 1.1.1 (Apache] 2.0.5, PHP 5.1.2 and 4.4.1, MySQL 4.1.18-nt)
MediaWiki 1.7.1, WOS 1.1.2 (Apache 2.2.0, PHP 5.1.2, MySql 5.0.18-nt)
MediaWiki 1.9.2, WOSX (with WOS 1.1.2)
MediaWiki 1.10.1, Apache 2.2.4, PHP 5.2.3, MySQL 5.0.41
…しかしながら最適なアプローチは、入手可能な最新版を用いるということです。上に挙げたパッケージは、すでにより新しいバージョンへ置き換えられ、もう入手できなくなっているためです。
MediaWikiを後から加えることもできますが、すこし難しくなります。
  1. インストールするドライブに行きます。普通はUSBドライブを選択することになりますが、ハードディスクにインストールしたい場合は、任意のディレクトリから開いたり、substコマンドによって仮想ディスクを作ったりすることができます。
    subst W: "C:\Temp\MyWikiOnAStick"
  2. 配布ファイルを解凍します。MoWeS Portableをルートディレクトリに解凍し、MediaWikiをwwwのサブフォルダへ解凍します。サブディレクトリを'w'へリネームすると便利です。このようになります。
    W:\
    W:\apache2
    W:\mysql
    W:\php4
    W:\php5
    W:\www
    W:\www\w
  3. mowes.exeを実行します。
  4. Apacheサーバのデフォルトはホストのポート80をリッスンするようになっています。あなたのマシン上にすでにサーバが存在していたり、Skypeが動作している場合は問題が起こることがあります。ポート番号を変えるには、apache2\conf\httpd.confをメモ帳などのテキストエディタで開き、
    1. Listen 80とある行を検索してListen 127.0.0.1:8080と修正し、さらに、
    2. ServerName localhost:80ServerName 127.0.0.1:8080 へ修正します。
    • IANA Port Numbers:
      • 80: World Wide Web (HTTP)
      • 8080: HTTP Alternate
      • 443: HTTP protocol over TLS/SSL (HTTPS)
      • 49152 through 65535: Dynamic and/or Private Ports
      • 1024 through 49151 should not be used on the Internet without IANA registration.
  5. ルートディレクトリの"mowes.exe"を実行します。
    1. 言語を選択し、使用許諾条項でクリックします
    2. MoWeSが自動的にすべてのパッケージをインストールします。現れるポップアップのダイアログを読んでおいてください。
    3. MoWeSが起動し、MoWeS Portable - Statusダイアログを表示します。次のように表示されるはずです。
      Apache is running
      MySQL is running
    4. ウェブブラウザでウェルカムページが開かれます。
      ポート番号を上記の要領で変更した場合は404エラーが出ますが、大丈夫です。
      • MoWeS Portableオプションタブを開き、"Use the following URL in the browser"の値をhttp://localhost/start/からhttp://localhost:8080/start/へ変更します。ポート番号は先に設定したものを用います。
      • MoWeSを終了し再起動するか、または設定したアドレスをブラウザで開きます。
      • MoWeS Portableのスタートページが表示されます。
        Apache 2.0.55 is running
        PHP 5.1.2 works
        MySql 4.1.18-nt is running
        Document Root is: W:/www
  6. 他のMoWeS Portableのオプションを設定します。ほとんどはデフォルトのままでもMediaWikiは正常に動作します。
  1. If you have downloaded the pre-configured MediaWiki package you are done. If not follow the steps below to install MediaWiki.
  1. Run MediaWiki web configuration. Using the directory and port settings above, the address is http://localhost:8080/wiki/config or http://127.0.0.1:8080/mediawiki/config for 1.10.1.
    1. If you want to use a Creative Commons license, you should select it first. Scroll down to the Copyright/license section, click on Creative Commons license - choose, and select your license.
    2. Fill in the site config information
      • Name your wiki
      • Assign a WikiSysop password
      • You can disable all the email options for a tiny wiki
      • Assign a wikiuser password for the Database config
      • If you've changed the root password, enter it here; otherwise, you must clear the Superuser password, because by default MoWeS runs with the superuser account root with no password.
    3. Click Install MediaWiki! After a short delay you should see the MediaWiki 1.6.1 Installation success screen.
    4. Move the W:\www\wiki\config\LocalSettings.php file to W:\www\wiki
    5. Click on "then follow this link to your wiki" and after a short delay you should see the MediaWiki home page.
      • Open the MoWeS Portable Options tab and change the value for "Use the following URL in the browser" from http://localhost:8080/start/ to http://localhost:8080/wiki/ (or whatever port and directory you assigned above).
  2. You're not quite done yet. If there's any problem with any of the configuration files (especially if you moved the MoWeS directory), MediaWiki will behave normally, but the data may be lost when you shut the server down.
    1. Shut down MoWeS - click End, then wait until it closes.
    2. Run "mowes.exe" from the root directory.
    3. If you see the MediaWiki home page, you're done.

[edit] トラブルシューティング

MoWeS Portableはフリーウェアですので、公式なサポートはありません。

私がインストールに失敗したときに対処した方法を挙げます。

  • 設定ファイル中のパスapache2\conf\httpd.confmysql\my.iniを確認する。MoWeSのディレクトリを変更しても、まれにパスが古いディレクトリを指していることがあるかもしれません。
  • MediaWikiはPHP4とPHP5のどちらでも動くはずです。拡張機能は必要ありません。

それでもまだ問題があるようでしたら、MoWeS Wikiのトラブルシューティングヒントを試してみるか、MoWeSの掲示板 [1]を使ってみてください。

[edit] Hints

A complete MoWeS installation with an empty MediaWiki takes about 55Mb. If you're really tight for space, you can delete some files:

  • Make a backup of the complete installation first!
  • PHP4 is about 4.3Mb and PHP5 is about 3.6Mb. You can delete the one you're not using.
  • If the MediaWiki setup has trouble with the passwords, be sure you enter a blank root password if it is still blank by default, or if you have changed the root sql password be sure they match.
  • The MediaWiki languages subdirectory is about 4.25Mb. You can get it down to 150Kb by deleting all of the Language??.php and Messages??.php files you're not using (but don't delete LanguageUtf8.php).

You can (and should!) back up your installation by making a complete copy of the MoWeS directory tree.

[edit] References

[edit] Revisions

  • April 7, 2006 - Eric Hartwell - MediaWiki 1.6.1, WOS Portable Small Edition 1.1.1
  • July 8, 2009 - Frank D. - Changed to MoWeS Portable. Refined some parts.
言語: English  • 日本語
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox