PHP7.0安装问题集合
1.PHP.net官网进去后不能点击Windows downloads
原因:Google被墙
解决1:直接访问:http://windows.php.net/download#php-7.0
解决2:审查元素修改Jquery公共库
2.IIS 7.5 IIS7.0+ 安装 PHP7.0报错502
详细描述:
HTTP 错误 502.2 - Bad Gateway 指定的 CGI 应用程序由于未返回完整的一组 HTTP 头而产生错误行为。它实际返回的头是“<b>Security Alert!</b> The PHP CGI cannot be accessed directly. <p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.</p> <p>For more information as to <i>why</i> this behaviour exists, see the <a href="http://php.net/security.cgi-bin">manual page for CGI security</a>.</p> <p>For more information about changing this behaviour or re-enabling this webserver, consult the installation file that came with this distribution, or visit <a href="http://php.net/install.windows">the manual page</a>.</p> ”。原因:安全设置,需要设置跳转 IIS 不支持 ,适用于 Apache 官方详解
解决方法
修改php.ini
将;cgi.force_redirect = 1 修改为 cgi.force_redirect = 0
3. IIS7.0+ IIS7.5+ PHP7.0 出现 400 错误
原因:没有以CgiModule运行php-cgi.exe
版权声明:若无特殊注明,本文皆为《
CM部落 》原创,转载请保留文章出处。
本文链接:PHP7.0安装问题集合 https://www.itkz.cn/note/74.html
正文到此结束





发表吐槽
你肿么看?
既然没有吐槽,那就赶紧抢沙发吧!