php fast cgi+nginx

安装好nginx 和 php

nginx配置

例子

location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:3344;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  D:/tmp/film/$fastcgi_script_name;
            include        fastcgi_params;
}

php启动 fast-cgi

php-cgi.exe -b 127.0.0.1:3344


然后启动nginx

create D:/tmp/film/index.php 

<?php

phpinfo();

?>

访问:http://localhost/index.php



你可能感兴趣的:(php fast cgi+nginx)