首页 > 代码库 > windows apache2.4 + php-5.5.19-nts 非线程安全的安装

windows apache2.4 + php-5.5.19-nts 非线程安全的安装

进入下载页面 下载Apache 2.4.x VC11 同时php的版本也要是php5.5 vc11

http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC11 
1、解压到E:\wwwroot\Apache2.4
2、在运行里面输入cmd 
3、切换到目录E:\wwwroot\Apache2.4\bin
4、安装服务到windows 输入命令:httpd.exe -k install -n "apache2.4"        卸载服务输入:httpd.exe -k uninstall -n "apache2.4"
5、配置
ServerRoot "${SRVROOT}"  =>   ServerRoot "D:/working/wwwroot/Apache2.4"
 
#LoadModule rewrite_module modules/mod_rewrite.so  => LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so  =>  LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so  => LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule ssl_module modules/mod_ssl.so =>  #LoadModule ssl_module modules/mod_ssl.so
DocumentRoot "${SRVROOT}/htdocs"  =>   DocumentRoot "D:/working/wwwroot"
<Directory "${SRVROOT}/htdocs">  =>  <Directory "D:/working/wwwroot">
AllowOverride None  => AllowOverride All
DirectoryIndex index.html  =>  DirectoryIndex index.html index.htm index.php
ScriptAlias /cgi-bin/ "${SRVROOT}/cgi-bin/"  =>   ScriptAlias /cgi-bin/ "D:/working/wwwroot/Apache2.4/cgi-bin/"
<Directory "${SRVROOT}/cgi-bin">  => <Directory "D:/working/wwwroot/Apache2.4/cgi-bin">
 
 
php-5.5.19-nts 非线程安全的安装
 
 
下载:Mod FCGID 2.3.9 for Apache 2.4.x x64    http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC11
打开apache2.4的配置文件在载入模块的地方添加如下两行
LoadModule fcgid_module modules/mod_fcgid.so
Include conf/extra/httpd-fcgi.conf
 
httpd-fcgi.conf配置如下:
FcgidInitialEnv PHPRC "C:\\php"  =>  FcgidInitialEnv PHPRC "D:/working/wwwroot/php-5.5.19-nts"
FcgidInitialEnv PATH "C:\\php;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"  =>  FcgidInitialEnv PATH "D:/working/wwwroot/php-5.5.19-nts;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;"
FcgidWrapper "C:/php/php-cgi.exe" .php  =>  FcgidWrapper "D:/working/wwwroot/php-5.5.19-nts/php-cgi.exe" .php
 
php.ini配置如下 使用
;extension_dir = "ext"  =>  extension_dir = "D:/working/wwwroot/php-5.5.19-nts/ext"
;extension=php_curl.dll  =>  extension=php_curl.dll
;extension=php_gd2.dll  =>  extension=php_gd2.dll
;extension=php_mbstring.dll  =>  extension=php_mbstring.dll
;extension=php_mysql.dll  =>  extension=php_mysql.dll
;extension=php_mysqli.dll  =>  extension=php_mysqli.dll
;extension=php_pdo_mysql.dll  =>  extension=php_pdo_mysql.dll
 
 
 
 
 
 

windows apache2.4 + php-5.5.19-nts 非线程安全的安装