nginx 跑php时找不到文件报no input file specified.
2012-10-09 15:06
465 查看
是用fast-cgi来解析PHP文档吧?如果是,你的配置文件中应该有一段类似的配置信息
其中 $document_root表示你网站的主目录,提示错误就是说在这个主目录下找不到对应的PHP文件, 如果你的主目录配置正确,但仍然报这个错,你可以把这个参数直接用绝对路径替换掉,比如:/var/www/html/[you project folder], 这样应该就不会再出现这个错误了。
location ~ .*\.php$ { fastcgi_pass phpsrv; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; }
其中 $document_root表示你网站的主目录,提示错误就是说在这个主目录下找不到对应的PHP文件, 如果你的主目录配置正确,但仍然报这个错,你可以把这个参数直接用绝对路径替换掉,比如:/var/www/html/[you project folder], 这样应该就不会再出现这个错误了。
相关文章推荐
- 访问不存在的php文件时为啥nginx会报“No input file specified.”这句话
- Centos 6.5 Nginx,php 提示 No input file specified
- 解决nginx服务器访问不存在的php页面显示No input file specified.问题
- 解决NGINX PHP "No input file specified"
- Nginx执行php,显示“No input file specified. ”的处理方法
- nginx 服务器经常出现No input file specified.但是重启php后正常
- Nginx执行php,No input file specified的解决方法
- Windows7安装 nginx+php 后访问.php文件出现 “No input file specified.” 的解决办法
- windows nginx+php 显示no input file specified的解决方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- NGINX PHP FastCGI “No input file specified”错误
- nginx服务器下访问不存在的php页面No input file specified.
- nginx运行php"No input file specified"错误的解决方法
- Windows下 NGINX PHP 以及 "No input file specified"
- 【LNMP】提示Nginx PHP “No input file specified”错误的解决办法
- 解决NGINX PHP "No input file specified"
- 备忘:nginx访问不存在的php的页面提示No input file specified.
- Nginx执行php,显示“No input file specified. ”的处理方法
- Windows下 NGINX PHP 以及 "No input file specified"