« monsiaj を更新 | トップページ | orca 4.8 に移行 »

2015年3月23日 (月)

ownCloud 8.0.2 にアップグレード

自分用のクラウドとして ownCloud を使用している。これまで ownCloud のアップデートは普通に aptitude update → upgrade で問題なかった。しかし,今回 7.0.4 → 8.0.2 のアップデートではひと手間必要だった。

PPA の導入

ownCloud 8.0.2 では php 5.4 以上が必須であるが,ubuntu 12.04 では,そのままでは使用できないので,PPA(personal package archive)を使う。
$ sudo aptitude install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php5
$ sudo aptitude update
$ sudo aptitude upgrade
現時点では php 5.5.22,apache2 2.4.12,owncloud 8.0.2-5 がインストールされた。その後,ブラウザで ownCloud にアクセスするとアップデートが完了する。

追加の設定

apache2 のバージョンが 2.4 になり,owncloud.conf が conf.d ではなく conf-available / conf-enabled で管理されるようになった。これに合わせて,今まで使っていた owncloud.conf を移動した。
$ sudo cp /etc/apache2/conf.d/owncloud.conf /etc/apache2/conf-available/
$ sudo rm -rf /etc/apache2/conf.d
ブラウザでアクセスして admin を見ると,以下のワーニングが出ていて,設定が必要であった。
  • .htaccess
    PHP charset is not set to UTF-8. This can cause major issues with non-ASCII characters in file names. 
    We highly recommend to change the value of 'default_charset' php.ini to 'UTF-8'.
    
    owncloud/.htaccess に以下の1行を加える。
    <IfModule mod_php5.c>
    php_value upload_max_filesize 513M
    php_value post_max_size 513M
    php_value memory_limit 512M
    php_value mbstring.func_overload 0
    php_value always_populate_raw_post_data -1
    php_value default_charset UTF-8
    
  • config.php
    If your installation is not installed in the root of the domain and uses system cron, there can be issues with the URL generation. 
    To avoid these problems, please set the "overwrite.cli.url" option in your config.php file to the webroot path of your installation (Suggested: "/owncloud")
    
    owncloud/config/config.php に以下の1行を加える。
    'overwrite.cli.url' => '/owncloud',
    

« monsiaj を更新 | トップページ | orca 4.8 に移行 »

いろいろ」カテゴリの記事