MATLAB: How to set up MATLAB Web Server using Apache as an httpd server on Windows NT

apacheMATLAB Web Serverntserverwebwindows

How do I set up MATLAB Web Server using Apache as an httpd server on Windows NT?

Best Answer

Here are step-by-step instructions on setting up MATLAB Web Server using Apache as the httpd server on Windows NT:
1) Install MATLAB
2) Install MATLAB Web Server
3) Edit matweb.conf in $MATLAB/toolbox/webserver/wsdemos, where $MATLAB refers to the root MATLAB directory.
- Replace all instances of <MATLABSERVER_HOST_NAME> with name of the computer
- Replace all instances of $MATLAB with the actual path to where MATLAB is installed on your system (the root MATLAB directory).
4) Download APACHE web server service. Go to:
- HTTP server
- Click on Apache for Win32
- Apache_1.3.19_win32-no_src-r2.msi (or an updated equivalent)
5) Install APACHE
- Doubleclick on the file
- Options:
1. Network Domain: mathworks.com
2. Server Name: <hostname>.mathworks.com (example: simons.mathworks.com)
3. Administrator's email address: your email address
4. Select Run as a service for All Users
5. Setup Type: Complete
6) Edit HTTPD.CONF
- Located in <Apache Group>\Apache\conf
- Check port number. If necessary, change port to 80 (note, this is different than the 8888 port default that is later described)
- Change ServerAdmin to your email address
- Point all instances of aliases to WSDEMOS (for example, #DocumentRoot "D:/Applications/Apache Group/Apache/htdocs" DocumentRoot D:/Applications/matlabr12/toolbox/webserver/wsdemos")
- ServerAdmin should be your email address. Port should be 80.
7) Restart computer
7a) If MATLAB Server doesn't appear in the Start Menu/Settings/Control Panel/Services, you may need to reinstall MATLAB Web Server after installing Apache. After reinstalling it, you should see a message notifying you that it is being installed as a service, and you will need to restart your computer)
8) Edit matlabserver.conf
- Located in <matlab>/weserver
- Add the following
o p 9999 (or to any unused port number)
9) Edit matweb.conf
- Located in <matlab>/toolbox/webwerver/wsdemos
- Add mlport 9999 (to be the first line in this file)
10) Go to start menu/Programs
- Install Apache service
11) Go to start menu/Settings/Control Panel/Services
- Start Apace service
- Start MATLAB Server
12) Open Internet Explorer
- Type "http://localhost"
- Click on one of the demos
Contact your System Administrator for specific details regarding the Installation.