Home  >  Article  >  Backend Development  >  日记 - nginx+php的“No input file specified.”有关问题

日记 - nginx+php的“No input file specified.”有关问题

WBOY
WBOYOriginal
2016-06-13 12:28:10904browse

日记 - nginx+php的“No input file specified.”问题

系统:ubuntu14

?

一,问题状况

? ? 在腾讯云的服务器上安装并配置了nginx和php后,已经能在浏览器上访问到已启动的服务器了。同事给了我一份已经在使用的nginx服务器的配置,我照着改了以后,发现还是没用。我能在服务器上访问html文件,但是一旦访问php文件就报出No input file specified.

?

二,解决方法

? ? 解决这个问题的办法,是把"/" location块中的root上提到server。
或者,在php的location块中,重新定义root。

? ? 详细请参考以下网址:http://www.51testing.com/html/28/116228-238335.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn