Documentation

Install MATLAB Web App Server

Warning

MATLAB® Web App Server must be installed in a trusted intranet environment on dedicated hardware. The only purpose of the physical or virtual machine where the server is installed must be to host web apps that connect to the server. The server must never be exposed to the open Internet. For more information, see MATLAB Web App Server Security.

The MATLAB Web App Server hosts web apps packaged using the Web App Compiler app. For web apps to work the server must be installed and configured. The server mediates the HTTP/HTTPS communication between the client web browser and the packaged MATLAB web app. It has a home page listing all the available hosted web apps. The home page can be accessed from a browser using a URL.

You can use an online installation workflow to install the server if your computer is connected to the Internet. Otherwise, follow the steps in the limited internet connectivity installation workflow.

Online Installation

  1. Navigate to the folder containing the MATLAB Web App Server installer.

    PlatformDefault Location of Installer

    Windows®

    C:\Program Files\MATLAB\R2019a\toolbox\compiler\deploy\win64\MATLABWebAppServerSetup

    Linux®

    /usr/local/MATLAB/R2019a/toolbox/compiler/deploy/glnxa64/MATLABWebAppServerSetup

    macOS

    /Applications/MATLAB_R2019a.app/toolbox/compiler/deploy/maci64/MATLABWebAppServerSetup

  2. Run the installer to install the MATLAB Web App Server and MATLAB Runtime.

    PlatformSteps

    Windows

    (Administrator)

    Right-click MATLABWebAppServerSetup.exe, and select Run as administrator.

    Linux

    At the shell prompt, type:

    ./MATLABWebAppServerSetup.install

    Note

    On Debian® based Linux distributions, type:

    gksudo ./MATLABWebAppServerSetup.install

    macOS

    Double-click the app MATLABWebAppServerSetup.app

    For information on how to start and configure the server, see Configure MATLAB Web App Server.

Note

Windows : Make sure that MATLAB Runtime appears before any installed version of MATLAB in the Windows Path environment variable.

Limited Internet Connectivity Installation

If the computer where you want to run the MATLAB Web App Server is not connected to the Internet, installing the server is a two part process.

First, you need to download the MATLAB Runtime from a computer that is connected to the Internet. After downloading the MATLAB Runtime installer, you will need to transfer the installer to the computer that is not to the Internet. The MATLAB Runtime is a standalone set of shared libraries that enables the execution of compiled MATLAB applications or components on computers that do not have MATLAB installed.

Second, you need to copy the zip file containing the MATLAB Web App Server application from an installation of the MATLAB Compiler™ product and unzip the server application to a local folder on the computer that is not connected to the Internet.

Procedure

  1. Download the MATLAB Runtime installer from the MathWorks® website or the MATLAB desktop. You will need a computer with access to the Internet to complete this step.

    OptionSteps
    MathWorks Website

    Select the appropriate platform and release specific installer from:

    https://www.mathworks.com/products/compiler/matlab-runtime.html

    MATLAB Desktop

    At the MATLAB command prompt, type:

    compiler.runtime.download

    Transfer the installer to the computer that is not connected to the Internet.

  2. Install the MATLAB Runtime using the installer. For installation instructions, see Install and Configure the MATLAB Runtime.

  3. On a computer that has the MATLAB Compiler product installed, navigate to the folder containing the file MATLABWebAppServer.zip and copy it to a local folder on the computer that is not connected to the Internet.

    PlatformDefault Location

    Windows

    C:\Program Files\MATLAB\R2019a\toolbox\compiler\deploy\win64\MATLABWebAppServerSetup\offline

    Linux

    /usr/local/MATLAB/R2019a/toolbox/compiler/deploy/glnxa64/MATLABWebAppServerSetup/offline

    macOS

    /Applications/MATLAB_R2019a.app/toolbox/compiler/deploy/maci64/MATLABWebAppServerSetup/offline

  4. Unzip/Extract the copied zip file MATLABWebAppServer.zip. You can now access the MATLAB Web App Server application.

For information on how to start and configure the server, see Configure MATLAB Web App Server.

Note

Windows : Make sure that MATLAB Runtime appears before any installed version of MATLAB in the Windows Path environment variable.

Related Topics