Installation guide
3 Inside the MATLAB Web Server
3-8
When the MATLAB Web Server is installed, matweb is placed in
<matlab>/webserver/bin/arch for all architectures. This placement allows
you to run
matweb on a machine having the HTTPD but not having MATLAB
installed and being of a different architecture from the server.
For HTTP server access you must also place a copy of
matweb in the directory
denoted by the
/cgi-bin alias. The installation process places a copy in
<matlab>/toolbox/webserver/wsdemos to run the sample applications.
matweb.conf
To connect with matlabserver, matweb requires information stored in the
configuration file
matweb.conf. Create this file inside the directory denoted by
/cgi-bin, along with the matweb program. Use the copy in
<matlab>/toolbox/webserver/wsdemos as a guide.
An instance of
matweb.conf looks like
[webmagic]
mlserver=parrot
[webpeaks]
mlserver=parrot
mldir=/matlab/toolbox/websever/wsdemos
Multiple application configurations must appear in the same file. Each
variable appears on a separate line followed by an equal sign
=, which is then
followed by a value, e.g.,
mlserver=parrot. Applications are delineated by the
main application entry point name (M-file) in square brackets
[]. For example,
[webpeaks] is on one line followed by all its variables and corresponding
values. Note that
webmagic does not require an mldir entry because it does not
generate any graphics or save any files. Use the
% or # character at the
beginning of any line to comment it out.