• nginx php 配置


    nginx php 环境的搭建步骤:

    1.nginx 配置:

    server {       

           listen       4446;        

           server_name  localhost;          

           location / {         

           root    C:/htdocs/first/public/;    

           index  index.php index.htm ;

            }     

        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000

         location ~ .php$ {    

           root           C:/htdocs/first/public/;       

           fastcgi_pass   127.0.0.1:9000;     

           fastcgi_index  index.php;     

          fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;       

          include        fastcgi_params;  

         }    

          # deny access to .htaccess files, if Apache's document root    

          # concurs with nginx's one      

          #      

         #location ~ /.ht {  

           #    deny  all;       

    }    

    }

    2. php.ini 文件的配置

    ;cgi.fix_pathinfo=1去掉;

     3.启动 php-cgi.exe

    使用php-cgi.exe -b 127.0.0.1:9000

    以上就是配置文件的设置。

  • 相关阅读:
    vi编辑器
    在shell脚本中使用函数
    在shell脚本中进行条件控制以及使用循环
    shell指令expr和test指令
    利用ps指令查看某个程序的进程状态
    shell变量的使用
    创建和运行shell脚本程序
    关于强制类型转换(c语言)
    elastic 常用查询操作
    elastic 集群安装
  • 原文地址:https://www.cnblogs.com/rongfengliang/p/3519203.html
Copyright © 2020-2023  润新知