title: Nginx serves .php files as downloads, instead of executing them
body: <p>I am installing a website in a droplet (Digital Ocean). I have an issue for install NGINX with PHP properly. I did a tutorial <a href="https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04</a> but when I try to run some .php files it's just downloading it...
  for example... <code>http://5.101.99.123/info.php</code> it's working but... If I go to the main <code>http://5.101.99.123</code> it's downloading my index.php :/</p>
  <p>Any idea?</p>
  <pre><code>-rw-r--r--  1 agitar_user www-data   418 Jul 31 18:27 index.php
  -rw-r--r--  1 agitar_user www-data    21 Aug 31 11:20 info.php
  </code></pre>
  <p>My  <strong>/etc/nginx/sites-available/default</strong></p>
  <pre><code>server {
          listen 80 default_server;
          listen [::]:80 default_server ipv6only=on;
  
          root /var/www/html;
          index index.html index.htm index.php;
  
          # Make site accessible from http://localhost/
          server_name agitarycompartir.com;
  
                 location ~ \.php$ {
                      fastcgi_split_path_info ^(.+\.php)(/.+)$;
      ## NOTE: You should have &quot;cgi.fix_pathinfo = 0;&quot; in php.ini
      #
      #               # With php5-cgi alone:
      #               fastcgi_pass 127.0.0.1:9000;
      #               # With php5-fpm:
                      fastcgi_pass unix:/var/run/php5-fpm.sock;
                      fastcgi_index index.php;
                      include fastcgi_params;
              }
    
  
                location / {
                      
                      try_files $uri $uri/ =404;
                      # Uncomment to enable naxsi on this location
                      # include /etc/nginx/naxsi.rules
              }
  </code></pre>
  <p>...</p>
  <p>Other &quot;locations&quot; are commented on...</p>
  <p>.</p>