title: NGINX downloads PHP file instead of showing
body: <p>I'm trying to display index.php and info.php on my NGINX webserver but i cant get it working for some reason, my browser keeps downloading the files instead of displaying them. I tried alot of tutorials but i dont know whats wrong.</p>
  
  <p>OS: Ubuntu 17.10 Server</p>
  
  <p>PHP version: 7.1</p>
  
  <p>cgi.fix_pathinfo is set to 0</p>
  
  <p>www.conf file is default except de cgi.fix_pathinfo</p>
  
  <pre><code>server {
      listen 80 default_server;
      listen [::]:80 default_server;
  
  
      root /var/www/html;
  
    # Add index.php to the list if you are using PHP
      index index.php index.html index.htm index.nginx-debian.html;
  
      server_name nginx1.domain.com;
  
      location / {
          try_files $uri $uri/ =404;
     }
  
      location ~ \.php$ {
              try_files $uri $uri/ =404;
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
      #       # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
      #
      #       # With php5-cgi alone:
              fastcgi_pass 127.0.0.1:9000;
      #       # With php5-fpm:
                  fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
              fastcgi_index index.php;
              include fastcgi_params;
      }
  
      #location ~ /\.ht {
      #       deny all;
      #}
  }
  </code></pre>
  
  <p>Can someone please help me?</p>