Nextcloud (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 24: | Zeile 24: | ||
<pre> | <pre> | ||
mysql -u root -p | mysql -u root -p | ||
mysql> create database if not exists <database name>; | |||
mysql> create user 'nextcloud'@'%' identified by '<password>'; | mysql> create user 'nextcloud'@'%' identified by '<password>'; | ||
mysql> grant all on nextcloud.* to 'nextcloud'@'%'; | mysql> grant all on nextcloud.* to 'nextcloud'@'%'; |
Version vom 13. Januar 2018, 18:49 Uhr
Voraussetzungen
sudo apt-get install libapache2-mod-php7.0 php7.0-gd php7.0-json php7.0-mysql php7.0-curl sudo apt-get install php7.0-mbstring php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
Installation
wget https://download.nextcloud.com/server/releases/nextcloud-12.0.4.zip unzip nextcloud-12.0.4.zip sudo mv nextcloud /var/www/ cd /var/www/ sudo chown -R www-data:www-data nextcloud
Links
https://nextcloud.com/install/
MySQL-Datenbank anlegen
mysql -u root -p mysql> create database if not exists <database name>; mysql> create user 'nextcloud'@'%' identified by '<password>'; mysql> grant all on nextcloud.* to 'nextcloud'@'%';
Konfiguration
Apache
Folgende Module werden benötigt/empfohlen:
sudo a2enmod rewrite sudo a2enmod headers sudo a2enmod env sudo a2enmod dir sudo a2enmod mime
Danach Apache neu starten:
sudo service apache2 restart
HTTPS
Erstellung eines SSL-Zertifikates siehe SSL_Zertifikat
cd /etc/apache2/sites-available/ sudo nano nextcloud.conf
<VirtualHost *:80> ServerName nextcloud.kirner.or.at ServerAlias nextcloud.kirner.or.at Redirect / https://nextcloud.kirner.or.at </VirtualHost>
sudo nano nextcloud-ssl.conf
<VirtualHost *:443> ServerName nextcloud.kirner.or.at ServerAlias nextcloud.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/nextcloud.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/nextcloud KeepAlive On KeepAliveTimeout 5 <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload" </IfModule> 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 service apache2 reload
Migration / Update
Migration Owncloud to Nextcloud
Apps
Links
Zurück zu Ubuntu