Windows下安装nginx+php(FastCGI)+mysql
Windows下安装nginx0.7.65+php5.3(FastCGI)+mysql5.1.43
0.参考1:doc.guandang.net
参考2:doc.guandang.net
1.下载安装nginx 0.7.65 stable版(doc.guandang.net),解压到d:\tmp\nginx-0.7.65,修改其配置文件nginx.conf为:
listen 8008;#根据实际轻快修改了web端口
server_name localhost;
location / {
root D:/tmp/www;#主页目录,注意要用/
index index.html index.htm index.php;#添加默认主页文件.php
}
去掉php类型前面的注释:
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME D:/tmp/www$fastcgi_script_name;#注意,$前设置为跟前面的root一样
includefastcgi_params;
}
2.下载 PHP 5.3.1,免安装版(doc.guandang.net,如何选择见下面说明),解压到d:\tmp\php-5.3.1-nts-Win32-VC6-x86,复制php.ini-production为php.ini,修改设置文件php.ini;
指定doc_root--web文件的存放目录。我是注释掉: ;doc_root =""
扩展存放目录 extension_dir——更改为真实的扩展存放地址: extension_dir = "D:\tmp\php-5.3.1-nts-Win32-VC6-x86\ext"
默认时区更改——在[Date]里面增加:date.timezone = Asia/ShangHai
去掉数据库组件mysql的注释:
extension=php_mbstring.dll
;extension=php_ming.dll
;extension=php_mssql.dll
extension=php_mysql.dll
enable_dl = On
cgi.force_redirect = 0
cgi.fix_pathinfo=1
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1
下载RunHiddenConsole.exe(doc.guandang.net),该工具可使其执行的cmd窗口会自动隐藏。执行下面命令行可使php脚本得到解释:
RunHiddenConsole.exe d:\tmp\php-5.3.1-nts-Win32-VC6-x86\php-cgi.exe -b 127.0.0.1:9000 -c d:\tmp\php-5.3.1-nts-Win32-VC6-x86\php.ini
--说明:
PHP现在推出5.3.1版本了,下载的时候有几个不同版本选择。
VC6就是legacy Visual Studio 6 compiler,就是使用这个编译器编译的。
VC9 就是the Visual Studio 2008 compiler,就是用微软的VS编辑器编译的。
如果你是在windows下使用 Apache + PHP 的,请选择VC6版本;
如果你是在windows下使用 IIS + PHP 的,请选择VC9版本;
从PHP5.2.10版本开始(现在有PHP5.2.10和5.3两个版本),有None-Thread Safe与Thread Safe两种版本的可供选择,这两种版本有何不同,作为使用者来说又应该如何选择呢?
None- Thread Safe就是非线程安全,在执行时不进行线程(thread)安全检查;Thread Safe就是线程安全,执行时会进行线程(thread)安全检查,以防止有新要求就启动新线程的 CGI 执行方式耗尽系统资源。那Non Thread Safe是什么?
PHP的两种执行方式:ISAPI和FastCGI。FastCGI执行方式是以单一线程来执行操作,所以不需要进行线程的安
收到越来越多的应用,最近在Windows平台上安装配置了Nginx+PHP5的运行环境,非常方便,现详细介绍下Windows下Nginx配置PHP5的基础教程,Nginx配置PHP是以FastCgi方式配置...
最 近在 Windows 平台上安装配置了 Nginx+PHP5 的运行环境,非常方便,现详细介绍下 Windows 下 Nginx 配置 PHP5 的基础教程,Nginx 配置 PHP 是以 FastCgi 方式...
Windows下Nginx+PHP5(FastCgi),memcache安装配置详解_计算机软件及应用_IT/计算机_专业资料。Windows下Nginx+PHP5(FastCgi),memcache...
win2003+IIS+FastCGI+PH... 7页 4下载券 windows2003SP2下IIS6.0... ...Mysql5.1.40 安装 Nginx 安装 pcre8.00 安装 Nginx0.8.24 安装 libxml2-...
windows2003SP2下IIS6.0+FastCGI+PHP5.3+MySQL5.1+phpMyAdmin最详细图文...下面我们来介绍使用微软的“web 平台安装程序”来配置 FastCGI。 1、 FastCGI ...
由于生产环境都是 freebsd 平台,之前也写了一篇 FreeBSD 下安装 mysql5.1.56+php5.2.17(FastCGI)+nginx1.0.1 高性能 Web 服务器,有童鞋想要 帮忙写一篇...
Windows下nginx+php+mysql安装和配置_IT/计算机_专业资料。Windows下nginx+php+...$ { #开启支持 php root E:/Works/php; #’/'代替’\’ fastcgi_pass ...
windows下安装nginx+php+mysql_互联网_IT/计算机_专业资料。详细介绍windows下...(nginx 增加 php 支持部分) # pass the PHP scripts to FastCGI server ...
51CTO下载-Windows+Server+2003+IIS6.0+PHP5_FastCGI_+MySQL5环境搭建教程_...185473046 打开 Windows Server 2003 SP2 安装光盘里面的 I386 目录,找到相应的...
Windows7 IIS7下以FastCgi和ISAPI方法安装配置PHP5教程_IT/计算机_专业资料。...在完成 Windows 7 上搭建 Apache+PHP+Mysql 环境搭建后,我在 Windows 7 IIS7...
热门文档