【至急・重要】ウィルスチェックのお願い

Change Style


MediaWiki: XREA サーバへの設置 1) インストール編

思うところあって、Mediawiki をインストールしてみた。しばらくいじってみるつもり。

設置したのは、

  • 最新版「MediaWiki 1.10.0」 [2007-05-09]
  • XREA s206 サーバ(無料・広告あり)

以下、インストール作業メモ。

パッケージの入手と設置方法(リンク)

設置環境

MediaWiki システム要件
  • ウェブサーバ Apache、IISなど
  • PHP ≥ 5.0 (5.1.x 推奨)
  • データベースサーバー MySQL ≥ 4.0 または PostgreSQL ≥ 8.1 (plpgsql と tsearch2 が必要です)
    MySQLの管理用に特別なソフトウェアやツールは必要ありませんが、 それらはバックアップなどを取る際には役に立つこともあるでしょう。(たとえばphpMyAdmin ≥ 2.6.1 など)
Installation/ja - MediaWiki
XREA s206 サーバ
  • Apache 1.3.37
  • PHP 5.1.6
  • MySQL 5.1.11
XREA » サーバー情報
  • システム要件はクリア
  • デフォルト文字コードが EUC-JP なので、手を加えずに出来るかな。。

行なった作業

  1. XREA 管理画面で DB 作成。UNICODE
  2. phpMyAdmin で文字コードなどを確認。
  3. Download/ja - MediaWiki より mediawiki-1.10.0.tar.gz をダウンロードして、解凍。
  4. public_htmlwiki/ ディレクトリへアップロード。
    • (注) 訪問者のアクセスを index.php 抜きの http://~/wiki/ にしたい場合、ディレクトリ名は wiki じゃない方がいいかも。理由は後述。
    • アップロード途中でフリーズして、中止を選ぶと切断されてしまうので、小分けにしてアップ。
  5. .htaccess を追加アップロード

    • 広告自動挿入をオフにするため、wiki/.htaccess を追加。

      LayoutIgnoreURI *
      
    • ルートディレクトリの .htaccess には、次の1行を設定済み。

      php_value mbstring.internal_encoding UTF-8
      
  6. インストールガイド に載っている「シンボリックリンク」は、分からないのでパス。

  7. config/ ディレクトリのパーミッションを 707 に。
  8. ブラウザで http://bono.s206.xrea.com/wiki/ にアクセス

    自動的にサーバの環境チェックして、結果を表示してくれる。

    Checking environment…

    Please include all of the lines below when reporting installation problems.

    • PHP 5.1.6 installed
    • Found database drivers for: MySQL PostgreSQL
    • Warning: PHP’s register_globals option is enabled. Disable it if you can.
      MediaWiki will work, but your server is more exposed to PHP-based security vulnerabilities.
    • Warning: PHP’s safe mode is active. You may have problems caused by this, particularly if using image uploads.
    • PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
    • Have XML / Latin1-UTF-8 conversion support.
    • Warning: A value for session.save_path has not been set in PHP.ini. If the default value causes problems with saving session data, set it to a valid path which is read/write/execute for the user your web server is running under.
    • PHP’s memory_limit is 90M.
    • Couldn’t find Turck MMCache, eAccelerator, or APC. Object caching functions cannot be used.
    • GNU diff3 not found.
    • Found GD graphics library built-in, image thumbnailing will be enabled if you enable uploads.
    • Installation directory: /○○○/○○○/public_html/wiki
    • Script URI path: /wiki
    • Environment checked. You can install MediaWiki.

    入力項目: ここには一部分だけ

    • Site config
      • Wiki name: ブランクはダメ。後で分かったけど、* も。。
      • Language: ja - 日本語
      • Copyright/license: ページによって GNU を表示することにして、 No license metadata を選択しておいた。
    • E-mail, e-mail notification and authentication setup
    • Database config

      • MySQL specific options:

        • MySQL specific options: mw_ — DB を他のシステムと共用するので
        • Database charset
          次から選択:

          • Backwards-compatible UTF-8
          • Experimental MySQL 4.1/5.0 UTF-8 ← コレに賭けてみる!
          • Experimental MySQL 4.1/5.0 binary

          EXPERIMENTAL: You can enable explicit Unicode charset support for MySQL 4.1 and 5.0 servers. This is not well tested and may cause things to break. If upgrading an older installation, leave in backwards-compatible mode.

  9. 全部入力したら [Install MediaWiki!] ボタンをクリック

    • Warning: $wgSecretKey key is insecure, generated with mt_rand(). Consider changing it manually.

    Generating configuration file…

    • Database type: MySQL
    • Loading class: DatabaseMysql
    • Attempting to connect to database server as bono…success.
    • Connected to 5.1.11-beta; enabling MySQL 4.1/5.0 charset mode
    • Database bono exists
    • Creating tables… done.
    • Initializing data…
    • Created sysop account bono.

    Creating LocalSettings.php…

    Installation successful! Move the config/LocalSettings.php file into the parent directory, then follow this link to your wiki.

  10. wiki/config/LocalSettings.php ファイルを wiki/ へ移動。
  11. config/ ディレクトリごと削除。
  12. サイト表示を確認。文字化けナシ!
  13. phpMyAdmin でも文字化けしてしてない。(・∀・)b TB! と小躍り。
  14. wiki/.htaccess に 1行追加しておく。上記 8 で warning が出たので。

    LayoutIgnoreURI *
    php_value register_globals off ←コレ
    

「2) 基本設定編」に続く。。。

YOU、これも読んじゃないなYO!

  • No Related Posts

2 Responses to “MediaWiki: XREA サーバへの設置 1) インストール編”

  1. マサキチトセ says:

    参考にさせていただきました。とても助かりましたー!

コメントをどうぞ