MediaWiki1.25.2.でエラー発生

提供: dococo wiki
2015年9月25日 (金) 23:30時点におけるimported>Webmasterによる版
ナビゲーションに移動 検索に移動

久しぶりにMediaWikiをバージョンアップしようと思って最新版(mediawiki-1.25.2.tar)2015/09/26現在をダウンロード&アップデートを行った際に、画像(イメージ)関係の表示がおかしくなってしまった
症状は以下のように画像が表示されなくなった。
2015-09-26 8-14-36.jpg

画像のサムネイルを確認すると以下のようなInternal Server Errorが表示されてしまうのである

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@sakura.ad.jp and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

情報を調べてみると、上記エラーはパーミッションNGの可能性が高いという物であるが、いままで表示されていた画像であるため属性が急に変わったとは思えない

かなり悩んだ末に判明したのは./images配下に配置されている.htaccess(ドットエイチティーアクセス)であった、一つ前のバーションと比較すると以下の通り

.htaccess(mediawiki-1.25.2.tar)

<IfModule rewrite_module>
       RewriteEngine On
       RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
       RewriteRule . - [forbidden]
       # Fix for bug T64289
       Options +FollowSymLinks←この余計な部分でエラーが発生!!
</IfModule>

.htaccess(mediawiki-1.24.3.tar)

# Protect against bug 28235
<IfModule rewrite_module>
	RewriteEngine On
	RewriteCond %{QUERY_STRING} \.[^\\/:*?\x22<>|%]+(#|\?|$) [nocase]
	RewriteRule . - [forbidden]
</IfModule>



Options +FollowSymLinksという内容の有無であった、これはシンボリックリンクに関する記述であるが動作的におかしくなるので、とりあえずコメントアウトしたところ、ちゃんと画像が表示されたのでとりあえずこのままで運用することとしたい
MediaWikiへ戻る