User:StefanLangenmaier/Poor man's Cluster/Owncloud

From Gentoo Wiki
Jump to: navigation, search

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 <my-mail@address.com> -d <mydomain.com> --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

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

References