2014年3月18日 星期二

安裝 Office Web Application - WAC Server 安裝記事

.準備:
以下使用「company.com」做展示用。
1.Windows Server 2012 STD
不可以安裝有MS Office任版本的程式,也不能安裝有Sharepoint Foundation / Server。
(Do not install any version of MS-Office or Sharepoint)
2.PreReqsRoleFeatureOnServer2012 : 新增必需的Server角色

A.以系統管理員身份執行PowerShell,開啟執行權限:
set-executionpolicy bypass

B.新增必要角色:
import-module servermanager
Add-WindowsFeature Net-Framework-Features,Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices -source d:\sources\sxs\
C.重開機

3.執行Windows Update,更新.Net Framework及其它。

下載 Office Web Application WAC Server:

下載 Office Web Apps Server
·         Microsoft 下載中心
下載 Office Web Apps Server 的語言套件。
·         Microsoft 下載中心


安裝Office Web Application WAC Server:
執行wacserver.exe,依安裝指示直到完成
執行wacserverlanguagepack.exe.exe,依安裝指示直到完成

.為IIS Server建立Domain Certificate
    1.IIS站台 > 伺服器憑證
    2.建立網域憑證 > 輸入憑證資訊
    3.選取企業CA Server > 設定此憑證的好記名稱
    4.為預設的站台設定https的繫結(Bind) > 新增 https,SSL憑證指向剛建立的憑證

.建立Office Web Application WAC Server的Server Farm(伺服器農場):

以系統管理員身份執行PowerShell,開啟執行權限,其中CertificateName必需要與剛才所建立的憑證好記名稱相同。
New-OfficeWebAppsFarm -Verbose -InternalUrl https://wacserver.company.com -ExternalUrl https://wacserver.company.com -CertificateName "WAC Server Certificate" -SSLOffloaded -AllowHttp -EditingEnabled -ClipartEnabled -TranslationEnable
建立完成可以看到以下資訊,或可執行Get-OfficeWebAppsFarm指令來檢示。
重啟IIS
iisreset


.驗證測式Office Web Application WAC Server的Server Farm(伺服器農場)網站應用程式:

http://wacserver.company.com/hosting/discovery  https://wacserver.company.com/hosting/discovery


.於Sharepoint 2013 中以 OAuth驗證方式整合WAC Server。

1.建立Sharepoint 2013 Server 與WAC Server連結。
開啟Sharepoint 2013 
執行:
New-SPWOPIBinding -ServerName WACServer.company.com -AllowHTTP
Set-SPWOPIZone Internal-https
iisreset


2.設定OAuth驗證
Set-ExecutionPolicy RemoteSigned
(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
$config = (Get-SPSecurityTokenServiceConfig)
$config.AllowOAuthOverHttp = $true
$config.update() 

3.在Sharepoint2013 上測試Office Web App線上編輯功能





以上參考網路上許多的Blog文章或相關技術文件,加上實際多次try出來的最佳方式

沒有留言:

張貼留言