zoukankan      html  css  js  c++  java
  • PHP HTTP错误500.21-错误模块“FastCgiModule”解决办法

    PHP环境搭建好了以后,运行简单的PHP代码,在网页上没有显示:

    <html>
    <head>
    <style></style>
    </head>
    <body>

    <h1> 1. Read A file If success, return the size </h1>
    <?php
    echo readfile("..docwebdictionary.txt");
    ?>

    </body>
    </html>

    在头部,HTML标签前添加:

    <?php
    ini_set("display_errors", "On");
    error_reporting(E_ALL);
    ?>

    网页显示:

    HTTP错误500.21-错误模块“FastCgiModule”解决办法

    处理程序“PHP_via_FastCGI”在其模块列表中有一个错误模块“FastCgiModule”

    在网上搜到同样的问题的文章:https://www.xxkt.org/9014/, 设置添加ISS的CGI模块就好了。

    具体操作如下:

    打开IIS Web服务器配置

    控制面板==》程序和功能==》打开和关闭Windows功能==》Internet信息服务==》万维网服务==》应用程序开发功能==》CGI 勾选上。

    再执行之前的代码,问题解决。

  • 相关阅读:
    Java 在线/离线 文档
    Java集合框架全解
    【LeetCode】204.计数质数
    深入SpringMvc
    SpringMvc基础
    SSM整合
    Spring注解
    SpringAop编程
    2路插入排序
    Matplotlib绘图库简要介绍
  • 原文地址:https://www.cnblogs.com/montai/p/13162586.html
Copyright © 2011-2022 走看看