title: "No input file specified" nginx does not interpret php
body: <p>I have replaced in PHP the configuration from apache to nginx, and this is what my nginx config looks like</p>
  <pre><code>user              nginx;
  worker_processes  1;
  
  error_log  /var/log/nginx/error.log;
  #error_log  /var/log/nginx/error.log  notice;
  #error_log  /var/log/nginx/error.log  info;
  
  pid        /var/run/nginx.pid;
  
  
  events {
      worker_connections  1024;
  }
  
  
  http {
      include       /etc/nginx/mime.types;
      default_type text/html;
  
      log_format  main  '$remote_addr - $remote_user [$time_local] &quot;$request&quot; '
                        '$status $body_bytes_sent &quot;$http_referer&quot; '
                        '&quot;$http_user_agent&quot; &quot;$http_x_forwarded_for&quot;';
  
      access_log  /var/log/nginx/access.log  main;
  
      sendfile        on;
      #tcp_nopush     on;
  
      #keepalive_timeout  0;
      keepalive_timeout  65;
  
      #gzip  on;
  
      # Load config files from the /etc/nginx/conf.d directory
      # The default server is in conf.d/default.conf
      include /etc/nginx/conf.d/*.conf;
  
  }
  </code></pre>
  <p>Also, my server's configuration looks like this</p>
  <pre><code> server {
       listen 80;
       server_name  prod.my-domain.com;
       root   /usr/share/nginx/html/prod.my-domain.com;
  
       location / {
             root /usr/share/nginx/html/prod.my-domain.com;
       }
  
     location ~ \.php$ {
          include /etc/nginx/fastcgi_params;
          fastcgi_pass  127.0.0.1:9000;
          fastcgi_index index.php;
          fastcgi_param  SCRIPT_FILENAME  /root/share/nginx/html/prod.my-domain.com$fastcgi_script_name;
      }
     }
  </code></pre>
  <p>All the HTML files/images are shown, but php files, even if its <code>index.php</code> show</p>
  <blockquote>
  <p>No input file specified</p>
  </blockquote>
  <p>I have error reporting on. I don't know what the problem is</p>
  <h2>edit</h2>
  <p>Ok, I changed the server configuration to the below</p>
  <pre><code> server {
       listen 80;
       server_name  demo.simons.co.de;
       root   /usr/share/nginx/html/prod.my-domain.com;
  
       location / {
             root /usr/share/nginx/html/prod.my-domain.com;
            index index.php index.html index.htm;
       }
  
     location ~.\.php$ {
        #  include /etc/nginx/fastcgi_params;
        # fastcgi_pass   unix:/var/run/php-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param  SCRIPT_FILENAME  /root/share/nginx/htmli/$document_root$fastcgi_script_name;
      }
     }
  </code></pre>
  <p>Now, when I visit this url <code>prod.my-domain.com/index.php</code> I see only black page
  but <code>prod.my-domain.com/index.html</code> I can see all the contents</p>