Yuan Yijun (bbbush) wrote,
Yuan Yijun

在 Bluehost 安装 MediaWiki

根据 MediaWiki 网站的建议,scripts 可以安装到根目录,而 articles 不应当直接位于根目录。网站上给出的配置是这样:

$wgScriptPath = "";
$wgScriptExtension = ".php5";
$wgArticlePath = '/w/$1';
$wgUsePathInfo = true;

RewriteRule ^w/(.*)$ index.php5?title=$1 [PT,L,QSA]
RewriteRule ^w/* /index.php5 [L,QSA]
RewriteRule ^/*$ index.php5 [L,QSA]

其中第二句的 pattern,原文是 $w/*$ 但是在 Bluehost 上写成这样会导致 404 错误,不知道为什么会去找真实的文件。

User-agent: *
#Disallow: /engine/
Disallow: /w/Special:Search
Disallow: /w/Special:Random

最初安装的时候,提示需要 a+w config 目录,实际上这样会导致一个 Soft Exception (500 错误),只要用户自己可写就没问题了。

前几天安装 bugzilla,也遇到权限的问题,说目录只能由用户自己和组访问,而且用户自己必须属于运行 apache 的组。可是
Bluehost 没有这个条件,只好假装看不见权限问题了。凭什么其他服务就没这么 BT 的要求,尤其是
Wordpress,安装插件那个爽阿,就像 firefox 一样。
Tags: fedora

  • BP 1st year

    Basic Program is a reading program from UChicago. The information can be found here [1] and currently it is open for signing up for the next year…

  • 2020

    Last time I wrote a review was in 2018, about 2017. Or maybe I wrote something elsewhere, maybe on Twitter? It was hard to write something freely…

  • Feedback letter to Peoples Gas[1]

    Credit report dispute. To whom it may concern: I called at around 5pm, and the receptionist cannot figure it out why I had a "late…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded