wamp 环境中的nts php 配置方式

LoadModule fcgid_module modules/mod_fcgid.so


AddHandler fcgid-script .fcgi .php

#php.ini的存放目录

FcgidInitialEnv PHPRC "F:/php5.3.28nts"

# 设置PHP_FCGI_MAX_REQUESTS大于或等于FcgidMaxRequestsPerProcess,防止php-cgi进程在处理完所有请求前退出

FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000

#php-cgi每个进程的最大请求数

FcgidMaxRequestsPerProcess 1000

#php-cgi最大的进程数

FcgidMaxProcesses 3

#最大执行时间

FcgidIOTimeout 120

FcgidIdleTimeout 120

#php-cgi的路径

FcgidWrapper "F:/php5.3.28nts/php-cgi.exe" .php

AddType application/x-httpd-php .php



在vhost 的directory加 Includes ExecCGI

例如: 

<Directory “D:/Web”>

Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride None

Order allow,deny

Allow from all

</Directory>