亚洲中字慕日产2020,大陆极品少妇内射AAAAAA,无码av大香线蕉伊人久久,久久精品国产亚洲av麻豆网站

資訊專欄INFORMATION COLUMN

【記】IIS 10 配置PHP

kid143 / 3418人閱讀

摘要:這是官網(wǎng)的配置說明微軟官方的技術(shù)資源庫中文相關(guān)文檔配置,安裝時(shí),以下項(xiàng)要勾選擴(kuò)展篩選器找到處理程序映射,添加模塊映射都點(diǎn)擊確定之后,會(huì)彈出一個(gè)警告對話框,點(diǎn)擊是就可以了,由于已經(jīng)添加好了,這里找到添加的模塊截的圖找到和限制,點(diǎn)右邊的添加。

筆記不支持上傳圖片,記成文章了

首先 安裝IIS時(shí),找到萬維網(wǎng)服務(wù)--應(yīng)用程序開發(fā)功能,以下3項(xiàng)要勾選:CGI ISAPI擴(kuò)展 IASPI篩選器

1.先安裝php

http://windows.php.net/download/

我裝是的phpstudy集成環(huán)境,用的里面的php5.2

2.配置php.ini 拷貝php.ini-development,改名為php.ini,并進(jìn)行如下修改

2.1 擴(kuò)展插件的路徑

; Directory in which the loadable extensions (modules) reside.
extension_dir ="D:phpStudyphp52ext"

填入自己真實(shí)的PHP解釋器地址,以及后面跟著ext文件夾,這個(gè)里面放的都是插件

2.2 設(shè)置要引入哪些插件

; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.

extension=php_bz2.dll
extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_fdf.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_exif.dll
extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_msql.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
extension=php_pdo.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_oci8.dll
extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_pspell.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
extension=php_zip.dll
;extension=php_mongo.dl
;extension=php_sqlsrv.dll
;extension=php_pdo_sqlsrv.dll
;extension=php_ibm_db2.dll
;extension=memcache.dll
 

2.3 設(shè)置時(shí)區(qū)

[Date]
; Defines the default timezone used by the date functions
date.timezone = PRC

改成
date.timezone = Asia/Shanghai

2.4 啟用fastcgi

; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
; security tokens of the calling client.  This allows IIS to define the
; security context that the request runs under.  mod_fastcgi under Apache
; does not currently support this feature (03/17/2002)
; Set to 1 if running under IIS.  Default is zero.
 fastcgi.impersonate = 1;

2.5 cgi相關(guān)設(shè)置pathinfo

; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI.  PHP"s
; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
; what PATH_INFO is.  For more information on PATH_INFO, see the cgi specs.  Setting
; this to 1 will cause PHP CGI to fix it"s paths to conform to the spec.  A setting
; of zero causes PHP to behave as before.  Default is 1.  You should fix your scripts
; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
 cgi.fix_pathinfo=0

2.6 cgi相關(guān)設(shè)置redirect

; cgi.force_redirect is necessary to provide security running PHP as a CGI under
; most web servers.  Left undefined, PHP turns this on by default.  You can
; turn it off here AT YOUR OWN RISK
; **You CAN safely turn this off for IIS, in fact, you MUST.**
 cgi.force_redirect = 0

IIS 官網(wǎng) https://www.iis.net 還說了開啟錯(cuò)誤日志,我沒有開啟。

Set error_log="C:php_errors.log"
This can help with troubleshooting.

這是官網(wǎng)的配置php說明
https://www.iis.net/learn/app...
微軟官方的技術(shù)資源庫中文相關(guān)文檔
https://technet.microsoft.com...

3.配置IIS,安裝IIS時(shí),以下3項(xiàng)要勾選:CGI ISAPI擴(kuò)展 IASPI篩選器

3.1 找到處理程序映射,添加模塊映射
都點(diǎn)擊確定之后,會(huì)彈出一個(gè)警告對話框,點(diǎn)擊“是”就可以了,由于已經(jīng)添加好了,這里找到添加的模塊截的圖



3.2 找到ISPAI和CGI限制,點(diǎn)右邊的添加。這里截圖是添加好的

3.3 找到ISPAI篩選器,點(diǎn)擊右邊的添加,這里同樣是添加好的截圖


3.4 添加默認(rèn)文檔


之后新建一個(gè)站點(diǎn)用以測試,在添加的站點(diǎn)根目錄下新建index.php,輸入 保存,接著瀏覽網(wǎng)站,會(huì)看到phpinfo信息了


文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請注明本文地址:http://www.ezyhdfw.cn/yun/22633.html

相關(guān)文章

  • IIS 10 PHP CGI 設(shè)置 PHP_INI_SCAN_DIR

    摘要:最近折騰在上跑。由于太年輕,遇到不少坑,特以此文紀(jì)念一下配置的填坑過程。在平臺(tái)上,我習(xí)慣使用安裝一些開發(fā)工具,例如等等。填坑用安裝要全局安裝否則會(huì)報(bào)錯(cuò)誤,應(yīng)該是安裝到當(dāng)前用戶的話會(huì)有執(zhí)行權(quán)限問題。修改后即可使和的配置一致。 最近折騰在 IIS 上跑 PHP-CGI。由于太年輕,遇到不少坑,特以此文紀(jì)念一下配置 IIS FastCGI 的填坑過程。 在 Windows 平臺(tái)上,我習(xí)慣使用...

    mcterry 評論0 收藏0

發(fā)表評論

0條評論

最新活動(dòng)
閱讀需要支付1元查看
<