sharepoint 2013 和 office web apps server 2013集成

时间:2023-03-09 08:26:56
sharepoint 2013 和 office web apps server 2013集成

环境: 三台服务器  系统:window 2008 R2
server01: 192.168.10.162(office web app)
server02: 192.168.10.163(AD)
server03: 192.168.10.164(sharepoint)

前提:1. server02配置好AD
      2. server01和 server03 这两台服务器修改好机器名,加入域。

安装office web app:
在server01上安装office web app
   1)安装 .net framework 4.5  (http://go.microsoft.com/fwlink/p/?LinkId=256560)
      安装window2008 R2更新程序 (http://go.microsoft.com/fwlink/p/?LinkId=236954)  
      安装window powershell 3.0 http://go.microsoft.com/fwlink/?LinkID=244693)
   2)管理员运行powershell执行:Import-Module ServerManager
      Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support
   3)安装office web apps server
   4)安装office web  apps补丁 http://www.microsoft.com/zh-cn/download/confirmation.aspx?id=38378
   5)安装中文语言包:(http://go.microsoft.com/fwlink/p/?LinkId=296579)

配置office web apps
   管理员打开powershell
   1)新建场和开启访问:New-OfficeWebAppsFarm –InternalURL "http://app.lishen88.com" –AllowHttp –EditingEnabled
   2)添加允许域:New-OfficeWebAppsHost -Domain  lishen88.com
   3)允许通过url访问:Set-OfficeWebAppsFarm  -OpenFromUrlEnabled:$true
测试office web apps是否正常
   在浏览器访问:
   http://app.lishen88.com/hosting/discovery
   http://app.lishen88.com/op/generate.aspx,生成文档地址,然后访问。
   如果报内部错误,在cmd下执行:
   %systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru
   iisreset /restart /noforce
   日志:%programdata%\Microsoft\OfficeWebApps\Data\Logs\ULS\
   
安装SharePoint:
   1)安装好sql server 2008 sp1,如果不是sp1,请打好补丁
   2)打开sharepoint安装目录下的splash.hta,在线安装依赖
   3)依赖安装完成后,安装SharePoint。
   4)执行SharePoint配置向导配置SharePoint。
   5)执行配置SharePoint场向导,注意新建一个用户作为服务用户。

SharePoint和office web app的集成:
   管理员打开SharePoint shell,执行下面操作
   1)绑定:New-SPWOPIBinding -ServerName app.lishen88.com –AllowHTTP
   2) 指定http访问:Set-SPWOPIZone –zone “internal-http
      查看:Get-SPWopiZone
   3)查看是否允许http验证:(Get-SPSecurityTokenServiceConfig).AllowOAuthOverHttp
     如果不是,执行:
            $config = (Get-SPSecurityTokenServiceConfig)
            $config.AllowOAuthOverHttp = $true
            $config.Update()
     4. 保证claim to window token service 正常运行
        保证Net.Pipe Lishener Adapter service 正常运行
        
     5. 测试在线浏览和修改文档
        1)新建一个站点,以管理员打开,然后共享给一个域用户。
        2)使用共享的域用户登录网站,然后上传文档,新建文档,看看功能是否正常。