shindigはそれ自身では、Gatewayでしかないので、それを登録するSNSがあった方がいいです。
ということで、PHPで動くFreeなSNSPartuzaを使うことにします。
http://code.google.com/p/partuza/
にpartuzaの説明があります。shindigのテストの為のSNSみたいな位置づけなようです。
http://tech.feedforce.jp/shindig-partuza-opensocial-2.html
にインストールの手順等があるのですが、1.0.0になってディレクトリ構成などがちょっと変わったので、その辺りも含めてメモしておきます。
http://code.google.com/p/partuza/downloads/list
からpartuza-1.0.0.tar.gz をダウンロードして、
/var/opensocial で展開します。
/var/opensoicla/partuza/
に展開されるので、shindig同様にVirutualHostの設定を行います。
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test-partuza
DocumentRoot /var/opensocial/partuza/html
<Directory /var/opensocial/partuza/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/partuza-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/partuza-access.log combined
</VirtualHost>
な感じにします。
partuzaはSNSなので、DBが必要です。MySQLがインストールされているはずなので、
/var/opensocial/partuza
に移動して、
$ mysqladmin -u root create partuza
$ mysql -u root -D partuza < partuza.sql<br />※手抜きでRootのパスワードを設定していません。パスワードを設定しているときは-pオプションを忘れずに。
これでDBが構築されます。
CentOSではopentagの設定が必要ですがubuntuはすでに設定されているので、
short_open_tag = On
の変更は不要です。
また、画像データを保存するディレクトリがであるのですが、パーミションの設定変更が必要です。
$ chmod 777 /var/opensocial/partuza/html/images/people
してください。
Shindig側にPartuzaの登録が必要です。
/var/opensocial/shindig/config/local.php を作成します。
中身は /var/opensocial/partuza/Shindig/README, http://code.google.com/p/partuza/w/list 辺りを参考にしてください。今回は以下の通りにしてみます。
<?php
$shindigConfig = array(
'person_service' => 'PartuzaService',
'activity_service' => 'PartuzaService',
'app_data_service' => 'PartuzaService',
'extension_class_paths' => '/var/opensocial/partuza/Shindig'
);
最後に、PartuzaにShindigサーバーの設定をします。
/var/opensocial/partuza/html/config.php
このファイルに、gadget_server=という行があるので、これを
'gadget_server' => 'http://test-shindig',
とします。
これで動くはずです。