久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      如何在IIS上部署PHP網(wǎng)站

      本篇文章給大家介紹一下在IIS上部署PHP網(wǎng)站的方法。有一定的參考價值,有需要的朋友可以參考一下,希望對大家有所幫助。

      如何在IIS上部署PHP網(wǎng)站

      部署網(wǎng)站前查看一下系統(tǒng)是否已經(jīng)安裝CGI

      1、啟動iis服務(wù)器,打開IIS服務(wù)器

      打開IIS服務(wù)器,點擊網(wǎng)站,右擊“添加網(wǎng)站”

      如何在IIS上部署PHP網(wǎng)站

      2、創(chuàng)建網(wǎng)站

      點擊“添加網(wǎng)站”后,進入頁面填寫網(wǎng)站相關(guān)內(nèi)容,如:網(wǎng)站名稱、物理路徑(網(wǎng)站所在文件夾),點擊“確定”創(chuàng)建成功

      如何在IIS上部署PHP網(wǎng)站

      3、PHP設(shè)置

      點擊創(chuàng)建好的網(wǎng)站,點擊“處理程序映射”,點擊右側(cè)的“添加映射模塊”,在彈出層中輸入對應(yīng)的參數(shù),點擊確認

      如何在IIS上部署PHP網(wǎng)站

      如何在IIS上部署PHP網(wǎng)站

      設(shè)置默認文檔

      點擊“默認文檔”,鼠標右擊“添加”按鈕,添加默認文檔,輸入index.php,點擊“確定”添加

      如何在IIS上部署PHP網(wǎng)站

      如何在IIS上部署PHP網(wǎng)站

      如何在IIS上部署PHP網(wǎng)站

      4、安裝urlrewrite

      5、使用URL重寫

      點擊“URL重寫”,點擊右側(cè)的“導(dǎo)入規(guī)則”,選擇要導(dǎo)入的規(guī)則文件,點擊應(yīng)用即可

      如何在IIS上部署PHP網(wǎng)站

      如何在IIS上部署PHP網(wǎng)站

      應(yīng)用規(guī)則后,網(wǎng)站所在根目錄會生成一個web.config文件,我這個用的是thinkphp的.htaccess文件導(dǎo)入的規(guī)則

      文件內(nèi)容:

      <?xml version="1.0" encoding="UTF-8"?>  <configuration>      <system.webServer>          <rewrite>              <rules>                  <rule name="已導(dǎo)入的規(guī)則 1" stopProcessing="true">                      <match url="^(.*)$" ignoreCase="false" />                      <conditions logicalGrouping="MatchAll">                          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />                          <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />                      </conditions>                      <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />                  </rule>              </rules>          </rewrite>          <handlers>              <add name="php-cgi" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="D:phpStudyphp56nphp-cgi.exe" resourceType="File" />          </handlers>          <defaultDocument>              <files>                  <add value="index.php" />              </files>          </defaultDocument>      </system.webServer>  </configuration>

      推薦學(xué)習(xí):php視頻教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號