# Config help needed

**URL:** <https://www.ruby-forum.com/t/config-help-needed/212117>\
**Category:** NGINX\
**Created:** [September 22, 2011, 3:30pm UTC](https://www.ruby-forum.com/t/config-help-needed/212117 "2011-09-22T15:30:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 22, 2011, 3:30pm UTC](https://www.ruby-forum.com/t/config-help-needed/212117/1 "2011-09-22T15:30:21Z")

</div>

Hi All,

My site is wordpress, and configured as follows.

# Statements for [KindleMonster.com](http://KindleMonster.com) virtual server

server {  
listen 80;  
#  
server\_name [kindlemonster.com](http://kindlemonster.com) [www.kindlemonster.com](http://www.kindlemonster.com);  
root /var/www/kindlemonster.com/htdocs;  
access\_log /var/www/kindlemonster.com/access.log;  
index index.php index.html index.htm;  
#  
# redirect server error pages to the static page /50x.html  
#  
error\_page 500 502 503 504 /50x.html;  
# protect usage stats  
location ^~ /usage/ {  
auth\_basic “Hello, please login”;  
auth\_basic\_user\_file /var/www/kindlemnonster.com/passwords;  
}  
# all .php requests to fastcgi using uri.  
location ~ .php$ {  
include /etc/nginx/fastcgi\_params;  
fastcgi\_pass 127.0.0.1:9000;  
# fastcgi\_param SCRIPT\_FILENAME  
$document\_root$fastcgi\_script\_name;  
}  
try\_files $uri $uri/ /index.php;  
}

Wordpress works just fine. I have just uploaded a new file to /form.php  
and when  
I try to browse to it I get the super helpful error message of

No input file specified.

The log says its a 404.

OK - Why do all the wordpress files (mostly php) work just fine, and my  
new file does not?

Thanks

Ian

---

<div class="post-metadata">

**Author:** ![dcian](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/91b2a8/32.png) [@dcian](https://www.ruby-forum.com/u/dcian)\
**Post date:** [September 22, 2011, 6:34pm UTC](https://www.ruby-forum.com/t/config-help-needed/212117/2 "2011-09-22T18:34:12Z")

</div>

To reply to my own post.

It was a permissions problem. php could not read the file, and was  
reporting it as not there!

Thanks  
Ian
