Kapitel 7/Tutorial.md aktualisiert
This commit is contained in:
@@ -71,6 +71,7 @@ apt install -y nginx redis-server postgresql php8.3-fpm php8.3-pgsql php8.3-cli
|
|||||||
mkdir -p /srv/nextcloud/app
|
mkdir -p /srv/nextcloud/app
|
||||||
mkdir -p /mnt/hdd/nextcloud_data
|
mkdir -p /mnt/hdd/nextcloud_data
|
||||||
chown -R www-data:www-data /mnt/hdd/nextcloud_data
|
chown -R www-data:www-data /mnt/hdd/nextcloud_data
|
||||||
|
chmod 750 /mnt/hdd/nextcloud_data
|
||||||
```
|
```
|
||||||
|
|
||||||
## ⚙️ PHP konfigurieren
|
## ⚙️ PHP konfigurieren
|
||||||
@@ -137,10 +138,16 @@ psql
|
|||||||
CREATE DATABASE nextcloud;
|
CREATE DATABASE nextcloud;
|
||||||
CREATE USER nextcloud WITH PASSWORD 'DEIN_SICHERES_PASSWORT';
|
CREATE USER nextcloud WITH PASSWORD 'DEIN_SICHERES_PASSWORT';
|
||||||
GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud;
|
GRANT ALL PRIVILEGES ON DATABASE nextcloud TO nextcloud;
|
||||||
GRANT ALL ON SCHEMA public TO nextcloud;
|
|
||||||
ALTER SCHEMA public OWNER TO nextcloud;
|
|
||||||
\q
|
\q
|
||||||
```
|
```
|
||||||
|
```sql
|
||||||
|
psql -d nextcloud
|
||||||
|
-- Zugriff auf public erlauben
|
||||||
|
GRANT ALL ON SCHEMA public TO nextcloud;
|
||||||
|
|
||||||
|
-- Und Ownership auf den Nutzer übertragen
|
||||||
|
ALTER SCHEMA public OWNER TO nextcloud;
|
||||||
|
```
|
||||||
|
|
||||||
Dann wieder raus:
|
Dann wieder raus:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user