User Tools

Site Tools


lnmp_mit_debian_10_fuer_wordpress_herrrichten

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
Last revisionBoth sides next revision
lnmp_mit_debian_10_fuer_wordpress_herrrichten [2021/08/10 13:15] adminlnmp_mit_debian_10_fuer_wordpress_herrrichten [2021/08/10 13:29] admin
Line 1: Line 1:
 +====== Wordpress Installation auf nacktem VServer bei Hetzner mit Debian 10 ======
 +
 +
     1  apt update     1  apt update
  
Line 35: Line 38:
  
    14  nano /etc/nginx/sites-available/wordpress.conf    14  nano /etc/nginx/sites-available/wordpress.conf
 +        server {
 +         listen 80;
 +         root /var/www/html/wordpress;
 +         index index.php index.html index.htm;
 +         server_name example.com;
 +         access_log /var/log/nginx/wordpress_access.log;
 +         error_log /var/log/nginx/wordpress_error.log;
 +         client_max_body_size 64M;
 +         location / {
 +         try_files $uri $uri/ /index.php?$args;
 +         } 
 +         location ~ \.php$ {
 +         try_files $uri =404;
 +         include /etc/nginx/fastcgi_params;
 +         fastcgi_read_timeout 3600s;
 +         fastcgi_buffer_size 128k;
 +         fastcgi_buffers 4 128k;
 +         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 +         fastcgi_pass unix:/run/php/php7.3-fpm.sock;
 +         fastcgi_index index.php;
 +         }
 +         }
  
-<code> +   15  ln -s /etc/nginx/sites-available/wordpress.conf /etc/nginx/sites-enabled/
-server { +
- listen 80; +
- root /var/www/html/wordpress+
- index index.php index.html index.htm; +
- server_name example.com;+
  
- access_log /var/log/nginx/wordpress_access.log; +   16  systemctl restart nginx.service 
- error_log /var/log/nginx/wordpress_error.log;+
  
- client_max_body_size 64M;+   17  systemctl restart php7.3-fpm.service 
  
- location / { +   18  systemctl restart nginx.service 
- try_files $uri $uri/ /index.php?$args; +
-+
- +
- location ~ \.php$ { +
- try_files $uri =404; +
- include /etc/nginx/fastcgi_params; +
- fastcgi_read_timeout 3600s; +
- fastcgi_buffer_size 128k; +
- fastcgi_buffers 4 128k; +
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; +
- fastcgi_pass unix:/run/php/php7.3-fpm.sock; +
- fastcgi_index index.php; +
-+
- +
-+
-  </code>+
    
-   15  ln -s /etc/nginx/sites-available/wordpress.conf /etc/nginx/sites-enabled/ 
-  
-   16  systemctl restart nginx.service  
-  
-   17  systemctl restart php7.3-fpm.service  
-  
-   18  systemctl restart nginx.service  
-   
lnmp_mit_debian_10_fuer_wordpress_herrrichten.txt · Last modified: 2021/08/10 13:30 by admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki