📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

4行目: 4行目:


== 前準備 ==
== 前準備 ==
mediawikiディレクトリにあるimagesディレクトリのパーミッションと所有者および所有グループを以下のように変更する。<br>
MediaWikiディレクトリにあるimagesディレクトリのパーミッションと所有者および所有グループを以下のように変更する。<br>
  sudo chmod 777 images images/temp images/thumb images/archive
  sudo chmod 777 images images/temp images/thumb images/archive
  sudo chown -R <ユーザ名>:<ユーザグループ名> images/
  sudo chown -R <ユーザ名>:<ユーザグループ名> images/
<br>
<br>
次に、imagesディレクトリに存在する.htaccessファイルを以下のように編集する。<br>
次に、imagesディレクトリに存在する.htaccessファイルを以下のように編集する。<br>
【修正前】
  # 修正前
  # Protect against bug T30235
  <IfModule rewrite_module>
  <IfModule rewrite_module>
      RewriteEngine On
        RewriteEngine On
      RewriteOptions inherit
        RewriteOptions inherit
      RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
        RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
      RewriteRule . - [forbidden]
        RewriteRule . - [forbidden]
      # Fix for bug T64289
        # Fix for bug T64289
      Options +FollowSymLinks
        Options +FollowSymLinks
  </IfModule>
  </IfModule>
   
   
【修正後】
  # 修正後
  # Protect against bug T30235
  <IfModule rewrite_module>
  <IfModule rewrite_module>
      RewriteEngine On
        RewriteEngine On
      RewriteOptions inherit
        RewriteOptions inherit
      RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
        RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
      RewriteRule . - [forbidden]
        RewriteRule . - [forbidden]
      # Fix for bug T64289
        # Fix for bug T64289
      # Options +FollowSymLinks
        # Options +FollowSymLinks
  </IfModule>
  </IfModule>
<br><br>
<br><br>