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 git letsencrypt

see doc Owncloud

see doc letsencrypt

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.0

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

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

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