Nextcloud Installation auf Ubuntu 20.04 Server – Schritt-für-Schritt Anleitung

In diesem Video zeige Ich euch, wie Ihr Nextcloud auf einem Linux Server mit Ubuntu 20.04 als Betriebsystem installieren könnt.

» Relevante Videos:
DynDNS mit der Fritz!Box: https://youtu.be/0ZhKv-DTnwQ
DynDNS mit dem Raspberry Pi: https://youtu.be/AhrXxHwbss8
Nextcloud Installation Ubuntu 19.10: https://youtu.be/lEgJXNeXRMw
Nextcloud Installation Ubuntu 18.04: https://youtu.be/PSMqa__ipuM

» Relevante Playlists:
Nextcloud Playlist: https://www.youtube.com/playlist?list=PLLg1WgOBYXOtQOwYQjJc1GbuYz-wJgmtN
Nextcloud Quick Tipps: https://www.youtube.com/playlist?list=PLLg1WgOBYXOt44ZoGMEem1veu6d-SeN5C

» Server Empfehlungen:
Linux vServer bei Strato: https://www.strato.de/server/linux-vserver/
Linux vServer bei Hetzner: https://www.hetzner.de/cloud

 

 

#### nextcloud Easy Install ####

# updating 
apt-get update
apt-get upgrade

# Installing LAMP-Stack
apt install lamp-server^

# Install PHP Moduls
apt install php-zip php-dompdf php-xml php-mbstring php-gd php-curl php-imagick php-intl unzip

# adjust PHP.ini file
nano /etc/php/7.4/apache2/php.ini


memory_limit = 1024M
upload_max_filesize = 16G
post_max_size = 16G
date.timezone = Europe/Berlin


# Maria DB Server Konfiguration
mysql_secure_installation

# open SQL dialoge
mysql

# create database calles nextcloud
CREATE DATABASE nextcloud;

# create database user with password
CREATE USER 'nextclouduser'@'localhost' IDENTIFIED BY 'password_here';

#grant accesss to databse
GRANT ALL PRIVILEGES ON nextcloud.* TO 'nextclouduser'@'localhost';

#save changes and exit
FLUSH PRIVILEGES;
EXIT;

# Download lastest nextcloud version
cd /tmp && wget https://download.nextcloud.com/server/releases/latest.zip
unzip latest.zip
mv nextcloud /var/www/

#create new conf
nano /etc/apache2/sites-available/nextcloud.conf

<VirtualHost *:80>
     ServerAdmin master@domain.com
     DocumentRoot /var/www/nextcloud/
     ServerName cloud.domain.com
     ServerAlias www.cloud.domain.com
  
     Alias /nextcloud "/var/www/nextcloud/"

     <Directory /var/www/nextcloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
          </IfModule>
        SetEnv HOME /var/www/nextcloud
        SetEnv HTTP_HOME /var/www/nextcloud
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

# Enable the NextCloud and Rewrite Module

a2ensite nextcloud.conf
a2enmod rewrite
a2enmod headers
a2enmod env
a2enmod dir
a2enmod mime

# restart apache
systemctl restart apache2.service

# prepare data folder
mkdir /home/data/
chown -R www-data:www-data /home/data/

chown -R www-data:www-data /var/www/nextcloud/
chmod -R 755 /var/www/nextcloud/

--> Domain ansurfen und Einrichtung abschließen


## Let's Encrypt SSL Zertifikat ##

apt install certbot python3-certbot-apache

certbot --apache -m master@domain.com -d cloud.domain.com

#--> only lasts 90 days

#install crontab
crontab -e

0 1 * * * /usr/bin/certbot renew & > /dev/nul

 

apfelcast Support

Du benötigst Unterstützung bei deinem Projekt oder hast Fragen zur Umsetzung?
Dann melde ich gern bei uns!

[button link=“https://apfelcast.com/kontakt“ type=“big“ class=“ custom-button“] Kontaktieren[/button]

apfelcast Support

Du benötigst Unterstützung bei deinem Projekt oder hast Fragen zur Umsetzung?
Dann melde ich gern bei uns!

Ähnliche Beiträge