Main Content

Install the Development Version of MATLAB Web App Server in MATLAB Compiler

Warning

The development version of 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 development version of 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.

    Operating SystemDefault Location of Installer

    Windows®

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

    Linux®

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

    macOS (Intel® processor)

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

    macOS ( Apple silicon)

    /Applications/MATLAB_R2024a.app/toolbox/compiler/deploy/maca64/MATLABWebAppServerSetup

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

    Operating SystemSteps

    Windows

    (Administrator)

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

    Linux

    At the shell prompt, type:

    sudo -H ./MATLABWebAppServerSetup.install

    Note

    The -H option sets the HOME environment variable to the home directory of the root user and should be used for graphical applications.

    macOS (Intel processor and Apple silicon)

    Double-click the app MATLABWebAppServerSetup.app

    For information on how to start and configure the server, see Configure the Development Version of MATLAB Web App Server in MATLAB Compiler.

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 development version of MATLAB Web App Server is not connected to the Internet, installing the server is a two part process.

First, you need to download MATLAB Runtime from a computer that is connected to the Internet. After downloading MATLAB Runtime installer, you will need to transfer the installer to the computer that is not connected to the Internet. 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 MATLAB Runtime using the installer. For installation instructions, see Install and Configure 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.

    Operating SystemDefault Location

    Windows

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

    Linux

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

    macOS (Intel processor)

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

    macOS ( Apple silicon)

    /Applications/MATLAB_R2024a.app/toolbox/compiler/deploy/maca64/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 the Development Version of MATLAB Web App Server in MATLAB Compiler.

Note

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

Related Topics