# 'no input file specified' on LEMP setup

**URL:** <https://www.ruby-forum.com/t/no-input-file-specified-on-lemp-setup/226713>\
**Category:** NGINX\
**Created:** [February 19, 2013, 3:42am UTC](https://www.ruby-forum.com/t/no-input-file-specified-on-lemp-setup/226713 "2013-02-19T03:42:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mottwsc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@mottwsc](https://www.ruby-forum.com/u/mottwsc)\
**Post date:** [February 19, 2013, 3:42am UTC](https://www.ruby-forum.com/t/no-input-file-specified-on-lemp-setup/226713/1 "2013-02-19T03:42:00Z")

</div>

I followed the article “How to Install Linux, nginx, MySQL, PHP (LEMP)  
stack  
on CentOS 6”  
([https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6](https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6))  
and could see the nginx default page displayed. After I worked through  
the  
changes to configs, etc. and tried to display info.php (phpinfo), I get  
the  
message ‘no input file specified’. I get that same thing on another php  
file  
that I loaded to the site in the same directory. However, I can display  
an  
html file from that directory.

Any thoughts as to how to track this down?

Thanks.

Posted at Nginx Forum:

> **['no input file specified' on LEMP setup](https://forum.nginx.org/read.php?2,236318,236318#msg-236318)**
>
> I followed the article "How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6" (https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6) and could see the nginx default page...

---

<div class="post-metadata">

**Author:** ![mottwsc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@mottwsc](https://www.ruby-forum.com/u/mottwsc)\
**Post date:** [February 19, 2013, 5:50am UTC](https://www.ruby-forum.com/t/no-input-file-specified-on-lemp-setup/226713/2 "2013-02-19T05:50:32Z")

</div>

I have documented most of the causes of this here:

> **[How to Solve "No input file specified" with PHP and Nginx](https://blog.martinfjordvald.com/no-input-file-specified-with-php-and-nginx/)**
>
> Solving “No input file specified” or “Primary script unknown” is very easy once you know what the error actually means. This blog posts gives the solution.

Chances are your issue is in there as well.

Posted at Nginx Forum:

> **[Re: 'no input file specified' on LEMP setup](https://forum.nginx.org/read.php?2,236318,236320#msg-236320)**
>
> I followed the article "How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6" (https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6) and could see the nginx default page...

---

<div class="post-metadata">

**Author:** ![mottwsc](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b77776/32.png) [@mottwsc](https://www.ruby-forum.com/u/mottwsc)\
**Post date:** [February 19, 2013, 5:43pm UTC](https://www.ruby-forum.com/t/no-input-file-specified-on-lemp-setup/226713/3 "2013-02-19T17:43:58Z")

</div>

I was missing an update in the config file, so your guidance helped.  
Thanks.

Posted at Nginx Forum:

> **[Re: 'no input file specified' on LEMP setup](https://forum.nginx.org/read.php?2,236318,236349#msg-236349)**
>
> I followed the article "How to Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6" (https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6) and could see the nginx default page...
