소스 검색

Update install-iis.ps1 (#141)

Len 7 년 전
부모
커밋
feca5a7259
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      windows/resources/install-iis.ps1

+ 7 - 1
windows/resources/install-iis.ps1

@@ -48,7 +48,7 @@ Function Install-IIS([string]$path) {
 
 	#$site.Bindings | Format-Table protocol,EndPoint,Host,SslFlags -AutoSize
 
-	#$cert = (Get-ChildItem –Path cert:\LocalMachine\My | Sort-Object NotAfter | Select-Object -Last 1).Thumbprint
+	#$cert = (Get-ChildItem –Path cert:\LocalMachine\My | Sort-Object NotAfter | Select-Object -Last 1).Thumbprint
 	#netsh http delete sslcert ipport=0.0.0.0:443
 	#netsh http add sslcert ipport=0.0.0.0:443 certhash=$cert "appid={4dc3e181-e14b-4a21-b022-59fc669b0914}"
 	#netsh http show sslcert
@@ -68,4 +68,10 @@ Function Install-IIS([string]$path) {
 
 	#Save
 	$iis.CommitChanges()
+
+    #Add pgsql extensions to php.ini
+    Add-Content "c:\Program Files\PHP\v7.1\php.ini" "`n extension=php_pgsql.dll"
+    Add-Content "c:\Program Files\PHP\v7.1\php.ini" "`n extension=php_pdo_pgsql.dll"
+    invoke-command -scriptblock {iisreset}
+
 }