Owncloud installieren (Ubuntu 18.04): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 100: Zeile 100:


=== log_rotate ===
=== log_rotate ===
<pre>
'log_rotate_size' => 104857600, // 100 MB
</pre>


==== Links ====
==== Links ====

Version vom 27. Juli 2020, 19:30 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/owncloud.conf
<VirtualHost *:80>
        ServerName owncloud.kirner.or.at
        Redirect / https://owncloud.kirner.or.at
</VirtualHost>
sudo vi /etc/apache2/sites-available/owncloud-ssl.conf
<VirtualHost *:443>
    ServerName owncloud.kirner.or.at
    ServerAlias owncloud.kirner.or.at
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/owncloud.crt
    SSLCertificateKeyFile /etc/ssl/private/apache.key
    # Pfad zu den Webinhalten
    DocumentRoot /mnt/synology/web1/www/owncloud

    <IfModule mod_headers.c>
        Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
    </IfModule>

    KeepAlive On
    KeepAliveTimeout 5

    ErrorLog ${APACHE_LOG_DIR}/owncloud.kirner.or.at-error.log
    CustomLog ${APACHE_LOG_DIR}/owncloud.kirner.or.at-access.log combined
</VirtualHost>
sudo a2ensite owncloud
sudo a2ensite owncloud-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

https://doc.owncloud.org/server/10.4/admin_manual/configuration/server/caching_configuration.html#redis

log_rotate

'log_rotate_size' => 104857600, // 100 MB

Links

https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/config_sample_php_parameters.html?highlight=sample#logging


Zurück zu Owncloud installieren