Win環境下安裝Apache2+fastcgi+php5(non thread safe)+MySq

Windows 環境下安裝 Apache2+fastcgi+php5(non thread safe)+MySql5+ZendGuardLoader
----------------------------------------------------------------------------- php

準備軟件:
mysql-5.5.20-win32
httpd-2.2.22-win32-x86-no_ssl
php-5.4.15-nts-Win32-VC9-x86
ZendGuardLoader-70429-PHP-5.4-Windows-x86 html

-----------------------------------------------------------
1.安裝mysql-5.5.20-win32
2.安裝apache web server httpd-2.2.22-win32-x86-no_ssl
3.解壓縮php-5.4.15-nts-Win32-VC9-x86 到php5目錄
4.配置apache httpd.conf mysql

配置項 web

Options ExecCGI FollowSymLinks ExecCGI 
修改:以下
    #Options Indexes FollowSymLinks
 Options ExecCGI FollowSymLinks ExecCGI sql

修改
 AllowOverride None
改爲
 AllowOverride All apache

 修改
 
    DirectoryIndex index.html

改爲
 
    DirectoryIndex index.php index.html app

去掉註釋使其支持虛擬主機
# Virtual hosts
Include conf/extra/httpd-vhosts.conf ide


最後加上使PHP以CGI方式運行
# FastCGI with Thread Safety disabled server

LoadModule fcgid_module modules/mod_fcgid.so htm


      AddHandler fcgid-script .php 
      FCGIWrapper "D:/app_cms/php5/php-cgi.exe" .php 
      FcgidMaxRequestLen  1024000000

 

5.下載mod_fcgid-2.3.6-win32-x86.zip(mod_fcgid.so)
http://archive.apache.org/dist/httpd/binaries/win32/

解壓縮mod_fcgid-2.3.6-win32-x86.zip
把mod_fcgid.so文件複製到D:\app_cms\Apache2.2\modules 下


6.ZendGuardLoader 支持

解壓縮包,找到ZendLoader.dll文件,拷貝到,PHP安裝目錄D:\app_cms\php5\ext下
再在php.ini文件最後加上如下設置:

[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=1
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="ext\ZendLoader.dll"

---完成---

相關文章
相關標籤/搜索