Set Up and Log In to MATLAB Production Server Admin Portal
R2026bFollow these instructions to set up, start, and log in to the Admin Portal for an on-premises installation of MATLAB® Production Server™. You can use the Admin Portal to manage a server instance.
Prerequisites
An installation of MATLAB Runtime
A version of MATLAB Production Server that is compatible with your MATLAB Runtime installation
Create a Server Instance
Run the mps-setup command from your install location. Replace
<install_root>with the install folder.This allows you to specify the MATLAB Runtime your server instance will use.<install_root>/script/mps-setupNote
If you are using Windows®, run the
mps-setupcommand as an administrator. Do not, however, runmps-portalas an administrator.Then, create a new instance of MATLAB Production Server using mps-new.
For more information, see Create Server Instance Using Command Line.<install_root>/script/mps-new <mps_instance>
Create and Configure Certificates
To generate a certificate chain and private key for your MATLAB Production Server instance, use the mps-cert command.
<install_root>/script/mps-portal mps-cert -C <mps_instance>Copy the generated files into the
<mps_instance>\x509folder.Note
If you are using a newly generated certificate authority, ensure that you have added it to your trust store.
Set Up Admin Portal
Open a terminal or command window and navigate to the
scriptsfolder of your MATLAB Production Server installation.Execute the mps-portal command with the
setupoption.<install_root>/script/mps-portal setup -C <mps_instance>Note
Do not run admin portal services as an administrator on Windows or as a superuser on Linux®. This causes permissions issues when modifying files.
This creates the
/admindirectory in your MATLAB Production Server instance folder, which contains the config files and logs for the Admin Portal.
Configure Access Control
Register an application with an identity provider of your choice. For more about supported identity providers, see Application Access Control.
Use the
mps-portalcommand with thestartoption to start your server and its associated Admin Portal.<install_root>/script/mps-portal start -C <mps_instance>This command generates a URL to the Admin Portal welcome page, which provides an interface for generating the files
portal_authn.jsonandprodserver_admin_authz.json, which specify the access control policy and the identity provider, respectively. The URL will have the following format:http://<hostname>:<port>/mps/welcomeMove
portal_authn.jsonto the/admin/portalfolder andprodserver_admin_authz.jsonto the/admin/apifolder, both under your MATLAB Production Server instance folder.Edit the
portal_authn.jsonfile, specifying values for theissuer,clientId,clientSecret,redirectUrl, andscopebased on information provided by your identity provider.Edit the
prodserver_admin_authz.jsonfile, populating theemailfield for"id" : "adminsaccessall"with your email address.
Log In to Admin Portal
Restart the server by using the
admin-portalcommand with therestartoption.<install_root>/script/mps-portal restart -C <mps_instance>Open a web browser, and copy the URL displayed by the
mps-portalcommand. The URL has the following format:http://<hostname>:<port>/mps/overview