FreeBSD 10.2 RELEASE - ownCloud - インストール

 クラウディア
1. ports
2. データベースの設定
3. Apache の設定

1. ports


/usr/ports/www/owncloud
 後述しますが、データベースを変更する場合は、オプションで下記の「使用するデータベース」のチェックを忘れないようにします。
「FreeBSD 10.2 RELEASE」-「/usr/ports/www/owncloud」「オプション」

2. データベースの設定

 ownCloud で使用するデータベースはデフォルトで SQLite になっています。  SQLite では大容量になってきたときに耐えられないので、MySQL か postgreSQL に変更します。  ここでは MySQL で設定してみます。MySQL の設定は「データベース MySQL」を参照してください。  データベース名 [owncloud]

> mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 2
Server version: "バージョン番号" Source distribution

Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> create database owncloud;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on owncloud.* to owncloud@localhost identified by 'パスワード';
Query OK, 0 rows affected (0.16 sec)

mysql> quit
Bye

3. Apache の設定

 apache を通してアクセスしますのでディレクトリをアクセス可能にします。「apache」の設定は「ウェブサーバ apache」を参照してください。

/usr/local/etc/apache24/Includes/owncloud.conf
 を作成して以下のように編集します。

Alias /owncloud /usr/local/www/owncloud
AcceptPathInfo On
<Directory /usr/local/www/owncloud>
    AllowOverride All
    Require all granted
</Directory>
 上記は誰でもアクセスできる設定になっていますから、環境に合わせて適宜セキュリティの設定を行ってください。