Windows下 NGINX PHP 以及 "No input file specified"
来源:互联网 发布:淘宝天天特价报名费用 编辑:程序博客网 时间:2024/05/01 22:20
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
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"
- Windows下 NGINX PHP 以及 "No input file specified"
- windows下配置NGINX+PHP+MYSQL (No input file specified 问题)
- 解决NGINX PHP "No input file specified"
- no input file specified nginx + windows
- nginx No input file specified.
- NGINX PHP FastCGI “No input file specified”错误
- nginx访问php页面出现No input file specified.
- nginx php No input file specified 如何处理?
- nginx运行php"No input file specified"错误的解决方法
- 解决NGINX PHP "No input file specified"
- Centos 6.5 Nginx,php 提示 No input file specified
- nginx+php出现No input file specified解决办法
- 配置Nginx出现No input file specified.
- PHP IIS "No input file specified." 错误
- No input file specified PHP apache
- No input file specified
- No input file specified
- jquery.cookie() 方法的使用(读取、写入、删除)
- 数据结构预备知识(三)
- Logistic回归与梯度上升算法
- mysql 将查询结果导入表中
- linux mlockall
- Windows下 NGINX PHP 以及 "No input file specified"
- sql 去除重复记录只取一条
- 关于Genymotion下载模拟器失败
- 胡水生:中小型企业如何应对互联网的发展
- Struts2案例--开发权限验证拦截器
- Error: unable to connect to node rabbit@localhost: nodedown
- 指针常量,常指针,指向常量的常指针
- 拖拽中怎么修复bug
- MTD(f) A Minimax Algorithm faster than NegaScout