Owncloud installieren (Ubuntu 18.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
{{note|Noch in Bearbeitung}} | {{note|Noch in Bearbeitung}} | ||
== Konfiguration == | |||
=== Apache === | |||
<pre> | |||
sudo a2enmod rewrite && sudo a2enmod headers && sudo a2enmod env && sudo a2enmod dir && sudo a2enmod mime && sudo a2enmod ssl | |||
sudo systemctl restart apache2.service | |||
</pre> | |||
==== Port 443 (HTTPS) ==== | |||
Erstellung eines SSL-Zertifikates siehe [[SSL_Zertifikat]] | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/nextcloud.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName nextcloud.kirner.or.at | |||
Redirect / https://nextcloud.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/nextcloud-ssl.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:443> | |||
ServerName cloud.kirner.or.at | |||
ServerAlias cloud.kirner.or.at | |||
SSLEngine on | |||
SSLCertificateFile /etc/ssl/certs/nextcloud.crt | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
# Pfad zu den Webinhalten | |||
DocumentRoot /mnt/synology/web1/www/nextcloud | |||
<IfModule mod_headers.c> | |||
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" | |||
</IfModule> | |||
KeepAlive On | |||
KeepAliveTimeout 5 | |||
ErrorLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-access.log combined | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo a2ensite nextcloud | |||
sudo a2ensite nextcloud-ssl | |||
sudo systemctl reload apache2.service | |||
</pre> | |||
== Optionale Konfigurationen == | == Optionale Konfigurationen == |
Version vom 27. Juli 2020, 19:06 Uhr
Noch in Bearbeitung
Konfiguration
Apache
sudo a2enmod rewrite && sudo a2enmod headers && sudo a2enmod env && sudo a2enmod dir && sudo a2enmod mime && sudo a2enmod ssl sudo systemctl restart apache2.service
Port 443 (HTTPS)
Erstellung eines SSL-Zertifikates siehe SSL_Zertifikat
sudo vi /etc/apache2/sites-available/nextcloud.conf
<VirtualHost *:80> ServerName nextcloud.kirner.or.at Redirect / https://nextcloud.kirner.or.at </VirtualHost>
sudo vi /etc/apache2/sites-available/nextcloud-ssl.conf
<VirtualHost *:443> ServerName cloud.kirner.or.at ServerAlias cloud.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/nextcloud.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /mnt/synology/web1/www/nextcloud <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" </IfModule> KeepAlive On KeepAliveTimeout 5 ErrorLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/nextcloud.kirner.or.at-access.log combined </VirtualHost>
sudo a2ensite nextcloud sudo a2ensite nextcloud-ssl sudo systemctl reload apache2.service
Optionale Konfigurationen
Cronjobs
sudo -u www-data crontab -e
* * * * * /usr/bin/php /mnt/synology/web1/www/owncloud/ system:cron
Links
Redis Server
Installation
siehe Redis-Server
Konfiguration
sudo vi /mnt/synology/web1/www/owncloud/config/config.php
'memcache.locking' => '\OC\Memcache\Redis', 'memcache.local' => '\OC\Memcache\Redis', 'redis' => [ 'host' => '/var/run/redis/redis-server.sock', 'port' => 0, 'timeout' => 0, 'dbindex' => 0, // use different database for different applications ],
Links
Zurück zu Owncloud installieren