User Tools

Site Tools


services:dokuwiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
services:dokuwiki [2026/02/06 23:46] – external edit 127.0.0.1services:dokuwiki [2026/02/08 08:35] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 ====== DokuWiki ====== ====== DokuWiki ======
  
-Self-hosted wiki (diese Seite!).+Wiki für Infrastruktur-Dokumentation.
  
-===== Access =====+===== Details =====
  
-Item ^ Value ^ +Key ^ Value ^
-| URL | [[https://wiki.home.miskam.xyz]] | +
-| Internal | [[https://wiki.srv.internal]] |+
 | Container | CT 113 | | Container | CT 113 |
-| IP | 10.100.161.113:80 |+| IP | 10.100.161.113 
 +| Port | 80 
 +| RAM | 512 MB | 
 +| URL | https://wiki.home.miskam.xyz |
  
-===== Installation =====+===== Features =====
  
-<code bash> +  * Flat-file Storage (kein DB nötig) 
-# Container erstellen +  * Markdown-ähnliche Syntax 
-pct create 113 local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst \ +  * Versionierung 
-  --hostname dokuwiki \ +  * ACL (Access Control) 
-  --memory 512 --swap 256 \ +  * Plugins
-  --cores 1 \ +
-  --net0 name=eth0,bridge=vmbr0,tag=160,ip=10.100.161.113/23,gw=10.100.161.254 \ +
-  --features nesting=1 \ +
-  --unprivileged 1 \ +
-  --start 1+
  
-# Nginx + PHP installieren +===== Struktur =====
-pct exec 113 -- bash -c ' +
-apt update +
-apt install -y nginx php-fpm php-xml php-mbstring php-gd php-intl wget unzip +
-'+
  
-# DokuWiki herunterladen +<code> 
-pct exec 113 -- bash -c ' +/var/www/dokuwiki/ 
-cd /tmp +├── data/ 
-wget https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz +│   ├── pages         # Wiki-Seiten (.txt) 
-tar xzf dokuwiki-stable.tgz +│   ├── media/          # Uploads 
-mv dokuwiki-*/ /var/www/dokuwiki +│   ├── meta          # Metadaten 
-chown -R www-data:www-data /var/www/dokuwiki +│   └── attic         # Alte Versionen 
-'+├── conf              # Konfiguration 
 +└── lib/plugins       # Plugins 
 +</code>
  
-# Nginx Config +===== Namespaces =====
-pct exec 113 -- tee /etc/nginx/sites-available/dokuwiki << 'NGINX' +
-server { +
-    listen 80; +
-    server_name _; +
-    root /var/www/dokuwiki; +
-    index doku.php;+
  
-    location / { +^ Namespace ^ Inhalt ^ 
-        try_files $uri $uri/ @dokuwiki; +| infrastructure | Server, Bootstrap, Proxmox | 
-    }+| services | Service-Dokumentation | 
 +| network | VLANs, Firewall |
  
-    location @dokuwiki { +===== Backup =====
-        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last; +
-        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last; +
-        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last; +
-        rewrite ^/(.*) /doku.php?id=$1&$args last; +
-    }+
  
-    location ~ \.php$ { +<code bash> 
-        include snippets/fastcgi-php.conf; +rsync -av /var/www/dokuwiki/data/ backup/dokuwiki/
-        fastcgi_pass unix:/run/php/php-fpm.sock; +
-    } +
- +
-    location ~ /(data|conf|bin|inc)+
-        deny all; +
-    } +
-+
-NGINX +
- +
-pct exec 113 -- ln -sf /etc/nginx/sites-available/dokuwiki /etc/nginx/sites-enabled/ +
-pct exec 113 -- rm -f /etc/nginx/sites-enabled/default +
-pct exec 113 -- systemctl restart nginx php*-fpm+
 </code> </code>
  
-==== Setup Wizard ==== +===== Webserver =====
- +
-  - Öffne http://10.100.161.113/install.php +
-  - Admin-Account anlegen +
-  - install.php löschen: ''rm /var/www/dokuwiki/install.php'' +
- +
-===== Configuration ===== +
- +
-^ File ^ Purpose ^ +
-| /var/www/dokuwiki/conf/local.php | Main config | +
-| /var/www/dokuwiki/conf/users.auth.php | Users | +
-| /var/www/dokuwiki/conf/acl.auth.php | Permissions | +
- +
-===== Management =====+
  
 +Nginx + PHP-FPM:
 <code bash> <code bash>
-# Status +systemctl status nginx php8.2-fpm
-pct exec 113 -- systemctl status nginx php*-fpm +
- +
-# Logs +
-pct exec 113 -- tail -f /var/log/nginx/error.log+
 </code> </code>
  
-===== Backup =====+===== Ansible =====
  
 <code bash> <code bash>
-# Flat-file — einfach Ordner sichern +ansible-playbook site.yml --limit dokuwiki
-tar czf dokuwiki_backup_$(date +%Y%m%d).tar.gz \ +
-  /var/www/dokuwiki/data \ +
-  /var/www/dokuwiki/conf+
 </code> </code>
  
-===== Related =====+===== Links =====
  
-  * [[infrastructure:containers|Containers]] - CT 113 details+  * [[https://www.dokuwiki.org/manual|DokuWiki Manual]] 
 +  * [[wiki:syntax|Syntax Reference]]
  
services/dokuwiki.1770421619.txt.gz · Last modified: by 127.0.0.1