docs: add Plesk admin notes and GoAccess web stats
Document Git/Composer capabilities, hosting settings, and backlog todo 10; record switch from AWStats to GoAccess. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
# Plesk — Admin-Notizen
|
||||
|
||||
Entdeckte Funktionen und Einstellungen im Plesk-Adminbereich für `0012.de`.
|
||||
Stand: 2026-06-11. Kein unmittelbarer Umsetzungsbedarf — Referenz für spätere Entscheidungen.
|
||||
|
||||
Siehe auch: [`HOSTING.md`](HOSTING.md)
|
||||
|
||||
---
|
||||
|
||||
## Git-Repositorys
|
||||
|
||||
Plesk: **Websites & Domains → 0012.de → Git-Repositorys**
|
||||
|
||||
Zwei Modelle:
|
||||
|
||||
| Modell | Ablauf | Wann sinnvoll |
|
||||
|--------|--------|---------------|
|
||||
| **Remote-Repository** | Code bei GitHub/GitLab/Bitbucket oder eigenem Git-Server; Plesk **pullt** | CI/CD-light: Push ins Remote → Plesk holt bei Deploy |
|
||||
| **Lokales Repository** | Code auf Laptop o. ä.; du **pushst** auf Plesk-Git-Endpoint | Kein öffentliches Remote nötig; Plesk als Git-Remote |
|
||||
|
||||
### Aktueller Stand im Projekt
|
||||
|
||||
Deploy läuft über **`scripts/deploy.sh`** (FTPS):
|
||||
|
||||
- `public/` → `httpdocs/`
|
||||
- `config/` + `.env` → `private/` (manuell mit deploy.py, `.env` nie im Git)
|
||||
|
||||
### Wenn Git in Plesk genutzt wird (später)
|
||||
|
||||
- Repo-Root in Plesk ≠ Document Root — **Deploy-Aktion** oder Post-Receive-Hook nötig, um nur `public/` nach `httpdocs/` zu spiegeln
|
||||
- `.env` bleibt **außerhalb Git** (Plesk-Geheimnisse oder weiter manuell nach `private/.env`)
|
||||
- Remote-Variante passt gut zu **GitLab** (dieses Repo), wenn Remote-URL + Deploy-Key/Token in Plesk hinterlegt werden
|
||||
- Entscheidung offen: FTPS beibehalten (einfach, funktioniert) vs. Plesk-Git (weniger manuell, mehr Plesk-Konfiguration)
|
||||
|
||||
---
|
||||
|
||||
## PHP Composer
|
||||
|
||||
Plesk: **Websites & Domains → 0012.de → PHP Composer**
|
||||
|
||||
- Sucht `composer.json` im **Stammverzeichnis des Abonnements** (`/`, nicht nur `httpdocs/`)
|
||||
- Button „Suchen“ findet Anwendung und erlaubt `composer install` aus dem Panel
|
||||
|
||||
### Aktueller Stand
|
||||
|
||||
- **Keine** `composer.json` im Projekt — bewusst schlanke Plain-PHP-Lösung (Monitoring, Landing)
|
||||
- Sinnvoll erst bei echten Abhängigkeiten, z. B.:
|
||||
- PHPMailer für SMTP
|
||||
- HTTP-Client-Bibliothek
|
||||
- Dann: `composer.json` im Repo-Root, `vendor/` in `.gitignore`, nach Deploy `composer install` (lokal, per SSH falls verfügbar, oder Plesk Composer UI)
|
||||
|
||||
---
|
||||
|
||||
## Hosting-Einstellungen (Screenshot)
|
||||
|
||||
Plesk: **Hosting-Einstellungen** (bzw. Hosting & DNS → Hosting-Einstellungen)
|
||||
|
||||
### Webstatistiken
|
||||
|
||||
| Einstellung | Aktuell | Optionen |
|
||||
|-------------|---------|----------|
|
||||
| Tool | **GoAccess** | Deaktiviert, AWStats (Veraltet), Webalizer |
|
||||
| Zugriffsschutz | **an** — FTP-User/Passwort | — |
|
||||
|
||||
Stand 2026-06-11: von AWStats auf GoAccess umgestellt.
|
||||
|
||||
**Notiz:** GoAccess liefert moderne Traffic-Auswertung im Panel. Für Monitoring der *eigenen* Dienste (boka, schwenk.online, …) irrelevant — das macht `monitor.php`.
|
||||
|
||||
### Web-Scripting
|
||||
|
||||
| Feature | Aktuell | Relevanz für 0012.de |
|
||||
|---------|---------|----------------------|
|
||||
| FastCGI | aus | PHP läuft über Plesk-PHP-Handler (FPM); Toggle meist legacy |
|
||||
| CGI | aus | nicht benötigt |
|
||||
| SSI | **an** | nicht nötig für reines PHP; harmlos |
|
||||
| Benutzerdefinierte Fehlerdokumente | **an** | später eigene 404/50x in `httpdocs/error_docs/` möglich |
|
||||
|
||||
Keine Änderung empfohlen, solange PHP-Seiten normal laufen.
|
||||
|
||||
---
|
||||
|
||||
## Plesk-Pfade (Referenz)
|
||||
|
||||
| Pfad | Inhalt |
|
||||
|------|--------|
|
||||
| `httpdocs/` | Document Root (öffentlich) |
|
||||
| `private/` | Nicht öffentlich — `.env`, `config/`, `data/` |
|
||||
| `/` (Abonnement-Root) | Root für Composer-Suche, Git-Checkout je nach Konfiguration |
|
||||
|
||||
---
|
||||
|
||||
## Backlog
|
||||
|
||||
Optionale spätere Aufgabe: [`todo/10-optional-plesk-git-composer.md`](todo/10-optional-plesk-git-composer.md)
|
||||
Reference in New Issue
Block a user