title: How to run php-file on nginx-server?
body: <p>currently I'm trying to run a php file on my nginx server. I downloaded all packages, changed the config file, but it is still not working. I can open my index.html, but when I open my php file it just downloads it.<br />
  <a href="https://i.stack.imgur.com/WWaDL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WWaDL.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/Cz6iQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Cz6iQ.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/lw5x3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lw5x3.png" alt="enter image description here" /></a></p>
  <p>My code of the config file:
  server {
  listen 80 default_server;</p>
  <pre><code>root /var/www/html;
  index index.html index.htm index.php index.nginx-debian.html;
  
  server_name test;
  
  location / {
  
      try_files $uri $uri/ =404;
  }
  location ~ \.php$ {
      try_files $uri $uri/ =404;
      include snippets/fastcgi-php.conf;
      fastcgi_pass unix: /var/run/php/php8.0-fpm.sock
  }
  </code></pre>
  <p>}</p>
  <p>Please help me.</p>