parent
8fe353a41a
commit
ebfeb8a00c
16
README.md
16
README.md
|
|
@ -40,13 +40,15 @@ cd /usr/src/fusionpbx-install.sh/centos && ./install.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
Don't expect everything to work. Testing is required.
|
* This powershell install for windows is currently in a "beta stage".
|
||||||
mod_lua is missing from builds after 1.6.14. Script will download it from github.
|
* mod_lua is missing from builds after 1.6.14. Script will download it from github.
|
||||||
Open PowerShell as Administrator and run commands
|
* Click to download the zip file and extract it.
|
||||||
|
* Extract the zip file
|
||||||
|
* Navigate to install.ps1
|
||||||
|
* Click on install.ps1 then right click on install.ps1 then choose Run with Powershell
|
||||||
|
* If you are not allrady Administrator you will have to choose run as Administrator
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
Set-Location "$env:PUBLIC\Downloads"
|
https://github.com/fusionpbx/fusionpbx-install.sh/archive/2.0.zip
|
||||||
Invoke-WebRequest https://raw.githubusercontent.com/fusionpbx/fusionpbx-install.sh/master/windows/install.ps1 -OutFile install.ps1
|
|
||||||
#run the script
|
|
||||||
.\install.ps1
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,16 @@
|
||||||
|
Install-WindowsFeature -name Web-Server -IncludeManagementTools
|
||||||
|
Install-WindowsFeature Web-Mgmt-Console
|
||||||
|
Install-WindowsFeature Web-Mgmt-Service
|
||||||
|
Install-WindowsFeature Web-Http-Redirect
|
||||||
Function Install-IIS([string]$path) {
|
Function Install-IIS([string]$path) {
|
||||||
|
|
||||||
#Run IIS manager and create FusionPBX app
|
#Run IIS manager and create FusionPBX app
|
||||||
Write-Host "Create web site in IIS" -ForegroundColor Yellow
|
#Write-Host "Create web site in IIS" -ForegroundColor Yellow
|
||||||
Write-Host "Enable extensions php_pgsql and php_pdo_pgsql" in IIS -ForegroundColor Yellow
|
#Write-Host "Enable extensions php_pgsql and php_pdo_pgsql" in IIS -ForegroundColor Yellow
|
||||||
Write-Host "Use URL Rewrite to import rules from .htaccess file" -ForegroundColor Yellow
|
#Write-Host "Use URL Rewrite to import rules from .htaccess file" -ForegroundColor Yellow
|
||||||
Start-Process "${env:SystemRoot}\system32\inetsrv\InetMgr.exe"
|
#Start-Process "${env:SystemRoot}\system32\inetsrv\InetMgr.exe"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Install-IIS -path $system_directory -port 80
|
Install-IIS -path $system_directory -port 80
|
||||||
iisreset
|
iisreset
|
||||||
|
|
@ -42,7 +48,7 @@ Function Install-IIS([string]$path) {
|
||||||
|
|
||||||
#$site.Bindings | Format-Table protocol,EndPoint,Host,SslFlags -AutoSize
|
#$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 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 add sslcert ipport=0.0.0.0:443 certhash=$cert "appid={4dc3e181-e14b-4a21-b022-59fc669b0914}"
|
||||||
#netsh http show sslcert
|
#netsh http show sslcert
|
||||||
|
|
@ -62,4 +68,4 @@ Function Install-IIS([string]$path) {
|
||||||
|
|
||||||
#Save
|
#Save
|
||||||
$iis.CommitChanges()
|
$iis.CommitChanges()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue