pmltq_http [options]
or pmltq_http -u for usage pmltq_http -h for help pmltq_http --man for the manual page pmltq_http --version for version
pmltq_http starts a small HTTP daemon that provieds HTTP(s) interface to PML-TQ queries over a SQL query engine.
Optional parameters can specify which SQL database configuration and SSL keys to use. If the SSL keys are not found, the daemon runs in a non-SSL mode.
Note: the daemon binds to all interfaces!
The URLs for client requests are:
http://localhost:8082/form ...
Specify the port to listen on. Defaults to 8082.
Specify path to a log file (defualt is to print log on STDOUT).
Specify path to a directory where to log user queries (default is .pmltq_cgi_log in the current directory).
Path to the SSL ca file. Defaults to config/server.ca.
Path to the SSL cert file. Defaults to config/server.cert.
Path to the SSL key file. Defaults to config/server.key.
Specify a configuration file. The configuration file is a XML file (in fact, a PML instance conforming to the treebase_conf_schema.xml) that lists available SQL engine configurations. If this option is not provided, pmltq attempts to find a file named treebase.conf in the resource paths (namely in config/ sub-directory and in ~/.tred.d).
ID of the server configuration in the configuration file (see above).
Operate in single-server mode (default is pre-forking mode).
Operate in pre-forking mode, starting given number of servers. This is default mode (with 5 servers).
Directory to search for resource files. These files can be served even if not in the database and can be queried by base file name or even with arbitrary directory preceding the base filename. Do not put any sensitive files to the resource path!
Path to a file containing user access configuration. Updates to this file are applied immediately without the need to restart the server.
Records (lines) in this file may have the following format:
# <comment>
<username>: <password>
<username>: <password> : <authorization>
where <authorization> is a comma-separated list of server IDs (see --server). If the list is preceded by the minus (-) sign, the user is authorized this service unless the server ID is present in the list. If this list is preceded by the plus (+) sign or no sign at all, the user is authorized to connect to this service, if and only if the server ID is present in the list. If the list <authorization> list is not present, the user is authorized to connect to any service.
The information about other services is be used to serve requests about other running instances.
Print some extended information (e.g. evaluation benchmarks).
Print a brief help message on usage and exits.
Prints the help page and exits.
Displays the help as manual page.
Print program version.
To install PMLTQ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PMLTQ
CPAN shell
perl -MCPAN -e shell install PMLTQ
For more information on module installation, please visit the detailed CPAN module installation guide.