Dies ist eine alte Version des Dokuments!
Container 'wordpress-technikkultur'
Ressourcen
- 0.5 GB RAM
- 2 Cores
- 8 GB HDD (root-fs)
System
- interne IPs
- 10.2.0.5, fd00:10:2:0::5
- 10.3.0.5, fd00:10:3:0::5
Dienste
- Wordpress (via NGINX)
Installation
- Standard-Template mit Benutzern
NGINX / PHP
- NGINX und PHP-FPM installieren
- sudo apt-get install php7.3 php7.3-cli php7.3-fpm php7.3-gd php7.3-xml php7.3-zip php7.3-mbstring php7.3-mysql php7.3-imagick php7.3-curl nginx
- Default-Konfiguration anpassen
/etc/nginx/sites-available/default
server { listen 80 default_server; listen [::]:80 default_server; root /var/www/public_html; # Add index.php to the list if you are using PHP index index.php; server_name _; location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location / { # This is cool because no php is touched for static content. # include the "?$args" part so non-default permalinks doesn't break when using query string try_files $uri $uri/ /index.php?$args; } # pass PHP scripts to FastCGI server location ~ \.php$ { #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include fastcgi_params; fastcgi_intercept_errors on; fastcgi_pass unix:/run/php/php7.3-fpm.sock; #The following parameter can be also included in fastcgi_params file fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } }
- Dienste aktivieren und neustarten
- sudo systemctl enable nginx.service php7.3-fpm.service
- sudo systemctl restart nginx.service php7.3-fpm.service
Wordpress
- Wordpress-Verzeichnisse erstellen
- sudo mkdir /var/www/public_html
- Datenbank erstellen
- Wordpress installieren
- nach Anleitung
- Entpacken in das Verzeichnis /var/www/public_html
- Berechtigungen anpassen
- sudo chown -R www-data:www-data /var/www/public_html
Backup mit Borgmatic
- Installation siehe mariadb
- Konfiguration
/etc/borgmatic/config.yaml
... location: # List of source directories to backup (required). Globs and # tildes are expanded. source_directories: - /etc - /home - /root - /var/log - /var/www ...