發表文章

目前顯示的是有「IIS」標籤的文章

MS IIS with Letsencrypt SSL/TLS on MS Windows

圖片
 1. download win-acme from https://www.win-acme.com Ex. version 2.1.18 https://github.com/win-acme/win-acme/releases/download/v2.1.18/win-acme.v2.1.18.1119.x64.pluggable.zip 2. unzip win-acme.v2.1.18.1119.x64.pluggable.zip 3. execute wacs.exe  with cmd.exe to run  as administrator 4. Modify web.config to rewrite  https with IIS rewrite module https://www.iis.net/downloads/microsoft/url-rewrite   references https://www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10 https://aboutssl.org/iis-redirection-http-to-https https://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks Letsencrypt ACME https://letsencrypt.org/en/docs/client-options

Windows 10 1703升至1709出現 IIS 503 錯誤

1. 似乎是在C:\inetpub的資料夾權限出了問題,因為不用升級方式而整個重新安裝系統至1709,再重新安裝 IIS 是沒有出現此問題。裡面的 C:\inet\temp\appPools\ 似乎須先刪除,再重啟 IIS。若無法刪除,請將作業系統進入安全模式再刪除該資料夾。 2. 應用程式集區 -> DefaultAppPool -> 進階設定 -> 載入使用者設定檔設為 false 參考資料: https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows https://support.microsoft.com/en-us/help/4050891/error-http-503-and-was-event-5189-from-web-applications-on-windows-10 https://stackoverflow.com/questions/13322937/http-error-503-the-service-is-unavailable

Microsoft IIS7.X + PHP 5.X + MySQL 5.X community server / MariaDB 5.X server

IIS 7 + PHP 可以用 Microsoft web platform installer 來安裝 PHP 與 MySQL Server,如以下: https://www.microsoft.com/web/downloads/platform.aspx 但在只有網站服務沒有可以下載軟體的防火牆環境下,就必須用手動安裝 php + MySQL 1. 首先先下載 php manager for IIS 7 https://phpmanager.codeplex.com/ 2. 再下載 PHP 5.6 vc11 x86 Non Thread Safe ,以及    Visual Studio 2012 Update 4 的 Visual C++ 可轉散發套件 如下方a,b連結 a. http://windows.php.net/download b. https://support.microsoft.com/zh-tw/help/2977003/the-latest-supported-visual-c-downloads/ 3. 進入IIS管理員後,將已解開並放 C:\ 下的PHP資料夾匯入 PHP manager 設定 php.ini ,並從 PHP manager 看 phpinfo() 資訊是否有成功 4. 下載並安裝 MySQL Community Server, 以及Visual Studio 2008 的 Visual C++ 可轉散發套件 先安裝 VS2008VC redist套件,再安裝mysql_community_installer.msi https://dev.mysql.com/downloads/mysql/ 下載 .MSI 格式安裝檔,並依視窗提示步驟安裝,安裝過程可設定自動啟動服務(services.msc) 5. 下載並安裝 phpMyAdmin至 IIS 的 root 路徑資料夾 inetdoc https://www.phpmyadmin.net/ 修改 config.sample.php 為 config.php,並依環境編輯 匯入 phpMyAdmin\sql 內的 create_tables.sql 指令 :mysql -u root...

MS Windows IIS 安裝 php 所需元件連結

1. PHP for windows http://windows.php.net/download/ 2. WinCache Extension for PHP https://www.iis.net/downloads/microsoft/wincache-extension 3. PHPManager for IIS http://phpmanager.codeplex.com/ 以下為舊版安裝步驟 https://technet.microsoft.com/en-us/library/hh994592(v=ws.11).aspx