# Re: Can't fix "No input file specified." with php-fastcgi

**URL:** <https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461>\
**Category:** NGINX\
**Created:** [September 4, 2011, 11:19pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461 "2011-09-04T23:19:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [September 4, 2011, 11:19pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461/1 "2011-09-04T23:19:43Z")

</div>

What aplication are you using? I mean with php?

---

<div class="post-metadata">

**Author:** ![Guillermo\_Garron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@Guillermo\_Garron](https://www.ruby-forum.com/u/Guillermo_Garron)\
**Post date:** [September 4, 2011, 11:21pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461/2 "2011-09-04T23:21:34Z")

</div>

I only have 2 php files at this time because the rest of the server is  
using ruby. It’s just standard php and not even very much php.

Posted at Nginx Forum:

> **[Re: Can't fix "No input file specified." with php-fastcgi](https://forum.nginx.org/read.php?2,214746,214758#msg-214758)**
>
> I've been trying to fix this pesky error for a couple days and no forums or anything is suggesting anything that is helping. I simply just need someone to login to my EC2 instance and figure out what's going on. I've tried reinstalling php to all the...

---

<div class="post-metadata">

**Author:** ![Guillermo\_Garron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@Guillermo\_Garron](https://www.ruby-forum.com/u/Guillermo_Garron)\
**Post date:** [September 5, 2011, 8:18pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461/3 "2011-09-05T20:18:10Z")

</div>

Please post your nginx.conf here, because the error can be in the nginx  
configuration. Also make sure to have cgi.fix\_pathinfo=1 in your  
php.ini.

Andrejs

Posted at Nginx Forum:

> **[Re: Can't fix "No input file specified." with php-fastcgi](https://forum.nginx.org/read.php?2,214746,214834#msg-214834)**
>
> I've been trying to fix this pesky error for a couple days and no forums or anything is suggesting anything that is helping. I simply just need someone to login to my EC2 instance and figure out what's going on. I've tried reinstalling php to all the...

---

<div class="post-metadata">

**Author:** ![Guillermo\_Garron](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@Guillermo\_Garron](https://www.ruby-forum.com/u/Guillermo_Garron)\
**Post date:** [September 5, 2011, 8:21pm UTC](https://www.ruby-forum.com/t/re-cant-fix-no-input-file-specified-with-php-fastcgi/211461/4 "2011-09-05T20:21:53Z")

</div>

cgi.fix is already set in php.ini

#user nobody;  
worker\_processes 3;

#error\_log logs/error.log;  
#error\_log logs/error.log notice;  
#error\_log logs/error.log info;

#pid logs/nginx.pid;

events {  
worker\_connections 1024;  
}

http {  
passenger\_root /usr/local/lib/ruby/gems/1.8/gems/passenger-3.0.8;  
passenger\_ruby /usr/local/bin/ruby;

```
include mime.types;
default_type application/octet-stream;

#log_format main '$remote_addr - $remote_user [$time_local]

```

“$request” ’  
# '$status $body\_bytes\_sent “$http\_referer” ’  
# ‘“$http\_user\_agent” “$http\_x\_forwarded\_for”’;

```
#access_log logs/access.log main;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

#gzip on;

server {
    listen 80;
    server_name localhost;

    #charset koi8-r;

    #access_log logs/host.access.log main;
    location / {
            root /var/www/contest;
            index index.php index.html index.htm;
    }

    location /staging {
            root

```

/var/www/FreeFallHighScoreWebStuff/current/public;  
passenger\_enabled on;  
passenger\_min\_instances 3;  
}

```
    location /staging_assets {
            root

```

/var/www/FreeFallHighScoreWebStuff/current/public;  
}

```
    #error_page 404 /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root html;
    }

    location /gitphp {
            root /var/www;
            index index.php index.html index.htm;
    }

    ## Parse all .php file in the /var/www directory
    location ~ .php$ {
            root /var/www;
            fastcgi_split_path_info ^(.+\.php)(.*)$;
            fastcgi_pass backend;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME

```

/var/www$fastcgi\_script\_name;  
include fastcgi\_params;  
fastcgi\_param QUERY\_STRING $query\_string;  
fastcgi\_param REQUEST\_METHOD $request\_method;  
fastcgi\_param CONTENT\_TYPE $content\_type;  
fastcgi\_param CONTENT\_LENGTH $content\_length;  
fastcgi\_intercept\_errors on;  
fastcgi\_ignore\_client\_abort off;  
fastcgi\_connect\_timeout 60;  
fastcgi\_send\_timeout 180;  
fastcgi\_read\_timeout 180;  
fastcgi\_buffer\_size 128k;  
fastcgi\_buffers 4 256k;  
fastcgi\_busy\_buffers\_size 256k;  
fastcgi\_temp\_file\_write\_size 256k;  
}

```
    location ~ /\.ht {
        deny all;
    }
}

```

upstream backend {  
server 127.0.0.1:9000;  
}  
}

Posted at Nginx Forum:

> **[Re: Can't fix "No input file specified." with php-fastcgi](https://forum.nginx.org/read.php?2,214746,214835#msg-214835)**
>
> I've been trying to fix this pesky error for a couple days and no forums or anything is suggesting anything that is helping. I simply just need someone to login to my EC2 instance and figure out what's going on. I've tried reinstalling php to all the...
