Anleitung aktualisiert

This commit is contained in:
2018-08-18 11:47:51 +02:00
parent e2ea1ef41d
commit cc11742711

View File

@ -23,7 +23,17 @@ sudo usermod -a -G www-data www-data
**Benötigte Pakete installieren**
```xml
sudo apt install nginx openssl ssl-cert php5-cli php5-sqlite php5-gd php5-common php5-cgi sqlite3 php-pear php-apc curl libapr1 libtool curl libcurl4-openssl-dev php-xml-parser php5 php5-dev php5-curl php5-gd php5-fpm memcached php5-memcache varnish -y
sudo apt install apt-transport-https ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update
sudo apt install php7.2 -y
sudo apt install php7.2-fpm php7.2-mysql php7.2-common php7.2-gd php7.2-json php7.2-cli php7.2-curl php7.2-xml php7.2-zip php7.2-mbstring php7.2-apcu -y
sudo update-rc.d apache2 disable
sudo reboot
suao apt install nginx -y
```
**Eigenes SSL-Zertifikat erstellen**
@ -254,20 +264,31 @@ exit
**Benötigte Pakete installieren**
```xml
sudo apt install mysql-server php5-mysql -y
sudo apt install mysql-server -y
```
(Während des Vorgangs das root Passwort festlegen)
**MySQL einrichten**
```xml
sudo mysql_secure_installation
```
Set root password: Y
Remove anonymous users: n
Disallow root login remotely: n
Remove test database and asccess to it: Y
Reload privilege tables now: Y
**Datenbank erstellen**
```xml
mysql -p -u USER
sudo mysql -p -u USER
CREATE DATABASE IF NOT EXISTS nextcloud;
exit
```
## Nextcloud öffnen & konfigurieren
* IP-Adresse des Raspberry Pi im Browser eingeben
* \<IP-Adresse des Raspberry Pi\>/nextcloud im Browser eingeben
* Administrator-Account erstellen
* Unten bei Speicher & Datenbank „MySQL/MariaDB“ auswählen