DAViCalのiOS5対応 PDF 印刷 Eメール
作者: mune   
2011年 10月 22日(土曜日) 15:04

我が家のDAViCalサーバの環境は下記の通り。CentOS5.7+apache2.2.3+php5.3.8+postresql8.1.23の環境。

  • httpd-2.2.3-53.el5.centos.1
  • php-5.3.8-5.el5.remi.1
  • postgresql-8.1.23-1.el5_6.1

davical-0.9.9.4-2.noarch.rpmとlibawl-php-0.46-2.noarch.rpmでは、iOS5で表示できない。

私の環境では、OSX Lion 10.7.2 + iCal と Windows7 + Thunderbird + Lightningでは表示できているが、iOS5では表示できなくなった。

作者も認識したようで、早速アップデートしてくれた(感謝!)。

http://wiki.davical.org/w/Release_Notes/0.9.9.7

ただ、ソースとdebパッケージの提供で、rpmがないため、Alianを利用してdebからrpmへ変換してインストールした。

その方法を備忘録として掲載しておく。

 


追記)2011.10.24に正式リリースした模様。rpmパッケージも公開されたため、下記1)〜3)は必要なくなった。

http://debian.mcmillan.net.nz/packages/davical/davical-0.9.9.7-1.noarch.rpm

http://debian.mcmillan.net.nz/packages/awl/libawl-php-0.49-1.noarch.rpm


 

1) debファイルのダウンロード

まだ正式リリースではないため、testingディレクトリで公開されているようだ。

http://debian.mcmillan.net.nz/packages/davical/testing/

  • libawl-php_0.49-1_all.deb
  • davical_0.9.9.7-1_all.deb

上記2つのファイルをダウンロードする。

# wget http://debian.mcmillan.net.nz/packages/davical/testing/libawl-php_0.49-1_all.deb

# wget http://debian.mcmillan.net.nz/packages/davical/testing/davical_0.9.9.7-1_all.deb

2) debをrpmに変換

alianについては「alienでdebパッケージをrpmパッケージへ変換」を参照。

# alien --to-rpm --scripts *.deb

3) rpmインストール

# rpm -Uvh libawl-php-0.49-2.noarch.rpm

# rpm -Uvh davical-0.9.9.7-2.noarch.rpm

# /etc/init.d/httpd restart

4) データベースのアップデート

# su - postgres

$ cd /usr/share/davical/dba/

$ ./update-davical-database

5) その他

上記のままでは、iPhoneで表示されなかった。

一度、既存の設定を削除して、新たに設定し直したら表示できた。(!)

もしかしたら、アップデートしなくても、単にそれだけだったのでは。。。

6) DAViCal用apache設定(参考)

Alias /davical/ /usr/share/davical/htdocs/

<Location /usr/share/davical/htdocs/>

DAV on

</Location>

 

<Directory /usr/share/davical/htdocs/>

AllowOverride None

Options None

order deny,allow

deny from all

allow from *.*.*.*/*

</Directory>

AcceptPathInfo On

php_value include_path "/usr/share/davical/inc:/usr/share/awl/inc"

php_value magic_quotes_gpc 0

php_value register_globals 0

php_value error_reporting "E_ALL & ~E_NOTICE"

php_value default_charset "utf-8"

#ここから以下は今回追加してみた

# Get rid of caldav.php in the path

RewriteEngine On

# Not if it's the root URL.

RewriteCond %{REQUEST_URI} !^/$

# Not if it explicitly specifies a .php program, stylesheet or image

RewriteCond %{REQUEST_URI} !\.(php|css|js|png|gif|jpg)

# Filter all files that do not exist

# Everything else gets rewritten to /caldav.php/...

RewriteRule ^(.*)$ /caldav.php/$1 [NC,L]

最終更新 2011年 10月 25日(火曜日) 23:19
 

Add your comment

Your name:
タイトル:
Comment:
Use OpenOffice.org

Blog Calendar

< 10月 2011 >
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21
23 24 25 26 27 28 29
30 31          
route20.org, Powered by Joomla! and designed by SiteGround web hosting