Office web app server deployment and simple operations, officeapp

Source: Internet
Author: User
Tags microsoft downloads

Office web app server deployment and simple operations, officeapp

Deployment environment: windows server 2012 R2, server in the AD domain

 

Reference URL:

Https://msdn.microsoft.com/zh-cn/magazine/jj219455 (office.15). aspx

Http://www.cnblogs.com/yanweidie/p/4516164.html

1. Install windows server 2012 R2. Do not use the preview version, install windows updates, and restart the server.

 

2. Install. NET Framework 4.5.2

 

3. Open the Windows PowerShell prompt as an administrator and run the command example to install the required roles and services and restart the server.

Add-WindowsFeature 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,NET-Framework-Features,NET-Framework-Core,NET-HTTP-Activation,NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45

 

4. Install the Office Web Apps Server, which is generally an iso file, such as cn_office_web_apps_2013_x64_dvd_1131_2.iso.

 

5. Download and install Office Web Apps Server SP1,wacserversp2013-kb2880558-fullfile-x64-glb.exe

 

6. Install the Language Pack for Office Web Apps Server. Microsoft downloads the package from this address, for example, wacserverlanguagepack.exe.

 

7. Configure the AD domain for the server, which can be set on the computer properties page-computer name, domain, and workgroup settings. Add an AD domain account and grant the server administrator permission.

 

8. log on to the Server with this account, open the Windows PowerShell prompt as an administrator, and use the New-officewebsitefarm command to create a New Office Web Apps Server farm containing a Server, as shown in the following example.

New-OfficeWebAppsFarm -InternalURL "http://servername" -ExternalUrl "https://server.external.contoso.com" -AllowHttp -EditingEnabled

  • -InternalURL: Internal access address, generally http: // machine name. AD domain control address

  • -AllowHttp: whether http access is allowed

  • -External access address of ExternalUrl, usually the IP address of the server.
  • -EditingEnabled enables editing in Office Web Apps (if it is used with SharePoint 2013 ). Lync Server 2013 or Exchange Server 2013 does not use this parameter because these hosts do not support editing.

For more parameter usage, see https://msdn.microsoft.com/zh-cn/magazine/jj219436.aspx

If no error is reported, visit the address http: // machine name. AD domain control address // hosting/discovery. You can see the wopi-discovery documentation.

 

The second part uses WOPI to preview and edit documents online (Editing supports docx, xlsx, and pptx. doc, xls, and ppt are not supported.)

1. Code address: https://github.com/marx-yu/WopiHost has two branches, the main branch corresponds to Office online 2016, release_0.8_for_owa2013 corresponding to office web app server 2013, we use the code of this branch

 

2. After switching to this branch, you must also reference Microsoft. CobaltCore. dll. Find the dll on the server where the office web app server is deployed.

 

3. Because I deploy and deploy the office web app server using a virtual machine, you need to modify the address in the CobaltServer. cs file so that the virtual machine can access this address. Modify the port number if it is temporarily used.

 public CobaltServer(string docsPath, int port = 8082)
        {
            m_docsPath = docsPath;
            m_port = port;
        }

        public void Start()
        {
            m_listener = new HttpListener();
            m_listener.Prefixes.Add(String.Format("http://10.204.13.78:{0}/wopi/", m_port));
            m_listener.Start();
            m_listener.BeginGetContext(ProcessRequest, m_listener);

            Console.WriteLine(@"WopiServer Started");
        }

 

4. Place the file to the root directory in the Program. cs file, and you can modify it on your own.

 

5.run the program and click the address, which can be the wordfile test.doc. Note: test.doc must be in the root directory 4. For more url addresses, see wopi-discovery.

Http: // machine name. AD Domain Controller address/wv/wordviewerframe. aspx? WOPISrc = http: // 10.204.13.78: 8081/wopi/files/test.doc & access_token = 06l % 20hXK6zWTUi

 

6. the logs of the office web app server are recorded in% Programdata % \ Microsoft \ OfficeWebApps \ Data \ Logs \ ULS \. The server must hide the folder and administrator permissions.

 

7. wopi documents: https://wopi.readthedocs.io/en/latest/

 

Other related blogs:

Http://www.cnblogs.com/poissonnotes/p/3267190.html

 

Other source code examples:

Https://code.msdn.microsoft.com/office/Building-an-Office-Web-f98650d6

Https://github.com/thebitllc/WopiBasicEditor

Https://github.com/Microsoft/Office-Online-Test-Tools-and-Documentation

Https://github.com/oec2003/OWAEditorSample.git

 

Related documents of office online server (upgraded version of office web app server:

Https://technet.microsoft.com/zh-cn/library/jj219437 (v = office.16). aspx

Http://www.cnblogs.com/love007/p/6274910.html

 

Other articles:

Http://www.wictorwilen.se/Tags/Office%20Web%20Apps

 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.