Report this

What is the reason for this report?

CentOS - nginx - no input file specified

Posted on December 14, 2013

I followed this tutorial (https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6) and everything worked perfectly.

However when I want to change my site’s root, I get the message ‘no input file specified’.

Compared to the tutorial I change 2 lines: location / { root /home/username/www/laravel/public; … } And location ~ .php$ { root /home/username/www/laravel/public; … }

I want my root to be there because I want to be able to access my webapp with ftp.

Any ideas what’s going wrong? Should be something small I guess?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

any one got answer for this because i m also in a same issue “no input file specified”

Please pastebin your nginx config.Try looking in the error logs for pointers on what’s going on: <br><pre>tail /var/log/nginx/error.log</pre>

thanks for reply @kamaln7
issue was in php-fpm and nginx configuration file. root path was not specified where my all php files was stored…

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.