This shows you the differences between two versions of the page.
projectinsanity:server_setup_experimental [2018/06/06 13:05] – created 141.52.104.86 | projectinsanity:server_setup_experimental [2021/10/31 10:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== http-d9.pi ====== | ||
+ | ===== pi_wordpress ===== | ||
+ | Neuer zentraler http-Server, | ||
+ | <code bash> | ||
+ | useradd pi_ts3 -u -g | ||
+ | useradd -m -u $((4325376+33)) pi_wordpress | ||
+ | </ | ||
+ | Folgendes Skript erstellt ein ZFS-Volume mit dem angegebenen Namen. Führt danach ein deboostrap aus und installiert die in $name/vars angegebenen Packete. Die nspawn-Konfigurationsdatei, | ||
+ | <code bash> | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | <file - / | ||
+ | [Exec] | ||
+ | PrivateUsers=4325376 | ||
+ | [Files] | ||
+ | PrivateUsersChown=true | ||
+ | BindReadOnly=/ | ||
+ | Bind=/ | ||
+ | </ | ||
+ | <file - / | ||
+ | [Exec] | ||
+ | PrivateUsers=2097152 | ||
+ | |||
+ | [Files] | ||
+ | PrivateUsersChown=true | ||
+ | BindReadOnly=/ | ||
+ | Bind=/ | ||
+ | </ | ||
+ | <file - / | ||
+ | [Exec] | ||
+ | PrivateUsers=4390912 | ||
+ | |||
+ | [Files] | ||
+ | PrivateUsersChown=true | ||
+ | Bind=/ | ||
+ | Bind=/ | ||
+ | BindReadOnly=/ | ||
+ | BindReadOnly=/ | ||
+ | |||
+ | [Network] | ||
+ | VirtualEthernet=false | ||
+ | Private=false | ||
+ | </ | ||
+ | < | ||
+ | systemctl start systemd-nspawn@pi_ts3 | ||
+ | systemctl enable systemd-nspawn@pi_ts3 | ||
+ | systemctl start systemd-nspawn@pi_wordpress | ||
+ | systemctl enable systemd-nspawn@pi_wordpress | ||
+ | systemctl start systemd-nspawn@caddy | ||
+ | systemctl enable systemd-nspawn@caddy | ||
+ | </ | ||
+ | Todo: private-network oder firewall? | ||
+ | ===== caddy ===== | ||
+ | <code bash> | ||
+ | vim / | ||
+ | systemctl restart systemd-nspawn@caddy | ||
+ | </ | ||
+ | ===== wordpress ===== | ||
+ | |||
+ | SSL für administrativen Bereich erzwingen: | ||
+ | <file php / | ||
+ | define(‘FORCE_SSL_ADMIN’, | ||
+ | /* That’s all, stop editing! Happy blogging. */ | ||
+ | </ | ||
+ | Plugins und Wordpress ohne FTP-Zugang direkt aktualisieren: | ||
+ | <file php / | ||
+ | define(' | ||
+ | /* That’s all, stop editing! Happy blogging. */ | ||
+ | </ | ||
+ | Möglicherweise müssen noch die Schreibrechte für den '' | ||
+ | ==== plugins ==== | ||
+ | * WP Statistics | ||
+ | * Crayon Syntax Highlighter | ||
+ | * Gallery Carousel Without JetPack |