dienste:bytecluster0002:wordpress-technikkultur

Dies ist eine alte Version des Dokuments!


Container 'wordpress-technikkultur'

  • 0.5 GB RAM
  • 2 Cores
  • 8 GB HDD (root-fs)
  • interne IPs
    • 10.2.0.5, fd00:10:2:0::5
    • 10.3.0.5, fd00:10:3:0::5
  • Wordpress (via NGINX)
  • Standard-Template mit Benutzern
  1. 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
  2. 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;
            }
    }
  3. Dienste aktivieren und neustarten
    • sudo systemctl enable nginx.service php7.3-fpm.service
    • sudo systemctl restart nginx.service php7.3-fpm.service
  1. Wordpress-Verzeichnisse erstellen
    • sudo mkdir /var/www/public_html
  2. Datenbank erstellen
  3. Wordpress installieren
    • nach Anleitung
      • Entpacken in das Verzeichnis /var/www/public_html
  4. Berechtigungen anpassen
    • sudo chown -R www-data:www-data /var/www/public_html
  1. Installation siehe mariadb
  2. 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
    ...
  • dienste/bytecluster0002/wordpress-technikkultur.1609252279.txt.gz
  • Zuletzt geändert: 29.12.2020 15:31
  • von mape2k