windows apache2.4 + php-5.5.19-nts 非線程安全的安裝

進入下載頁面 下載Apache 2.4.x VC11 同時php的版本也要是php5.5 vc11php

一、解壓到E:\wwwroot\Apache2.4
二、在運行裏面輸入cmd 
三、切換到目錄E:\wwwroot\Apache2.4\bin
四、安裝服務到windows 輸入命令:httpd.exe -k install -n "apache2.4"        卸載服務輸入:httpd.exe -k uninstall -n "apache2.4"
五、配置
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
相關文章
相關標籤/搜索