Archiv für den Monat: Dezember 2019

LAMP mit Nextcloud

Ausgangsituation irgendein aktuelles Linuxsystem (z.B. Debian 10 mit Gasterweiterung in virtueller Maschine) … alles noch ungetestet!!!!

Aktualisieren: apt update && upgrade

Apache installieren: apt install apache2

Mariadb installieren: apt install mariadb-server

PHP installieren:apt install php7.3-gd php7.3-json php7.3-mysql php7.3-curl php7.3-mbstring php7.3-intl php-imagick php7.3-xml php7.3-zip libapache2-mod-php7.3

MariaDB absichern: mysql_secure_installation ->
meine config … geht auch bissie anders … bzw. nochmal überdenken und gegenchecken (tut unter UBUNTU)!!!
Enter current password for root (enter for none): Enter
Set root password? [Y/n]: N
Remove anonymous users? [Y/n]: Y
Disallow root login remotely? [Y/n]: Y
Remove test database and access to it? [Y/n]: Y
Reload privilege tables now? [Y/n]: Y

Datenbank für Nextcloud anlegen: mysql -u root
CREATE DATABASE nextcloud

Datenbankbenutzer anlegen:CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'deingeheimeswort';

Benutzer nextcloud alle Rechte an der Datenbank nextcloud geben:GRANT ALL ON nextcloud.* TO 'nextcloud'@'localhost' IDENTIFIED BY 'deingeheimeswort' WITH GRANT OPTION;
Änderung speichern und ausloggen: FLUSH PRIVILEGES; EXIT;

 

Einrichten des Let’s Encrypt https-Zertifikats mit Certbot:
ins Repository eintrgen: add-apt-repository ppa:certbot/certbot
updaten: apt install certbot python-certbot-apache