Owncloud installieren (Ubuntu 18.04): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(26 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== 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> | |||
Zurück zu [[ | ==== Port 443 (HTTPS) ==== | ||
Erstellung eines SSL-Zertifikates siehe [[SSL_Zertifikat]] | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/owncloud.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName owncloud.kirner.or.at | |||
Redirect / https://owncloud.kirner.or.at | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo vi /etc/apache2/sites-available/owncloud-ssl.conf | |||
</pre> | |||
<pre> | |||
<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> | |||
</pre> | |||
<pre> | |||
sudo a2ensite owncloud | |||
sudo a2ensite owncloud-ssl | |||
sudo systemctl reload apache2.service | |||
</pre> | |||
== Optionale Konfigurationen == | |||
=== Cronjobs === | |||
{{note|Hinweis: Cron-Tabelle des benutzers '''www-data'''!}} | |||
<pre> | |||
sudo -u www-data crontab -e | |||
</pre> | |||
<pre> | |||
*/5 * * * * /usr/bin/php /mnt/synology/web1/www/owncloud/occ system:cron | |||
</pre> | |||
==== Links ==== | |||
=== Redis Server === | |||
==== Installation ==== | |||
siehe [[Redis-Server (Ubuntu)|Redis-Server]] | |||
==== Konfiguration ==== | |||
<pre> | |||
sudo vi /mnt/synology/web1/www/owncloud/config/config.php | |||
</pre> | |||
<pre> | |||
'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 | |||
], | |||
</pre> | |||
==== Links ==== | |||
[https://doc.owncloud.org/server/10.4/admin_manual/configuration/server/caching_configuration.html#redis https://doc.owncloud.org/server/10.4/admin_manual/configuration/server/caching_configuration.html#redis] | |||
=== log_rotate === | |||
<pre> | |||
'log_rotate_size' => 104857600, // 100 MB | |||
</pre> | |||
==== Links ==== | |||
[https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/config_sample_php_parameters.html?highlight=sample#logging https://doc.owncloud.com/server/10.0/admin_manual/configuration/server/config_sample_php_parameters.html?highlight=sample#logging] | |||
=== Mailversand === | |||
Siehe auch [[Owncloud_installieren_(Ubuntu_18.04)#Couldn.27t_send_notification_email_to_user_xxxx_.28Connection_to_tcp:.2F.2Fmail1.server.at:587_Timed_Out.7D.29|Couldn't send notification email to user xxxx (Connection to tcp://mail1.server.at:587 Timed Out})]] | |||
==== Links ==== | |||
[https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html] | |||
== Probleme == | |||
=== Couldn't send notification email to user xxxx (Connection to tcp://mail1.server.at:587 Timed Out}) === | |||
Die Datei | |||
<pre> | |||
sudo vi config/config.php | |||
</pre> | |||
bearbeiten und den Eintrag | |||
<pre> | |||
'mail_smtptimeout' => 30, | |||
</pre> | |||
hinzufügen. | |||
==== Links ==== | |||
[https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html] | |||
Zurück zu [[Owncloud installieren (unterschiedliche Versionen)|Owncloud installieren]] |
Aktuelle Version vom 23. Mai 2021, 16:55 Uhr
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
Hinweis: Cron-Tabelle des benutzers www-data!
sudo -u www-data crontab -e
*/5 * * * * /usr/bin/php /mnt/synology/web1/www/owncloud/occ 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
log_rotate
'log_rotate_size' => 104857600, // 100 MB
Links
Mailversand
Siehe auch Couldn't send notification email to user xxxx (Connection to tcp://mail1.server.at:587 Timed Out})
Links
https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html
Probleme
Couldn't send notification email to user xxxx (Connection to tcp://mail1.server.at:587 Timed Out})
Die Datei
sudo vi config/config.php
bearbeiten und den Eintrag
'mail_smtptimeout' => 30,
hinzufügen.
Links
https://doc.owncloud.com/server/admin_manual/configuration/server/email_configuration.html
Zurück zu Owncloud installieren