php-cgi.exe文件运行 php-cgi.exe -b 127.0.0.1:9000 -c D:/myphp2017/php7-nts/php.ini
nginx命令 启动 start nginx 关闭 ngnix -s stop
php.ini中CGI信息配置 enable_dl = On cgi.force_redirect = 0 cgi.fix_pathinfo=1 fastcgi.impersonate = 1 cgi.rfc2616_headers = 1
nginx.conf的配置 #先将这取消注释, location ~ \.php$ { #改成自己相应的路径 root D:/myphp2017/blog; #IP地址和端口号 fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME D:/myphp2017/blog$fastcgi_script_name; include fastcgi_params; }
|
请发表评论