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 .
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
navigate to the folder containing the matlab web app server installer.
platform default location of installer windows®
c:\program files\matlab\r2023a\toolbox\compiler\deploy\win64\matlabwebappserversetup
linux®
/usr/local/matlab/r2023a/toolbox/compiler/deploy/glnxa64/matlabwebappserversetup
macos
/applications/matlab_r2023a.app/toolbox/compiler/deploy/maci64/matlabwebappserversetup
run the installer to install the matlab web app server and matlab runtime.
platform steps 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 thehome
environment variable to the home directory of the root user and should be used for graphical applications.macos
double-click the app
matlabwebappserversetup.app
for information on how to start and configure the server, see .
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
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.
option steps mathworks website select the appropriate platform and release specific installer from:
matlab desktop at the matlab command prompt, type:
transfer the installer to the computer that is not connected to the internet.
install matlab runtime using the installer. for installation instructions, see install and configure matlab runtime.
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.platform default location windows
c:\program files\matlab\r2023a\toolbox\compiler\deploy\win64\matlabwebappserversetup\offline
linux
/usr/local/matlab/r2023a/toolbox/compiler/deploy/glnxa64/matlabwebappserversetup/offline
macos
/applications/matlab_r2023a.app/toolbox/compiler/deploy/maci64/matlabwebappserversetup/offline
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 .
note
windows
: make sure that matlab runtime appears before any installed version of matlab in the windows
path
environment variable.