freebsd:freebsd_11_install_nextcloud_11

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
最新のリビジョン 両方とも次のリビジョン
freebsd:freebsd_11_install_nextcloud_11 [2017-08-22 19:10]
Decomo
freebsd:freebsd_11_install_nextcloud_11 [2017-08-23 18:13]
Decomo
行 10: 行 10:
  
 ==== Apache 2.4 ==== ==== Apache 2.4 ====
 +
 +Apacheのインストール。
  
 <code> <code>
 portmaster www/apache24 portmaster www/apache24
 </code> </code>
 +
 +必要なモジュールは以下の通り。
 +
 +<WRAP group 80% center>
 +<WRAP half column>
 +=== 必須 ===
 +  * REWRITE
 +</WRAP>
 +<WRAP half column>
 +=== 推奨 ===
 +  * ENV
 +  * DIR
 +  * HEADERS
 +  * MIME
 +</WRAP>
 +</WRAP>
 +
 +必要なモジュールが読み込まれるようにhttpd.confを編集。
  
 <file conf /usr/local/etc/apache24/httpd.conf> <file conf /usr/local/etc/apache24/httpd.conf>
行 24: 行 44:
 ... ...
 </file> </file>
 +
 +Nextcloudのサイトの設定を作成。パスは適宜読み替えの事。
  
 <file conf /usr/local/etc/apache24/Includes/nextcloud.conf.inc> <file conf /usr/local/etc/apache24/Includes/nextcloud.conf.inc>
行 48: 行 70:
 </code> </code>
  
-Nextcloud用ユーザーを作っおく。 +バイナリログ形式をMIXEDにする。DB全体に影響するので、他のサビス動かしる場合は要注意。 
-<code+<file conf /usr/local/etc/my.cnf
-$ mysql -u adminuser -p +[mysqld
-Enter password: +binlog_format = MIXED # mysqldセクションに追加する 
- +</file>
-MariaDB [(none)]> CREATE USER nextcloud IDENTIFIED BY 'password'; +
-Query OK, 0 rows affected (0.01 sec) +
-</code>+
  
 ==== PHP 7.1 ==== ==== PHP 7.1 ====
行 108: 行 127:
 </WRAP> </WRAP>
 </WRAP> </WRAP>
 +
 +更にmod_phpを入れる。
 +<code>
 +# portmaster www/mod_php71
 +</code>
 +
 +mod_phpの設定。
 +<file conf /usr/local/etc/apache24/httpd.conf>
 +...
 +LoadModule php7_module        libexec/apache24/libphp7.so
 +...
 +
 +<FilesMatch "\.php$">
 +    SetHandler application/x-httpd-php
 +</FilesMatch>
 +<FilesMatch "\.phps$">
 +    SetHandler application/x-httpd-php-source
 +</FilesMatch>
 +</file>
  
 === ImageMagick === === ImageMagick ===
行 139: 行 177:
  
 ===== Nextcloudのインストール ===== ===== Nextcloudのインストール =====
 +
 +ZIPを取ってきて展開する。
  
 <code> <code>
行 146: 行 186:
 sudo chown -R www:www nextcloud sudo chown -R www:www nextcloud
 </code> </code>
 +
 +ブラウザからアクセスする。
 +
 +<WRAP group 100% center>
 +<WRAP half column>
 +{{ :freebsd:nextclound12_setup_wizard_1.png |}}
 +</WRAP>
 +<WRAP half column>
 +{{ :freebsd:nextclound12_setup_wizard_2.png |}}
 +</WRAP>
 +</WRAP>
  • freebsd/freebsd_11_install_nextcloud_11.txt
  • 最終更新: 2017-08-24 17:32
  • by Decomo