Windows下 NGINX PHP 以及 "No input file specified"
2016-10-11 22:50
519 查看
Nginx修改的配置文件地方并不多:
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # #location ~ \.php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #}
打开前边的注释就行。
PHP的配置文件修改:
相对于原始的下载的PHP压缩包中的配置文件来说吧
打开;extension_dir
并指定ext的文件的位置(绝对位置吧,用相对位置报错,可能是PHP的版本的问题,以前都是默认配置就行的)
打开需要用到的扩展包:如;
;extension=php_mysql.dll
;extension=php_mysqli.dll
打开;cgi.fix_pathinfo=1
访问简单的PHP页码:提示"No input file specified"
原因:
本地电脑上装的是Apache2.4 + PHP7,苹果系统上的浏览器访问页面之间打不开,没办法了,转战Nginx吧,把PHP7的安装目录直接复制了下放到另外的一个地方用作fastcg。
出错的具体原因是:因为PHP7是复制的Apache2.4 + PHP7的,PHP7的配置文件中指定了 doc_root的位置,设置为空就好了
参考资料:
http://www.cnblogs.com/wuzhenbo/p/3493518.html http://www.cnblogs.com/huayangmeng/archive/2011/06/15/2081337.html
相关文章推荐
- Windows下 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的解决方法
- 访问不存在的php文件时为啥nginx会报“No input file specified.”这句话
- NGINX PHP "No input file specified"
- Nginx执行php,显示“No input file specified. ”的处理方法
- no input file specified nginx + windows
- Nginx执行php,No input file specified的解决方法
- nginx服务器下访问不存在的php页面No input file specified.
- nginx 服务器经常出现No input file specified.但是重启php后正常
- nginx php No input file specified 怎样处理?
- Nginx执行php,显示“No input file specified. ”的处理方法
- Nginx执行php显示no input file specified的处理方法
- Nginx执行php,显示“No input file specified. ”的处理方法
- CI框架去掉index.php以及解决No input file specified问题
- PHP IIS "No input file specified." 错误
- 解决nginx服务器访问不存在的php页面显示No input file specified.问题
- 备忘:nginx访问不存在的php的页面提示No input file specified.