shindigインストール
Shindigも再インストールしたら、ふつーに動いたのでメモメモ。
とりあえず定番のメモアプリの動作確認。
因みにUbuntu。
環境は
Subversion
mod_rewrite
PHP各種拡張 (json, simplexml, mcrypt, curl)
が必要である。
SubVersionからShindigの2.02をチェックアウトする。
配置ディレクトリは/var/www/opensocial
cd /var/www/opensocial
svn co http://svn.apache.org/repos/asf/shindig/tags/shindig-project-2.0.2/ shindig
apacheにVirtualHostを設定する。
cd /etc/apache2/sites-enabled/
vim opensocial
以下の内容
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ServerAdmin webmaster@localhost
ServerName shindig
DocumentRoot /var/opensocial/shindig/php
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
ErrorLog /var/log/apache2/shindig-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/shindig-access.log combined
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
また、hostsファイルにIPアドレス、ホスト名の関連付けを記述
vim /etc/hosts
127.0.0.1 shindig
以上の設定で以下URLにアクセス。
パラメータとして外部メモアプリが書かれたガジェットXMLのURLを渡す。
http://shindig/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml