zoukankan      html  css  js  c++  java
  • window 下 nginx+php+fastcgi 架设备忘

    1、配置Php.ini
    1)extension_dir = "./ext" 修改这个路径为真实的php的ext路径
    2);extension=php_mysql.dll ;extension=php_mysqli.dll 开启这两个扩展
    3) ;cgi.fix_pathinfo=1 开启cgi支持
    2、拷贝 php根目录下文件 libmysql.dll 到c:/windows下面

    3、nginx配置
    server {
    listen 443;
    server_name localhost;
    location / {
      root E:/niginxLog/www; # nginx一定要用/
      index index.php index.html index.htm;
    }
    location ~.php$ {
      fastcgi_pass 127.0.0.1:9000;
      fastcgi_index index.php;
      include fastcgi_params;
    }
    }

    4、启动php fastcgi

    D:/wnmp/php5/php-cgi.exe -b 127.0.0.1:9000 -c D:/wnmp/php5/php.ini

  • 相关阅读:
    多线程
    IO
    Collections工具类
    File类
    Map
    List与Set接口
    如何把数学作为一种工具
    包装类
    异常
    内部类
  • 原文地址:https://www.cnblogs.com/echosong/p/3581149.html
Copyright © 2011-2022 走看看