User:StefanLangenmaier/Poor man's Cluster/Owncloud

Owncloud
This will install Owncloud with mysql on nginx webserver with php-fpm

USE="mysql -sqlite"

emerge nginx owncloud cronie letsencrypt

see doc Owncloud

see doc letsencrypt

letsencrypt --email  -d  --server https://acme-v01.api.letsencrypt.org/directory certonly

nano /etc/vhosts/webapp-config

and change the webserver to nginx

/usr/sbin/webapp-config -h localhost -u root -d /owncloud -I owncloud 8.2.2

change user and group to nginx in /etc/php/fpm-php5.6/php-fpm.conf

set: pm = ondemand

update /etc/nginx/nginx.conf with config from owncloud doc https://doc.owncloud.org/server/8.2/admin_manual/installation/nginx_configuration.html

change the certificates to the ones created with letsencrypt

do the tuning tips after the system is functional


 * https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/js_css_asset_management_configuration.html
 * https://doc.owncloud.org/server/8.2/admin_manual/installation/source_installation.html#php-fpm-tips-label

configure /etc/ssmtp/ssmtp.conf to send mails

Misc
If the second system should be able to browse the files, the basic folders for the accounts should be created. If the files folder of an account is not readable the filecache of owncloud is not updated. So you can browse the structure without actually having the files.

The following command can create a tar with only the folder structure:

find. -maxdepth 2 -type d -print0 | xargs -0 tar cf owncloud-data-directory-structure.tar --no-recursion

Create the folders

tar xf /root/directory-structure.tar chmod a-rwx */files