elgg をインストールしてみようとしたらいきなりエラー

| コメント(0) | トラックバック(0)

----

オープンソースのソーシャルネットワークエンジン elgg をインストールしてみようと思いやってみたら、最初の Requirements check でいきなり以下のエラーになった。

We think your server is running the Apache web server.
The rewrite test failed and the most likely cause is that AllowOverride is not set to All for Elgg's directory.
This prevents Apache from processing the .htaccess file which contains the rewrite rules.
A less likely cause is Apache is configured with an alias for your Elgg directory and you need to set the RewriteBase in your .htaccess.
There are further instructions in the .htaccess file in your Elgg directory.

どうやら、apache の Rewrite が動かないらしい。

言われるがままに apache のConfig ファイルを確認してみるが、AllowOverride もAll にしているし、Alias も設定していない。

自分で簡単な Rewrite をする .htaccess を書いて実験してみたら、ちゃんと Rewrite されていたので、どうやら elgg のテストプログラムのほうがおかしいらしい。

とはいえ、テストに通らないと Next ボタンが押せないので次に進めない。

困ったので、検索して解決方法を探すと。。。

elgg/install/ElggRewriteTester.php の
$this->serverSupportsRemoteRead = TRUE ;

$this->serverSupportsRemoteRead = FALSE ;
にすればよいらしい。

さっそくやってみる。
書き換えて Refresh ボタンを押すと

Your server does not support automatic testing of the rewrite rules.
You can continue the installation, but you may experience problems with your site. You can manually test the rewrite rules by clicking this link: test.
You will see the word success if the rules are working.

あんたのサーバは自動テストに対応していないので、(自動テスト無しで)次に進められます。でも何か問題が発生するかもしれません。
test のリンクをクリックすると自分で確認できます。ちゃんと設定されていれば success と表示されます。
だそうだ。

test をクリックしたら success と表示されました。

Next ボタンを押して次に進む。

めでたし。



 

トラックバック(0)

トラックバックURL: http://onno.jp/mt/cgi-bin/mt-tb.cgi/266

コメントする

このブログ記事について

このページは、管理者が2012年11月17日 05:38に書いたブログ記事です。

ひとつ前のブログ記事は「CPAN で Text::MeCab インストールエラー」です。

次のブログ記事は「php の sprintf が空文字を返してくる」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

Powered by Movable Type 5.13-ja