IIS_FastCGI+php5.3+wincache+memcached+ZendLoader
2019獨角獸企業重金招聘Python工程師標準>>>
安裝
IIS+FastCGI+php5.3+wincache+memcached+ZendLoader+mysql+phpmyadmin
(IIS-1)IIS->FastCGI
1.配置IIS->網站->屬性->主目錄->配置->添加
2.可執行文件(C:\WINDOWS\system32\inetsrv\fcgiext.dll),擴展名(.php)
3.主目錄->勾選(讀取)->執行權限(純腳本)
4.文檔->添加->index.php
5.目錄安全性->編輯->勾選(集成windows身份驗證)
6.重啟IIS
(PHP-1)php配置,FastCGI->php
1.打開C:\WINDOWS\system32\inetsrv\fcgiext.ini 文件,在[Types]下面添加以下配置:
============================================================================
[Types]
php = PHP
[PHP]
ExePath = "D:\php\php-cgi.exe"
MaxInstances = 20
QueueLength = 1000
InstanceMaxRequests = 10000
EnvironmentVars = PHP_FCGI_MAX_REQUESTS:10000
RequestTimeout = 500
ActivityTimeout = 900
============================================================================
(PHP-2)PHP->FastCGI
打開D:\php\php.ini
將以下這些常用擴展前面的分號“;”去掉:
============================================================================
fastcgi.impersonate = 1
cgi.rfc2616_headers = 1
memory_limit = 512M
date.timezone = Asia/Shanghai
extension_dir = "D:\server\php\ext"
============================================================================
(PHP-3)開啟php的ZendLoader擴展
1.解壓出ZendLoader.dll放置到D:\server\php\ext
2.在php.ini最后添加
============================================================================
[Zend.loader]
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path=
zend_extension="D:\server\php\extZendLoader.dll"
============================================================================
(PHP-4)開啟php的WinCache擴展
1.解壓出WinCache.dll放置到D:\server\php\ext
2.php.ini添加如下,wincache.fcenabled=0為解決ZendLoader沖突
============================================================================
[WinCache]
extension=php_wincache.dll
wincache.fcenabled=0
============================================================================
(PHP-5)開啟php的MemCache擴展
1.php.ini添加如下
2.在DOS下訪問memcached.exe
3.執行memcached -d install
4.執行memcached -d start
============================================================================
[MemCache]
extension=php_memcache.dll
============================================================================
(IIS-2)開啟GZIP
1.IIS->網站->屬性->服務->開啟 壓縮應用程序文件和壓縮靜態文件
2.停止IIS,打開C:\WINDOWS\system32\inetsrv\MetaBase.xml.
3.分別修改"/LM/W3SVC/Filters/Compression/deflate"和"/LM/W3SVC/Filters/Compression/gzip"下面的參數.
============================================================================
HcDynamicCompressionLevel="1"
HcFileExtensions="htm
?html
?txt
?css
swf"
HcScriptFileExtensions="asp
?php
?dll
?exe"
============================================================================
(MYSQL-1)安裝mysql-5.5.41-win32.msi
1.安裝Custom->修改安裝地址
2.配置Detailed Configuration(詳細配置)->Server Machine(服務器模式)->Non-Trans Only (MYISAM方式)->512(連接數)->3306(設置端口)(不勾選Strict Mode)->utf8(數據庫默認字符集)
(FTP-1)開通賬戶,設置FTP
1.服務->FTP Publishing Service->自動/開啟
2.IIS->FTP站點->新建FTP站點->端口21->不隔離用戶->C:\Inetpub\ftproot(或為空的文件夾)->勾選(讀取)
3.FTP站點->新建虛擬目錄->指定網站目錄(D:\www\discuz)->勾選(讀取,寫入)
4.我的電腦->管理->本地用戶和組->用戶->新用戶->設置用戶名-密碼-勾選(永不過期)
5.目錄屬性(D:\www\discuz)->安全->添加用戶->設置權限
轉載于:https://my.oschina.net/miaowang/blog/354734
總結
以上是生活随笔為你收集整理的IIS_FastCGI+php5.3+wincache+memcached+ZendLoader的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS耳机操作
- 下一篇: XMPP协议简单介绍